gr.forth.ics.rssdb.storage.specreprvar1
Class SpecReprVar1Resource

java.lang.Object
  |
  +--gr.forth.ics.rssdb.storage.DBResource
        |
        +--gr.forth.ics.rssdb.storage.specrepr.SpecReprResource
              |
              +--gr.forth.ics.rssdb.storage.specreprvar1.SpecReprVar1Resource
All Implemented Interfaces:
PersistentResource

public class SpecReprVar1Resource
extends SpecReprResource
implements PersistentResource

Stores a resource that have not attributed properties

Version:
2.0 (23 July 2003)
Author:
Sofia Alexaki

Fields inherited from class gr.forth.ics.rssdb.storage.specrepr.SpecReprResource
addResource, deleteResource
 
Constructor Summary
SpecReprVar1Resource(gr.forth.ics.vrp.corevrp.model.Resource res, DBStorage storage)
           
 
Method Summary
static void initPreparedStatements(DBStorage storage)
          Initializes the Prepared Statements required for adding/deleting an Resource object in the database.
 boolean isDirectInstanceOf(int clsid)
          Tests if the Resource has been directly classified in the class with id the method parameter clsid.
 boolean isInstanceOf(int[] clsLabel)
          Tests if the Resource has been classifed in the class with id the method parameter clsid.
 void store()
          Creates, if it doesn't exist, an instantiation link between the Resource and the class rdfs:Resource.
 
Methods inherited from class gr.forth.ics.rssdb.storage.specrepr.SpecReprResource
deleteUnClassifiedResource, isStoredClass, isStoredMetaClass, isStoredProperty
 
Methods inherited from class gr.forth.ics.rssdb.storage.DBResource
getResourceReference, getStorage, setResourceReference, setStorage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gr.forth.ics.rssdb.rdfstorageinterface.PersistentResource
deleteUnClassifiedResource, isStoredClass, isStoredProperty
 

Constructor Detail

SpecReprVar1Resource

public SpecReprVar1Resource(gr.forth.ics.vrp.corevrp.model.Resource res,
                            DBStorage storage)
Method Detail

initPreparedStatements

public static void initPreparedStatements(DBStorage storage)
                                   throws java.sql.SQLException
Initializes the Prepared Statements required for adding/deleting an Resource object in the database.

isInstanceOf

public boolean isInstanceOf(int[] clsLabel)
                     throws java.sql.SQLException
Tests if the Resource has been classifed in the class with id the method parameter clsid.
Specified by:
isInstanceOf in interface PersistentResource
Overrides:
isInstanceOf in class SpecReprResource

isDirectInstanceOf

public boolean isDirectInstanceOf(int clsid)
                           throws java.sql.SQLException
Tests if the Resource has been directly classified in the class with id the method parameter clsid.
Specified by:
isDirectInstanceOf in interface PersistentResource
Overrides:
isDirectInstanceOf in class SpecReprResource

store

public void store()
           throws java.sql.SQLException
Creates, if it doesn't exist, an instantiation link between the Resource and the class rdfs:Resource.
Specified by:
store in interface PersistentResource
Overrides:
store in class SpecReprResource