| java.lang.Object org.lateralnz.c3d.DatabaseEngine
DatabaseEngine | public class DatabaseEngine implements Constants,MessageListener(Code) | | core 'database' functionality -- basically this is the interceptor for all SQL
statements so we can cache resultsets, refresh the cache and so on.
|
Inner Class :class CacheProperties | |
Inner Class :class CacheCleaner extends TimerTask | |
getKeyColumnData | final protected String[] getKeyColumnData(int[] keyColumns, ResultSet rs) throws SQLException(Code) | | return the column data based on an array of primary key columns.
For example, if the primary keys are in columns 1, 5 and 6 of the resultset,
this will return the data in those columns as a 3 element array.
|
rollback | protected void rollback(DCConnection conn)(Code) | | rollback a connection (get rid of operations list)
|
setKeyToResultSetLink | protected void setKeyToResultSetLink(String cacheName, String[] rsKeys, String sql) throws SQLException(Code) | | link a key to a resultset
Parameters: cacheName - the cache we're linking in Parameters: rsKeys - the primary key data to use as key Parameters: sql - the sql query used to generate the resultset |
validate | protected boolean validate(String user, String password)(Code) | | validate user access to this 'database'
|
|
|