edu.indiana.iucbrf.casebase
Class RDBCaseBaseInfo

java.lang.Object
  extended by edu.indiana.iucbrf.casebase.RDBCaseBaseInfo
All Implemented Interfaces:
RDBTableInfo

public class RDBCaseBaseInfo
extends java.lang.Object
implements RDBTableInfo

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


Constructor Summary
RDBCaseBaseInfo(java.lang.String caseBaseTableName, java.lang.String solutionTableName, java.lang.String problemTableName, java.lang.String inactiveContextTableName)
          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 getCaseBaseTableName()
           
 java.lang.String getInactiveContextTableName()
          Method getInactiveContextTableName
 java.lang.String getProblemTableName()
          defines the tablename in which the problems of all cases are stored.
 java.lang.String getSolutionTableName()
           
 boolean isCaseBaseConnectionOpen()
          checks if the caseBaseConnectionOpen is true/false
 void setCaseBaseConnectionOpen(boolean caseBaseConnectionOpen)
          sets the caseBaseConnectionOpen to true/false
 void setCaseBaseTableName(java.lang.String caseBaseTableName)
          defines the tablename in which the cases are stored.
 void setInactiveContextTableName(java.lang.String inactiveContextTableName)
          defines the tablename in which the inactive contexts of all cases are stored.
 void setProblemTableName(java.lang.String problemTableName)
          defines the tablename in which the problems of all cases are stored.
 void setSolutionTableName(java.lang.String solutionTableName)
          defines the tablename in which the solutions of all cases are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBCaseBaseInfo

public RDBCaseBaseInfo(java.lang.String caseBaseTableName,
                       java.lang.String solutionTableName,
                       java.lang.String problemTableName,
                       java.lang.String inactiveContextTableName)
Constructor

Parameters:
caseBaseTableName - a String
solutionTableName - a String
problemTableName - a String
inactiveContextTableNamea - String
Method Detail

setCaseBaseConnectionOpen

public void setCaseBaseConnectionOpen(boolean caseBaseConnectionOpen)
sets the caseBaseConnectionOpen to true/false

Parameters:
caseBaseConnectionOpena - boolean

isCaseBaseConnectionOpen

public boolean isCaseBaseConnectionOpen()
checks if the caseBaseConnectionOpen is true/false

Returns:
a boolean

setCaseBaseTableName

public void setCaseBaseTableName(java.lang.String caseBaseTableName)
defines the tablename in which the cases are stored. This table will be composed of columns defined by caseBaseTableColumns define in this class

Parameters:
caseBaseTableName - a String

getCaseBaseTableName

public java.lang.String getCaseBaseTableName()
Returns:
a String

setSolutionTableName

public void setSolutionTableName(java.lang.String solutionTableName)
defines the tablename in which the solutions of all cases are stored. This table will be composed of columns defined by solutionTableColumns define in this class

Parameters:
solutionTableName - a String

getSolutionTableName

public java.lang.String getSolutionTableName()
Returns:
a String

setProblemTableName

public void setProblemTableName(java.lang.String problemTableName)
defines the tablename in which the problems of all cases are stored. This table will be composed of columns defined by solutionTableColumns define in this class

Parameters:
problemTableName - a String

getProblemTableName

public java.lang.String getProblemTableName()
defines the tablename in which the problems of all cases are stored. This table will be composed of columns defined by solutionTableColumns define in this class

Returns:
a String

setInactiveContextTableName

public void setInactiveContextTableName(java.lang.String inactiveContextTableName)
defines the tablename in which the inactive contexts of all cases are stored. This table will be composed of columns defined by solutionTableColumns define in this class

Parameters:
inactiveContextTableNamea - String

getInactiveContextTableName

public java.lang.String getInactiveContextTableName()
Method getInactiveContextTableName

Returns:
a String

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