edu.jhu.tmaj.client.importer.specimens.data
Class TranslatedTable
java.lang.Object
edu.jhu.tmaj.client.importer.specimens.data.TranslatedTable
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DynamicTranslatedTable, PatientTranslatedTable
public abstract class TranslatedTable
- extends java.lang.Object
- implements java.io.Serializable
A Table that is ready to be written to the database, as all the column-names match those in the
database.
- See Also:
- Serialized Form
Constructor Summary |
TranslatedTable(java.lang.String tableName,
java.lang.String primaryKeyName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TranslatedTable
public TranslatedTable(java.lang.String tableName,
java.lang.String primaryKeyName)
writeToDatabase
public WriteType writeToDatabase(int userID)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addColumnValue
public final void addColumnValue(java.lang.String column,
java.lang.String value)
setRecordDoesExist
public final void setRecordDoesExist(int id)
setRecordDoesNotExist
public final void setRecordDoesNotExist()
recordExists
public final boolean recordExists()
getPrimaryKeyID
public final int getPrimaryKeyID()
getTableName
protected final java.lang.String getTableName()
getPrimaryKeyName
protected final java.lang.String getPrimaryKeyName()
getColumnValueMap
public final java.util.Map<java.lang.String,java.lang.String> getColumnValueMap()
hasColumn
public final boolean hasColumn(java.lang.String column)
getColumnValue
public final java.lang.String getColumnValue(java.lang.String column)
toString
public final java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getAltToString
public abstract java.lang.String getAltToString()