edu.indiana.util.db
Class RDBCollectionInfo

java.lang.Object
  extended by edu.indiana.util.db.RDBCollectionInfo
All Implemented Interfaces:
RDBTableInfo

public class RDBCollectionInfo
extends java.lang.Object
implements RDBTableInfo

Defines the information that is required for storing a hashmap and hashsets in a relational database.


Constructor Summary
RDBCollectionInfo(java.lang.String hashMapTableName, java.lang.String hashSetTableName)
          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 getHashMapTableName()
          Method getHashMapTableName
 java.lang.String getHashSetTableName()
          Method getHashSetTableName
 boolean isHashMapTableNameSet()
          Method isHashMapTableNameSet
 boolean isHashSetTableNameSet()
          Method isHashSetTableNameSet
 void setHashMapTableName(java.lang.String hashMapTableName)
          defines the tablename in which the hashmaps from memory are stored.
 void setHashMapTableNameSet(boolean hashMapTableNameSet)
          Method setHashMapTableNameSet
 void setHashSetTableName(java.lang.String hashSetTableName)
          defines the tablename in which the hashsets from memory are stored.
 void setHashSetTableNameSet(boolean hashSetTableNameSet)
          Method setHashSetTableNameSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBCollectionInfo

public RDBCollectionInfo(java.lang.String hashMapTableName,
                         java.lang.String hashSetTableName)
Constructor

Parameters:
hashMapTableName - a String
hashSetTableName - a String
Method Detail

setHashMapTableName

public void setHashMapTableName(java.lang.String hashMapTableName)
defines the tablename in which the hashmaps from memory are stored. This table will be composed of columns defined by hashMapTablecolumns defined in this class

Parameters:
hashMapTableName - a String

getHashMapTableName

public java.lang.String getHashMapTableName()
Method getHashMapTableName

Returns:
a String

setHashSetTableName

public void setHashSetTableName(java.lang.String hashSetTableName)
defines the tablename in which the hashsets from memory are stored. This table will be composed of columns defined by hashSetsTablecolumns defined in this class

Parameters:
hashSetTableName - a String

getHashSetTableName

public java.lang.String getHashSetTableName()
Method getHashSetTableName

Returns:
a String

setHashMapTableNameSet

public void setHashMapTableNameSet(boolean hashMapTableNameSet)
Method setHashMapTableNameSet

Parameters:
hashMapTableNameSet - a boolean

isHashMapTableNameSet

public boolean isHashMapTableNameSet()
Method isHashMapTableNameSet

Returns:
a boolean

setHashSetTableNameSet

public void setHashSetTableNameSet(boolean hashSetTableNameSet)
Method setHashSetTableNameSet

Parameters:
hashSetTableNameSet - a boolean

isHashSetTableNameSet

public boolean isHashSetTableNameSet()
Method isHashSetTableNameSet

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