edu.indiana.iucbrf.feature.featurespec
Class FeatureSpecRDBInfo

java.lang.Object
  extended by edu.indiana.iucbrf.feature.featurespec.FeatureSpecRDBInfo
All Implemented Interfaces:
RDBTableInfo
Direct Known Subclasses:
CCBRFeatureSpecRDBInfo

public class FeatureSpecRDBInfo
extends java.lang.Object
implements RDBTableInfo

Defines the information that is required for storing a featureSpec in a relational database.


Constructor Summary
FeatureSpecRDBInfo(java.lang.String featureSpecTableName, java.lang.String classTableName, java.lang.String extraDataTableName)
          Constructor
 
Method Summary
 void createTables(JDBCDriverInfo driverInfo)
          This method is used to create all the tables defined by this class in the database
 void deleteTables(JDBCDriverInfo driverInfo)
          This method is used to drop all the tables defined by this class from the database
 void flushTables(JDBCDriverInfo driverInfo)
          This method is used to empty all the tables in the database defined by this class
 java.lang.String getClassTableName()
          Method getClassTableName
 java.lang.String getExtraDataTableName()
          Method getExtraDataTableName
 java.lang.String getFeatureSpecTableName()
          Method getFeatureSpecTableName
 boolean isFeatureSpecRDBConnectionOpen()
          Method isFeatureSpecRDBConnectionOpen
 void setClassTableName(java.lang.String classTableName)
          defines the tablename in which the class type of the parameters to call the constructor of a featurespec are stored.
 void setExtraDataTableName(java.lang.String extraDataTableName)
          defines the tablename in which the extradata hashmap of a featurespec are stored.
 void setFeatureSpecRDBConnectionOpen(boolean featureSpecRDBConnectionOpen)
          Method setFeatureSpecRDBConnectionOpen
 void setFeatureSpecTableName(java.lang.String featureSpecTableName)
          defines the tablename in which the featurespecs are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureSpecRDBInfo

public FeatureSpecRDBInfo(java.lang.String featureSpecTableName,
                          java.lang.String classTableName,
                          java.lang.String extraDataTableName)
Constructor

Parameters:
featureSpecTableNamea - String
classTableName - a String
extraDataTableName - a String
Method Detail

setFeatureSpecTableName

public void setFeatureSpecTableName(java.lang.String featureSpecTableName)
defines the tablename in which the featurespecs are stored. This table will be composed of columns defined by featureSpecTablecolumns defined in this class

Parameters:
featureSpecTableNamea - String

getFeatureSpecTableName

public java.lang.String getFeatureSpecTableName()
Method getFeatureSpecTableName

Returns:
a String

setClassTableName

public void setClassTableName(java.lang.String classTableName)
defines the tablename in which the class type of the parameters to call the constructor of a featurespec are stored. This table will be composed of columns defined by classTAblecolumns defined in this class

Parameters:
classTableName - a String

getClassTableName

public java.lang.String getClassTableName()
Method getClassTableName

Returns:
a String

setExtraDataTableName

public void setExtraDataTableName(java.lang.String extraDataTableName)
defines the tablename in which the extradata hashmap of a featurespec are stored. This table will be composed of columns defined by classTAblecolumns defined in this class.

Parameters:
extraDataTableName - a String

getExtraDataTableName

public java.lang.String getExtraDataTableName()
Method getExtraDataTableName

Returns:
a String

setFeatureSpecRDBConnectionOpen

public void setFeatureSpecRDBConnectionOpen(boolean featureSpecRDBConnectionOpen)
Method setFeatureSpecRDBConnectionOpen

Parameters:
featureSpecRDBConnectionOpena - boolean

isFeatureSpecRDBConnectionOpen

public boolean isFeatureSpecRDBConnectionOpen()
Method isFeatureSpecRDBConnectionOpen

Returns:
a boolean

createTables

public void createTables(JDBCDriverInfo driverInfo)
This method is used to create all the tables defined by this class in the database

Specified by:
createTables in interface RDBTableInfo
Parameters:
driverInfo - a JDBCDriverInfo

deleteTables

public void deleteTables(JDBCDriverInfo driverInfo)
This method is used to drop all the tables defined by this class from the database

Specified by:
deleteTables in interface RDBTableInfo
Parameters:
driverInfo - a JDBCDriverInfo

flushTables

public void flushTables(JDBCDriverInfo driverInfo)
This method is used to empty all the tables in the database defined by this class

Specified by:
flushTables in interface RDBTableInfo
Parameters:
driverInfo - a JDBCDriverInfo