gr.forth.ics.rssdb.storage.specrepr
Class SpecReprEnumeration

java.lang.Object
  |
  +--gr.forth.ics.rssdb.storage.specrepr.SpecReprEnumeration

public class SpecReprEnumeration
extends java.lang.Object

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

Field Summary
protected static java.sql.PreparedStatement addEnumElem
          PreparedStatement for adding tuples in the Enumeration table
(package private)  RDFEnumeration enum
           
protected static java.sql.PreparedStatement getValuesPS
          PreparedStatement getting the values of the stored enumeration
(package private)  DBStorage storage
           
 
Constructor Summary
SpecReprEnumeration(RDFEnumeration enum, DBStorage storage)
           
 
Method Summary
static boolean compareEnumerationTypes(int stored_enumID, java.lang.String enumURI, java.lang.String propertyURI, DBStorage storage)
          Compare two enumeration types.
static java.util.ArrayList getValues(int enumID)
          Returns the values of the enumeration with identifier
static void initPreparedStatements(java.sql.Connection con)
           
 void store()
          Stores the Enumeration Type
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enum

RDFEnumeration enum

storage

DBStorage storage

addEnumElem

protected static java.sql.PreparedStatement addEnumElem
PreparedStatement for adding tuples in the Enumeration table

getValuesPS

protected static java.sql.PreparedStatement getValuesPS
PreparedStatement getting the values of the stored enumeration
Constructor Detail

SpecReprEnumeration

public SpecReprEnumeration(RDFEnumeration enum,
                           DBStorage storage)
Method Detail

initPreparedStatements

public static void initPreparedStatements(java.sql.Connection con)
                                   throws java.sql.SQLException

store

public void store()
           throws java.sql.SQLException
Stores the Enumeration Type

getValues

public static java.util.ArrayList getValues(int enumID)
                                     throws java.sql.SQLException
Returns the values of the enumeration with identifier

compareEnumerationTypes

public static boolean compareEnumerationTypes(int stored_enumID,
                                              java.lang.String enumURI,
                                              java.lang.String propertyURI,
                                              DBStorage storage)
                                       throws java.sql.SQLException
Compare two enumeration types.
Returns:
true if they have identical values. Otherwise it returns false