|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.imageGallery.dataBase.TIGDataBase
public class TIGDataBase
Database for the images in the gallery.
Constructor Summary | |
---|---|
TIGDataBase()
|
Method Summary | |
---|---|
static void |
activateTransactions()
Activate transactions. |
static boolean |
areAsociated(int concept,
int image)
Are asociated. |
static java.util.Vector<java.lang.String> |
asociatedConceptSearch(java.lang.String path)
Asociated concept search. |
static void |
closeDB()
Close the connection to the database. |
static int |
conceptKeySearch(java.lang.String concept)
Concept key search. |
static void |
conectDB()
Connect to database. |
static void |
createTablesDB()
Create the tables Image, Concept and Asociated in the database. |
static int |
deleteAsociatedDB(int concept,
int image)
Delete the association between the concept with the id indicate by concept
and the image with the id indicate by image . |
static int |
deleteAsociatedOfImage(int image)
Delete all the associations of the image with the id indicate by image . |
static int |
deleteConceptDB(java.lang.String concept)
Delete concept database. |
static int |
deleteImageDB(int key)
Delete image database. |
static void |
executeQueries()
Execute queries. |
static java.util.Vector<java.lang.String> |
getKeyWords()
Gets the key words. |
static int |
imageKeySearch(java.lang.String imagen)
Image key search. |
static int |
imageKeySearchName(java.lang.String imagen)
Image key search name. |
static java.lang.String |
imageNameSearch(java.lang.String path)
Image name search. |
static java.util.Vector<java.util.Vector<java.lang.String>> |
imageSearchByKeyWords(java.lang.String keyWord1,
int searchOptions1,
java.lang.String keyWord2,
int searchOptions2,
java.lang.String keyWord3)
Search. |
static java.util.Vector<java.util.Vector<java.lang.String>> |
imageSearchByName(java.lang.String imagen)
Image search. |
static void |
insertAsociatedDB(int concept,
int image)
Insert asociated database. |
static int |
insertConceptDB(java.lang.String concept)
Insert concept in the table Concept of database. |
static void |
insertDB(java.util.Vector concepts,
java.lang.String imagePath,
java.lang.String imageName)
Insert database. |
static void |
insertImageDB(java.lang.String name,
java.lang.String path)
Insert image database. |
static int |
modifyImage(java.lang.String path,
java.util.Vector concepts)
Modify image. |
static int |
updateConceptDB(java.lang.String oldConcept,
java.lang.String newConcept)
Update concept database. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TIGDataBase()
Method Detail |
---|
public static void conectDB()
public static void closeDB()
public static void createTablesDB()
public static int insertConceptDB(java.lang.String concept)
concept
in the table Concept of database.
concept
- the concept
public static int updateConceptDB(java.lang.String oldConcept, java.lang.String newConcept)
oldConcept
- the old conceptnewConcept
- the new concept
public static int deleteAsociatedOfImage(int image)
image
.
image
- the image
public static void activateTransactions()
public static void executeQueries()
public static int deleteImageDB(int key)
key
- the key
public static int deleteConceptDB(java.lang.String concept)
concept
- the concept
public static void insertImageDB(java.lang.String name, java.lang.String path)
name
- the namepath
- the pathpublic static void insertAsociatedDB(int concept, int image)
concept
- the conceptimage
- the imagepublic static void insertDB(java.util.Vector concepts, java.lang.String imagePath, java.lang.String imageName)
concepts
- the conceptsimagePath
- the image pathimageName
- the image namepublic static java.util.Vector<java.lang.String> getKeyWords()
public static java.lang.String imageNameSearch(java.lang.String path)
path
- the path
public static java.util.Vector<java.util.Vector<java.lang.String>> imageSearchByName(java.lang.String imagen)
imagen
- the imagen
public static int imageKeySearch(java.lang.String imagen)
imagen
- the imagen
public static int imageKeySearchName(java.lang.String imagen)
imagen
- the imagen
public static int conceptKeySearch(java.lang.String concept)
concept
- the concept
public static java.util.Vector<java.lang.String> asociatedConceptSearch(java.lang.String path)
path
- the path
public static int deleteAsociatedDB(int concept, int image)
concept
and the image with the id indicate by image
.
concept
- the conceptimage
- the image
public static int modifyImage(java.lang.String path, java.util.Vector concepts)
path
- the pathconcepts
- the concepts
public static boolean areAsociated(int concept, int image)
concept
- the conceptimage
- the image
public static java.util.Vector<java.util.Vector<java.lang.String>> imageSearchByKeyWords(java.lang.String keyWord1, int searchOptions1, java.lang.String keyWord2, int searchOptions2, java.lang.String keyWord3)
keyWord1
- the key word1searchOptions1
- the search options1keyWord2
- the key word2searchOptions2
- the search options2keyWord3
- the key word3
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |