dsql.value
Class ConstructedTableHash
java.lang.Object
dsql.DMExecuted
dsql.value.Value
dsql.value.NonScalarValue
dsql.value.TableResult
dsql.value.ConstructedTable
dsql.value.ConstructedTableHash
- All Implemented Interfaces:
- ColumnHolder, Cursor, RecordHolder
- public class ConstructedTableHash
- extends ConstructedTable
Field Summary |
protected java.util.Hashtable |
hash
|
Methods inherited from class dsql.value.ConstructedTable |
currentRecord, deleteRecord, findColumn, getColumn, getColumn, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnString, getColumnString, getMeta, getPrimaryKeys, getRecordCount, getTableName, gotoRecord, insert, insert, nextRecord, readCurrentRecord, reset, setId, setMetaLocal, toString, update, update |
Methods inherited from class dsql.value.TableResult |
equalsRecord, getBoolean, getField, getRecord, getRecord, getString, print, printRecord, setPrimaryKeys, setPrimaryKeys, setRecord |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
hash
protected java.util.Hashtable hash
ConstructedTableHash
public ConstructedTableHash(DSQL _caller,
java.lang.String[] labels)
- hash table of all records;
key is record, value is index in the records array
ConstructedTableHash
public ConstructedTableHash(TableResult source)
throws ExecuteException
- make a copy of source
getNewRecordHash
public RecordHash getNewRecordHash(java.lang.String[] record)
throws ExecuteException
- Throws:
ExecuteException
addRecord
public void addRecord(java.lang.String[] record)
throws ExecuteException
- Overrides:
addRecord
in class ConstructedTable
- Throws:
ExecuteException
addRecord
public void addRecord(RecordHash rechash)
throws ExecuteException
- Throws:
ExecuteException
exists
public boolean exists(RecordHash record)
- Returns:
- true if the specified record is in this table.
If a primary key has been specified, will look only at the primary
key fields, i.e. this method might return true even if other fields
differ. To also check for non-primary fields (e.g. inter and minus
operations) use existsAllFields
existsAllFields
public boolean existsAllFields(RecordHash record)
throws ExecuteException
- Throws:
ExecuteException