cug.tables
Class NTable

java.lang.Object
  |
  +--jdbc.AbstractTable
        |
        +--cug.tables.NTable
Direct Known Subclasses:
NCreateTable, NDeleteTable, NUpdateTable

public abstract class NTable
extends AbstractTable


Field Summary
 
Fields inherited from class jdbc.AbstractTable
colNamesR, contents, contentsMap, createID, dbname, defaultFieldLength, ix_primaryKey
 
Constructor Summary
NTable(DataSource dsn)
           
 
Method Summary
 int[] getColumnLengths()
          subclass should return lengths of varchar columns
 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.
 void insertRec(java.sql.PreparedStatement insertStmt, java.lang.Object rec)
          voeg 1 NDSUser in
 java.lang.Object selectRec(java.sql.ResultSet result)
          retourneert NDSUsers
 
Methods inherited from class jdbc.AbstractTable
contains, get, getAll, getColNamesR, getContents, getContentsIt, getContentsMap, getDataSource, getDifference, getKeyField, getName, 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
 

Constructor Detail

NTable

public NTable(DataSource dsn)
Method Detail

getColumnNames

public java.lang.String[] getColumnNames()
Description copied from class: AbstractTable
implement in subclass

Specified by:
getColumnNames in class AbstractTable
Returns:
String[] column names

getColumnLengths

public int[] getColumnLengths()
Description copied from class: AbstractTable
subclass should return lengths of varchar columns

Overrides:
getColumnLengths in class AbstractTable
Returns:
null

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:
NDSUser.getKey()

insertRec

public void insertRec(java.sql.PreparedStatement insertStmt,
                      java.lang.Object rec)
               throws java.sql.SQLException
voeg 1 NDSUser in

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
retourneert NDSUsers

Overrides:
selectRec in class AbstractTable
Returns:
Object instance of corresponding domain object
java.sql.SQLException
See Also:
AbstractTable.getAll()