|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gr.forth.ics.rssdb.storage.DBMetaClass
|
+--gr.forth.ics.rssdb.storage.specrepr.SpecReprMetaClass
| Field Summary | |
protected static java.sql.PreparedStatement |
addMC
PreparedStatement for adding tuples in the MetaClass table |
protected static java.sql.PreparedStatement |
addMetaClassChild
PreparedStatement for adding the metaclasses that are descendants of the current metaclass, through non-tree arcs in the MetaClass_Anc table |
protected static java.sql.PreparedStatement |
addMetaPropertyChild
PreparedStatement for adding the metaproperties that are descendants of the current metaproperty, through non-tree arcs in the MetaProperty_Anc table |
protected static java.sql.PreparedStatement |
addSubMetaClass
PreparedStatement for adding tuples in the SubMetaClass table |
protected static java.sql.PreparedStatement |
addSubMetaProperty
PreparedStatement for adding tuples in the SubMetaClass table |
protected static java.sql.PreparedStatement |
isMC
PreparedStatement for checking the kind of a MetaClass |
| Constructor Summary | |
SpecReprMetaClass(gr.forth.ics.vrp.corevrp.model.RDF_MetaClass metaclass,
DBStorage storage)
|
|
| Method Summary | |
boolean |
checkStoredSubClass()
Tests if the superclasses of the Metaclass are identical to those stored in DBMS for this metaclass. |
static int[] |
contains(int mcid,
java.lang.String URI,
DBStorage storage)
Indicates if the object with URI |
static java.util.HashMap |
getMetaClasses(java.sql.Connection con)
Returns the metaclasses that are stored in the db. |
static java.lang.String |
getURI(java.sql.Connection con,
int id)
|
static void |
initPreparedStatements(java.sql.Connection con)
Initializes the Prepared Statements required for storing an MetaClass object in the database. |
static int |
isMetaClass(int mcid)
Checks if the stored object with id is a MetaClass. |
static boolean |
isSubClass(int subpost,
int suppost,
int subindex,
int supindex,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
Returns true if the metaclass with post number |
int |
store()
Stores a MetaClass in the db. |
void |
storeMetaClass()
Stores the RDF_MetaClass in the table MetaClass |
void |
storeSubMetaClass()
Stores in the SubMetaClass/Property table the rdfs:subClassOf link that is defined on RDF_MetaClass object and is an arc of the tree constructed during the labeling on the metaclass/property hierarchy . |
| Methods inherited from class gr.forth.ics.rssdb.storage.DBMetaClass |
getMetaClass, getStorage, setMetaClass, setStorage |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static java.sql.PreparedStatement addMC
protected static java.sql.PreparedStatement addSubMetaClass
protected static java.sql.PreparedStatement addSubMetaProperty
protected static java.sql.PreparedStatement addMetaClassChild
protected static java.sql.PreparedStatement addMetaPropertyChild
protected static java.sql.PreparedStatement isMC
| Constructor Detail |
public SpecReprMetaClass(gr.forth.ics.vrp.corevrp.model.RDF_MetaClass metaclass,
DBStorage storage)
| Method Detail |
public static void initPreparedStatements(java.sql.Connection con)
throws java.sql.SQLException
public static int isMetaClass(int mcid)
throws java.sql.SQLException
mcid - Represents the integer id
public static boolean isSubClass(int subpost,
int suppost,
int subindex,
int supindex,
boolean includeClass,
boolean isDAG,
java.sql.Connection con)
throws java.sql.SQLException
subpost - The post number of the subclasssuppost - The post number of the superclasssubindex - The index number of the subclasssupindex - The index number of the superclassincludeClass - If this parameter is true, the method will return true
if the numbers subpost and suppost are equal.
public int store()
throws java.sql.SQLException
public void storeMetaClass()
throws java.sql.SQLException
public void storeSubMetaClass()
throws java.sql.SQLException
public static java.util.HashMap getMetaClasses(java.sql.Connection con)
throws java.sql.SQLException
con - JBDC Connection Object
public boolean checkStoredSubClass()
throws java.sql.SQLException
public static java.lang.String getURI(java.sql.Connection con,
int id)
throws java.sql.SQLException
con - JBDC connection objectid - Database integer identifier of a metaclass
public static int[] contains(int mcid,
java.lang.String URI,
DBStorage storage)
throws java.sql.SQLException
mcid - The post number of the metaclassjava.sql.SQLException -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||