cug.ptree
Class PTreeTable
java.lang.Object
|
+--jdbc.AbstractTable
|
+--cug.ptree.PTreeTable
- public class PTreeTable
- extends AbstractTable
Method Summary |
java.lang.String[] |
getColumnNames()
implement in subclass |
java.lang.String |
getKeyString(java.lang.Object o)
(override in subclass)
used to perform equal match in contains();
determines behaviour of insertDifference, updateStringFor() etc. |
java.lang.String |
getName()
implement in subclass |
void |
insertRec(java.sql.PreparedStatement insertStmt,
java.lang.Object val)
insert 1 rec using PreparedStatement, call-back for insertInto( Vector )
has to be implemented if user of the table needs to call public insertInto( Vector )
does nothing by default |
java.lang.Object |
selectRec(java.sql.ResultSet result)
kan parent niet zetten |
Methods inherited from class jdbc.AbstractTable |
contains, get, getAll, getColNamesR, getColumnLengths, getContents, getContentsIt, getContentsMap, getDataSource, getDifference, getKeyField, hasColumnName, insertDifference, insertInto, insertStringRecord, prepareInsertInto, removeAll, selectAll, setColPrimaryKey, sqlCreateTable, sqlInsert, sqlPrepareInsertInto, sqlSelectAll, sqlUpdateStringVal, sqlUpdateVal, squote, toString, updateStringFor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PTreeTable
public PTreeTable(DataSource dsn)
getName
public java.lang.String getName()
- Description copied from class:
AbstractTable
- implement in subclass
- Specified by:
getName
in class AbstractTable
- Returns:
- String name
getColumnNames
public java.lang.String[] getColumnNames()
- Description copied from class:
AbstractTable
- implement in subclass
- Specified by:
getColumnNames
in class AbstractTable
- Returns:
- String[] column names
getKeyString
public java.lang.String getKeyString(java.lang.Object o)
- Description copied from class:
AbstractTable
- (override in subclass)
used to perform equal match in contains();
determines behaviour of insertDifference, updateStringFor() etc.
- Overrides:
getKeyString
in class AbstractTable
- Returns:
- o.toString();
insertRec
public void insertRec(java.sql.PreparedStatement insertStmt,
java.lang.Object val)
throws java.sql.SQLException
- Description copied from class:
AbstractTable
- insert 1 rec using PreparedStatement, call-back for insertInto( Vector )
has to be implemented if user of the table needs to call public insertInto( Vector )
does nothing by default
- Overrides:
insertRec
in class AbstractTable
java.sql.SQLException
- See Also:
AbstractTable.insertInto(java.util.Vector)
selectRec
public java.lang.Object selectRec(java.sql.ResultSet result)
throws java.sql.SQLException
- kan parent niet zetten
- Overrides:
selectRec
in class AbstractTable
- Returns:
- Object instance of corresponding domain object
java.sql.SQLException
- See Also:
AbstractTable.getAll()