| java.lang.Object com.workingdogs.village.DataSet
All known Subclasses: com.workingdogs.village.QueryDataSet, com.workingdogs.village.TableDataSet,
DataSet | abstract public class DataSet (Code) | | The DataSet represents a table in the database. It is extended by QueryDataSet and TableDataSet and should not be used directly. A DataSet contains a Schema and potentially a collection of Records.
author: Jon S. Stevens version: $Revision: 568 $ |
Constructor Summary | |
public | DataSet() | | DataSet(Connection conn, String tableName) | | DataSet(Connection conn, Schema schema, KeyDef keydef) | | DataSet(Connection conn, String tableName, KeyDef keydef) | | DataSet(Connection conn, String tableName, String columns) | | DataSet(Connection conn, String tableName, String columns, KeyDef keyDef) |
ALL_RECORDS | final protected static int ALL_RECORDS(Code) | | indicates that all records should be retrieved during a fetch
|
records | protected Vector records(Code) | | this DataSet's collection of Record objects
|
resultSet | protected ResultSet resultSet(Code) | | the result set for this DataSet
|
schema | protected Schema schema(Code) | | this DataSet's schema object
|
selectString | protected StringBuffer selectString(Code) | | the select string that was used to build this DataSet
|
allRecordsRetrieved | public boolean allRecordsRetrieved()(Code) | | Check if all the records have been retrieve
true if all records have been retrieved |
clearRecords | public DataSet clearRecords()(Code) | | Remove all records from the DataSet and nulls those records out and close() the DataSet.
an instance of myself |
containsRecord | public boolean containsRecord(int pos)(Code) | | Check to see if the DataSet contains a Record at 0 based position
Parameters: pos - true if record exists |
findRecord | Record findRecord(int pos) throws DataSetException(Code) | | Find Record at 0 based index position. This is an internal alternative to getRecord which tries to be smart about the type
of record it is.
Parameters: pos - an instance of the found Record exception: DataSetException - |
getColumns | String getColumns()(Code) | | Returns the columns attribute for the DataSet
the columns attribute for the DataSet |
keydef | public KeyDef keydef()(Code) | | gets the KeyDef object for this DataSet
the keydef for this DataSet, this value can be null |
lastFetchSize | public int lastFetchSize()(Code) | | The number of records that were fetched with the last fetchRecords.
int |
maxColumnWidths | public int[] maxColumnWidths(boolean with_heading) throws DataSetException, SQLException(Code) | | Calculates the maxColumnWidths for the column in a DataSet I really don't know what this is used for so it isn't
implemented.
Parameters: with_heading - int exception: DataSetException - exception: SQLException - |
releaseRecords | public DataSet releaseRecords()(Code) | | Removes the records from the DataSet, but does not null the records out
an instance of myself |
schema | public Schema schema()(Code) | | Gets the Schema for this DataSet
the Schema for this DataSet |
setAllRecordsRetrieved | void setAllRecordsRetrieved(boolean set)(Code) | | Set all records retrieved
Parameters: set - TODO: DOCUMENT ME! |
size | public int size()(Code) | | Gets the number of Records in this DataSet. It is 0 based.
number of Records in this DataSet |
toString | public String toString()(Code) | | This returns a represention of this DataSet
TODO: DOCUMENT ME! |
|
|