Method Summary |
|
public void | addBucket(String internalname, int type) This method adds a bucket to the DataStoreBuffer. |
public boolean | allDataRetrieved() This method indicates whether all the data in the result set that is to be returned by the last retrieve statement has in fact been retrieved. |
public void | cancelRetrieve() This method was created in VisualAge. |
public int | compareRows(int row1, int row2, int[] cols) This method will compare the contents of two rows using the specified column list. |
public int | compareRows(int row1, int row2, String[] cols) This method will compare the contents of two rows using the specified column list. |
public boolean | deleteRow() This deletes the current row in the DataStoreBuffer. |
public boolean | deleteRow(int row) This deletes the row in the DataStoreBuffer. |
public void | destroy() This method will destroy the remote data store on the data server. |
public int | estimateRowsRetrieved() Use this method to get the amount of rows that will be retrieved when a data store retrieve is executed. |
public int | estimateRowsRetrieved(String criteria) Use this method to get the amount of rows that will be retrieved when a data store retrieve is executed. |
public void | export(int format, boolean includeHeaders, java.io.PrintWriter p) Exports the rows of the data store in the format specified.
format: Can be EXPORT_XML, EXPORT_HTML or EXPORT_TAB_DELIMITED; includeHeaders: True if the output should contain column headings. |
public void | filter(String filter) This method will remove all rows from the buffer that don't match the criteria and place them in the datastore's filter buffer.
The method is passed a String containing the filter expression that will be used. |
public int | find(int start, int end) This method finds the next row in the result set that matches the criteria entered and is within the start and end range. |
public boolean | findFirst() This method finds the firs row in the result set that matches the criteria entered and makes it the current row. |
public boolean | findLast() This method finds the last row in the result set that matches the criteria entered and makes it the current row. |
public boolean | findNext() This method finds the next row in the result set that matches the criteria entered and makes it the current row. |
public boolean | findPrior() This method finds the next row in the result set that matches the criteria entered and makes it the current row. |
public Object | getAny(int column) This method return a Object value from the current row of the data store buffer. |
public Object | getAny(int row, int column) This method return a Object value from the data store buffer. |
public Object | getAny(int row, String column) This method return a Object value from the data store buffer. |
public Object | getAny(String column) This method return a Object value from the current row of the data store buffer. |
public byte[] | getByteArray(int column) This method return a byte array value from the current row in the data store buffer. |
public byte[] | getByteArray(int row, int column) This method return a byte array value from the data store buffer. |
public byte[] | getByteArray(int row, String column) This method return a byte array value from the data store buffer. |
public byte[] | getByteArray(String column) This method return a byte array value from the current row in the data store buffer. |
public boolean | getCheckConcurrency() Use this method to get whether or not the datastore will do a concurrency check when rows are updated and deleted. |
public int | getColumnCount() This method returns the number of columns in the datastore. |
public int | getColumnDataType(int column) This method returns the Data Type for a particular column. |
public int | getColumnDataType(String column) This method returns the Data Type for a particular column. |
public String[] | getColumnList() This method returns a list with the names of all the columns in the data store. |
public String | getColumnName(int col) This method returns the name of the column in the data store given its index. |
public boolean | getConcurrencyCheckColumn(int col) This method is used to get whether a column should be used in the update, delete concurrency check. |
public boolean | getConcurrencyCheckColumn(String col) This method is used to get whether a column should be used in the update, delete concurrency check. |
public String | getCriteria() This method is used to get selection criteria filtering for the result set of the datastore. |
public DataStoreRow | getDataStoreRow(int rowNo, int buffer) This method gets the specified row from the DataStore.
Parameters: rowNo - The number of the row to get. Parameters: buffer - The datastore buffer to look in. |
public java.sql.Date | getDate(int column) This method return a date value from current row of the data store buffer. |
public java.sql.Date | getDate(int row, int column) This method return a date value from the data store buffer. |
public java.sql.Date | getDate(int row, String column) This method return a date value from the data store buffer. |
public java.sql.Date | getDate(String column) This method return a date value from current row of the data store buffer. |
public Timestamp | getDateTime(int column) This method return a date value from current row of the data store buffer. |
public Timestamp | getDateTime(int row, int column) This method return a date value from the data store buffer. |
public Timestamp | getDateTime(int row, String column) This method return a date value from the data store buffer. |
public java.sql.Timestamp | getDateTime(String column) This method return a datetime value from current row of the data store buffer. |
public String | getDefaultTable() |
public int | getDeletedCount() This method returns the current number of rows that will be deleted when the datastores update method is called. |
public boolean | getDistinct() This method will return whether the distinct flag in the data store is set. |
public double | getDouble(int column) This method return a double value from the current row in data store buffer. |
public double | getDouble(int row, int column) This method return a double value from the data store buffer. |
public double | getDouble(int row, String column) This method return a double value from the data store buffer. |
public double | getDouble(String column) This method return a double value from the current row in data store buffer. |
public int | getFilteredCount() This method returns the current number of rows in the DataStores filter buffer. |
public float | getFloat(int column) This method return a float value from the current row in the data store buffer. |
public float | getFloat(int row, int column) This method return a float value from the data store buffer. |
public float | getFloat(int row, String column) This method return a float value from the data store buffer. |
public float | getFloat(String column) This method return a float value from the current row in the data store buffer. |
public String | getFormat(int col) This method returns a the format string for a date, time, datetime or numeric type column. |
public String | getFormat(String col) This method returns a the format string for a date, time, datetime or numeric type column. |
public String | getFormattedString(int column) This method return a string value from the data store buffer. |
public String | getFormattedString(int row, int column) This method return a string value from the data store buffer. |
public String | getFormattedString(int row, String column) This method return a string value from the data store buffer. |
public String | getFormattedString(String column) This method return a string value from the data store buffer. |
public String | getGroupBy() This method returns the column list in the group by clause. |
public String | getHaving() This method returns the having clause for the datastore. |
public int | getInt(int column) This method return a integer value from the current row in the data store buffer. |
public int | getInt(int row, int column) This method return a integer value from the data store buffer. |
public int | getInt(int row, String column) This method return a integer value from the data store buffer. |
public int | getInt(String column) This method return a integer value from the current row in data store buffer. |
public int | getJoinColumnCount(int joinNo) This method returns the number of columns in a particular join. |
public int | getJoinCount() This method returns the number of joins in the datastore. |
public String | getJoinLeftColumn(int joinNo, int colNo) This method returns a column on the left side of the join. |
public boolean | getJoinOuter(int joinNo) This method returns the true if a particular join is outer. |
public int | getJoinRelationType(int joinNo) This method returns the relation type of the join. |
public String | getJoinRightColumn(int joinNo, int colNo) This method returns a column on the right side of the join. |
public long | getLong(int column) This method return a long value from the current row in the data store buffer. |
public long | getLong(int row, int column) This method return a long value from the data store buffer. |
public long | getLong(int row, String column) This method return a long value from the data store buffer. |
public long | getLong(String column) This method return a long value from the data store buffer. |
public int | getMaxRows() This method will return the maximum number of rows that the datastore will retrieve. |
public String | getOrderBy() This method returns the order by clause for the datastore. |
public Properties | getProperties() This method creates a properties object containing the definition of the data store. |
public String | getRemoteID() |
public int | getRow() This method returns the current row in the result set. |
public int | getRowCount() This method returns the current number of rows in the DataStores data buffer. |
public int | getRowStatus() This method returns the status flag of the current row. |
public int | getRowStatus(int row) This method returns the status flag of the specified row.
Parameters: row - The row in the datastore buffer. |
public short | getShort(int column) This method return a short value from the current row in the data store buffer. |
public short | getShort(int row, int column) This method return a short value from the data store buffer. |
public short | getShort(int row, String column) This method return a short value from the data store buffer. |
public short | getShort(String column) This method return a short value from the current row in the data store buffer. |
public String | getString(int column) This method return a string value from the data store buffer. |
public String | getString(int row, int column) This method return a string value from the data store buffer. |
public String | getString(int row, String column) This method return a String value from the data store buffer. |
public String | getString(String column) This method return a string value from the data store buffer. |
public String[] | getTableList(boolean updateable) This method returns an array of all the tables referenced in the datastore. |
public java.sql.Time | getTime(int column) This method return a time value from current row of the data store buffer. |
public java.sql.Time | getTime(int row, int column) This method return a time value from the data store buffer. |
public java.sql.Time | getTime(int row, String column) This method return a time value from the data store buffer. |
public java.sql.Time | getTime(String column) This method return a time value from current row of the data store buffer. |
public boolean | getTrimStrings() |
public int | getUpdateMethod() Gets the update method for the datastore. |
public int | getUseBindColumn(int col) This method is used to get whether a column should use bind variables for inserts and updates. |
public int | getUseBindColumn(String col) This method is used to get whether a column should use bind variables for inserts and updates. |
public boolean | getUseBindForUpdate() Use this method to get whether or not the datastore will use bind variables as the default for updating or inserting columns. |
public boolean | gotoFirst() This method makes the current row the first one in the result set. |
public boolean | gotoLast() This method makes the current row the last one in the result set. |
public boolean | gotoNext() This method increments the current row in the result set. |
public boolean | gotoPrior() This method decrements the current row in the result set. |
public boolean | gotoRow(int row) This method makes a specific row the current one in the result set. |
public int | insertRow() Inserts a blank row at the end of the DataStoreBuffer. |
public int | insertRow(int atPosition) * Inserts a blank row at the specified position of the DataStore's result set buffer. |
public boolean | isFormattedStringValid(int column, String value) This method will return true if the passed string value if a valid entry for the column based on the String format specified for the column via the setFormat method. |
public boolean | isFormattedStringValid(String column, String value) This method will return true if the passed string value if a valid entry for the column based on the String format specified for the column via the setFormat method. |
public boolean | isPrimaryKey(int col) |
public boolean | isPrimaryKey(String col) |
public boolean | isUpdateable(int col) |
public boolean | isUpdateable(String col) |
public boolean | ping() This method will ping the server for this particular data store. |
public boolean | removeRow() This removes the current row from the DataStore buffer. |
public boolean | removeRow(int row) This removes the row from the DataStore buffer. |
public void | reset() This method will clear all rows in the dataStore. |
public void | resetStatus() This method will clear the row status flags and clear the deleted buffer in the DataStoreBuffer. |
public void | retrieve() Executes the sql statement and retrieves to data. |
public void | setAny(int row, int column, Object value) This method sets a value in the data store's internal buffer. |
public void | setAny(int column, Object value) This method sets a value in the data store's internal buffer at the current row. |
public void | setAny(int row, String column, Object value) This method sets a value in the data store's internal buffer. |
public void | setAny(String column, Object value) This method sets a value in the data store's internal buffer at the current row. |
public void | setByteArray(int column, byte[] value) This method sets a value in the data store's internal buffer at the current row. |
public void | setByteArray(int row, int column, byte[] value) This method sets a value in the data store's internal buffer. |
public void | setByteArray(int row, String column, byte[] value) This method sets a value in the data store's internal buffer. |
public void | setByteArray(String column, byte[] value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDataStoreRow(int rowNo, int buffer, DataStoreRow row) This method sets the specified row in the DataStore. |
public void | setDate(int row, int column, java.sql.Date value) This method sets a value in the data store's internal buffer. |
public void | setDate(int row, String column, java.sql.Date value) This method sets a value in the data store's internal buffer. |
public void | setDate(int column, java.sql.Date value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDate(String column, java.sql.Date value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDateTime(int row, int column, java.sql.Timestamp value) This method sets a value in the data store's internal buffer. |
public void | setDateTime(int row, String column, java.sql.Timestamp value) This method sets a value in the data store's internal buffer. |
public void | setDateTime(int column, java.sql.Timestamp value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDateTime(String column, java.sql.Timestamp value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDistinct(boolean distinct) This method will set the distinct flag in the data store. |
public void | setDouble(int column, double value) This method sets a value in the data store's internal buffer at the current row. |
public void | setDouble(int row, int column, double value) This method sets a value in the data store's internal buffer. |
public void | setDouble(int row, String column, double value) This method sets a value in the data store's internal buffer. |
public void | setDouble(String column, double value) This method sets a value in the data store's internal buffer at the current row. |
public void | setFindExpression(String exp) This method will set the expression used to find rows in the datastore. |
public void | setFloat(int column, float value) This method sets a value in the data store's internal buffer at the current row. |
public void | setFloat(int row, int column, float value) This method sets a value in the data store's internal buffer. |
public void | setFloat(int row, String column, float value) This method sets a value in the data store's internal buffer. |
public void | setFloat(String column, float value) This method sets a value in the data store's internal buffer at the current row. |
public void | setFormat(int col, String format) This method sets a the format string for a date, time, datetime or numeric type column. |
public void | setFormat(String col, String format) This method sets a the format string for a date, time, datetime or numeric type column.
Date Formats
Symbol Meaning Presentation Example
------ ------- ------------ -------
G era designator (Text) AD
y year (Number) 1996
M month in year (Text & Number) July & 07
d day in month (Number) 10
h hour in am/pm (1~12) (Number) 12
H hour in day (0~23) (Number) 0
m minute in hour (Number) 30
s second in minute (Number) 55
S millisecond (Number) 978
E day in week (Text) Tuesday
D day in year (Number) 189
F day of week in month (Number) 2 (2nd Wed in July)
w week in year (Number) 27
W week in month (Number) 2
a am/pm marker (Text) PM
k hour in day (1~24) (Number) 24
K hour in am/pm (0~11) (Number) 0
z time zone (Text) Pacific Standard Time
' escape for text (Delimiter)
'' single quote (Literal) '
Numeric Formats
Symbol Meaning
------ -------
0 a digit
# a digit, zero shows as absent
. |
public void | setFormattedString(int row, int column, String value) |
public void | setFormattedString(int column, String value) |
public void | setFormattedString(int row, String column, String value) |
public void | setFormattedString(String column, String value) |
public void | setInt(int row, int column, int value) This method sets a value in the data store's internal buffer. |
public void | setInt(int row, String column, int value) This method sets a value in the data store's internal buffer. |
public void | setInt(String column, int value) This method sets a value in the data store's internal buffer at the current row. |
public void | setLong(int row, int column, long value) This method sets a value in the data store's internal buffer. |
public void | setLong(int column, long value) This method sets a value in the data store's internal buffer at the current row. |
public void | setLong(int row, String column, long value) This method sets a value in the data store's internal buffer. |
public void | setLong(String column, long value) This method sets a value in the data store's internal buffer at the current row. |
public void | setOrderBy(String orderBy) |
public void | setPrimaryKey(int col, boolean pkey) |
public void | setPrimaryKey(String col, boolean pkey) |
public void | setProperties(Properties p) This method builds the datastore from the information in the properties object. |
public void | setRemoteID(String remoteID) |
public boolean | setRowStatus(int status) This method sets the status flag of the current row. |
public boolean | setRowStatus(int row, int status) This method sets the status flag of the specified row. |
public void | setShort(int row, int column, short value) This method sets a value in the data store's internal buffer. |
public void | setShort(int row, String column, short value) This method sets a value in the data store's internal buffer. |
public void | setShort(int column, short value) This method sets a value in the data store's internal buffer at the current row. |
public void | setShort(String column, short value) This method sets a value in the data store's internal buffer at the current row. |
public void | setString(int row, int column, String value) This method sets a value in the data store's internal buffer. |
public void | setString(int column, String value) This method sets a value in the data store's internal buffer at the current row. |
public void | setString(int row, String column, String value) This method sets a value in the data store's internal buffer. |
public void | setString(String column, String value) This method sets a value in the data store's internal buffer at the current row. |
public void | setTime(int row, int column, java.sql.Time value) This method sets a value in the data store's internal buffer. |
public void | setTime(int row, String column, java.sql.Time value) This method sets a value in the data store's internal buffer. |
public void | setTime(int column, java.sql.Time value) This method sets a value in the data store's internal buffer at the current row. |
public void | setTime(String column, java.sql.Time value) This method sets a value in the data store's internal buffer at the current row. |
public void | sort(int[] col, int dir) This method will sort the rows in the data store on an array of columns.
col[] A array of column numbers to sort on. |
public void | sort(Object[] obj, int dir) This method will sort the rows in the data store on an array of columns.
obj[] A array of objects to sort on. |
public void | sort(String col, int dir) This method will sort the rows in the data store on an array of columns.
col[] A String array of column names to sort on. |
public void | sort(int col, int dir) This method will sort the rows in the data store on a particular column.
Parameters: col - The column number of the column to sort on. Parameters: dir - The direction to sort on. |
public void | sort(DataStoreEvaluator eval, int dir) This method will sort the rows in the data store using an expression. |
public void | sort(String col, int dir) This method will sort the rows in the data store on a particular column.
Parameters: col - The name of the column to sort on. Parameters: dir - The direction to sort on. |
public int | unDeleteRow(int row) This method will take a row from the datastores deleted buffer and move it back to the standard buffer.
Parameters: row - The number of the row to undelete. |
public void | update() This method will cause the database to reflect the changes made in the data store's buffer. |
public void | waitForCancel() |
public void | waitForRetrieve() This method will block until all the data from the last retrieve method call has been loaded into the DataStore's internal buffer. |