|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.storage.BaseDataBean
public abstract class BaseDataBean
The BaseDataBean is the parent of classes that typically are generated
by the DataBean Wizard of webAF. The BaseDataBean provides a mapping
between properties of the generated class to columns in the data source.
It also implements the TableNavigationV2Interface so that the
NavigationBar
component can be used with the generated class. This means that the
generated bean can provide a row of data for display in viewers while
the navigation bar supports scrolling among rows. If the data source is
updatable, the navigation bar will support committing changes, adding rows,
and deleting rows.
The data source is a JDBC result set.
The BaseDataBean provides methods from the JDBC API for working with
the data. The data source is represented by a property that can be changed,
as long as the new data source has at least the same columns in it as those
in the generated bean.
The data can be subset by setting the queryStatement
property with a SQL query.
| Field Summary | |
|---|---|
protected com.sas.sasserver.datawizard.StackChecker |
_stackChecker
|
protected boolean |
atBeginning
|
protected boolean |
atEnd
|
protected int |
autoCommitLevel
|
protected boolean |
badState
|
protected boolean |
calledFromExecuteQuery
|
protected boolean |
calledFromFireAll
|
protected boolean |
calledFromInit
|
protected static int |
CANCELSUPPORTED
|
static int |
COLUMNMAP_BASEDATABEAN_FUTURES
|
static int |
COLUMNMAP_COLUMN_INDEX
|
static int |
COLUMNMAP_COLUMN_NAME
|
static int |
COLUMNMAP_COLUMN_TYPE
|
static int |
COLUMNMAP_FORMATTED_PROPERTY_NAME
|
static int |
COLUMNMAP_PROPERTY_NAME
|
static int |
COLUMNMAP_USERBASE
|
protected static int |
COMMITSUPPORTED
|
protected boolean |
commitWithUpdate
|
protected boolean |
cursorValid
|
protected boolean |
dataNeedsCommit
|
protected java.sql.Connection |
dataSource
|
protected boolean |
delayCommit
|
protected static int |
DELETESUPPORTED
|
protected boolean |
endOfForwardOnlyResultSet
|
protected static int |
FIRSTSUPPORTED
|
protected boolean |
initialized
|
protected static int |
INSERTSUPPORTED
|
protected boolean |
isDesignTime
|
protected boolean |
isOnInsertRow
|
protected static int |
LASTSUPPORTED
|
protected static int |
NEXTSUPPORTED
|
protected static int |
PAGEBACKWARDSUPPORTED
|
protected static int |
PAGEFORWARDSUPPORTED
|
protected int |
pageSize
|
protected static int |
PREVIOUSSUPPORTED
|
protected java.lang.String |
queryStatement
|
static java.lang.String |
RB_KEY
|
protected static int |
REFRESHSUPPORTED
|
protected java.sql.ResultSet |
results
|
protected int |
resultSetConcurrency
|
protected int |
resultSetType
|
protected boolean |
setBadState
|
protected java.sql.Statement |
statement
|
protected java.sql.SQLException |
statusException
|
protected boolean[] |
supported
|
| Fields inherited from interface com.sas.table.TableNavigationV2Interface |
|---|
COMMITLEVEL_CELL, COMMITLEVEL_NONE, COMMITLEVEL_ROW, DEFAULT_PAGESIZE |
| Constructor Summary | |
|---|---|
BaseDataBean()
|
|
BaseDataBean(java.sql.Connection dataSource)
Constructor that takes a Connection object and creates a read-only
data bean. |
|
BaseDataBean(java.sql.Connection dataSource,
int resultSetConcurrency)
Constructor that takes a Connection object and a value for
result set concurrency. |
|
BaseDataBean(java.sql.Connection dataSource,
java.lang.String queryStatement)
Constructor used to create a read-only data bean. |
|
BaseDataBean(java.sql.Connection dataSource,
java.lang.String queryStatement,
int resultSetConcurrency)
Constructor that takes a Connection object, a query statement and a value for
result set concurrency. |
|
| Method Summary | |
|---|---|
protected void |
_fireAll()
|
boolean |
cancel()
Cancels any changes to the current row. |
protected boolean |
checkValue()
|
boolean |
commit()
Commits any changes to the current row to the data source. |
protected void |
commitData(int commitLevel)
|
boolean |
delete()
Deletes the current row from the table. |
boolean |
executeQuery()
This method directly calls executeQuery(queryStatement). |
boolean |
executeQuery(java.lang.String queryStatement)
This method attempts to commit any modified data before executing the query. |
boolean |
first()
Move the cursor to the first row (or observation). |
protected void |
fpc(java.lang.String propertyName,
boolean newValue,
int index)
|
protected java.sql.Array |
getArrayColumn(int columnIndex)
Gets the value of the designated column in the current row as an array object. |
int |
getAutoCommitLevel()
Gets the the level at which the data will be committed. |
protected java.math.BigDecimal |
getBigDecimalColumn(int columnIndex)
|
protected java.sql.Blob |
getBlobColumn(int columnIndex)
|
protected boolean |
getBooleanColumn(int columnIndex)
|
protected byte[] |
getByteArrayColumn(int columnIndex)
Gets the value of the designated column in the current row as an array of bytes in the Java programming language. |
protected byte |
getByteColumn(int columnIndex)
|
protected java.sql.Clob |
getClobColumn(int columnIndex)
|
protected abstract java.lang.Object[][] |
getColumnMapping()
|
java.sql.Connection |
getDataSource()
Gets the Connection object used as the bean's data source. |
protected java.sql.Date |
getDateColumn(int columnIndex)
|
protected double |
getDoubleColumn(int columnIndex)
|
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
protected float |
getFloatColumn(int columnIndex)
|
protected int |
getIntColumn(int columnIndex)
|
protected long |
getLongColumn(int columnIndex)
|
protected java.lang.Object |
getObjectColumn(int columnIndex)
|
int |
getPageSize()
Gets the number of records in a page. |
protected abstract java.util.Hashtable |
getPropertyNameMap()
|
java.lang.String |
getQueryStatement()
Returns the SQL query that has been applied to the data source. |
protected java.sql.Ref |
getRefColumn(int columnIndex)
|
int |
getResultSetConcurrency()
Returns one of ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE. |
protected java.sql.ResultSetMetaData |
getResultSetMetaData()
Returns the ResultSetMetaData object used within the data bean. |
int |
getResultSetType()
Retrieves the type of the underlying ResultSet object. |
int |
getRow()
Returns the number of the current row in the data bean. |
int |
getRowCount()
Returns the number of rows in the data bean or -1 if the number of rows cannot be determined, or the result set is on the insert row. |
protected short |
getShortColumn(int columnIndex)
|
java.sql.Statement |
getStatement()
Gets the Statement object. |
java.lang.Exception |
getStatusException()
Gets a status exception. |
protected java.lang.String |
getStringColumn(int columnIndex)
|
protected java.sql.Time |
getTimeColumn(int columnIndex)
|
protected java.sql.Timestamp |
getTimestampColumn(int columnIndex)
|
protected void |
init()
Initializes the data bean by creating a Statement and calling
executeQuery(queryStatement). |
protected int |
initColumnIndex(java.lang.String propertyName)
|
protected abstract void |
initColumnIndexes()
|
protected void |
initializeData()
|
protected void |
initializeResults()
Called by some methods and constructors, to commit any data needing commital before re-initialization of the data bean. |
protected void |
initPropertyNameMap(java.util.Hashtable propertyNameMap)
|
boolean |
insert()
Prepares for a new record to be inserted into the table. |
boolean |
isCancelSupported()
Determines whether the cancel() method can be called. |
boolean |
isCommitSupported()
Determines whether the commit() method can be called. |
boolean |
isCursorValid()
Determines whether the current row position is valid |
boolean |
isDeleteSupported()
Determines whether the delete() method can be called. |
boolean |
isFirstSupported()
Determines whether the first() method can be called. |
boolean |
isInsertSupported()
Determines whether the insert() method can be called. |
boolean |
isLastSupported()
Determines whether the last() method can be called. |
boolean |
isModified()
Determines whether the current row has been modified. |
boolean |
isNextSupported()
Determines whether the next() method can be called. |
boolean |
isOnInsertRow()
|
boolean |
isPageBackwardSupported()
Determines whether the pageBackward() method can be called. |
boolean |
isPageForwardSupported()
Determines whether the pageForward() method can be called. |
boolean |
isPreviousSupported()
Determines whether the previous() method can be called. |
boolean |
isRefreshSupported()
Determines whether the refresh() method can be called. |
protected void |
itemChanged(int columnIndex)
|
boolean |
last()
Move to the last row (or observation). |
boolean |
move(int row)
Moves to the absolute row number given (one-based). |
boolean |
next()
Move to the next row (or observation). |
boolean |
pageBackward()
Moves the cursor backward one page, which is determined by pageSize. |
boolean |
pageForward()
Moves the cursor forward one page, which is determined by pageSize. |
boolean |
previous()
Move to the previous row (or observation). |
boolean |
refresh()
Causes the data in the table to be re-read by calling executeQuery(). |
protected void |
rowChanged()
|
void |
setAutoCommitLevel(int autoCommitLevel)
Sets the level at which data will be committed. |
void |
setDataSource(java.sql.Connection dataSource)
Sets a connection object as the data source for the data bean. |
void |
setDataSource(java.sql.Connection dataSource,
int resultSetConcurrency)
Sets a connection object as the data source for the data bean and applies the specified value of result set concurrency. |
void |
setPageSize(int pageSize)
Sets the number of records in a page. |
void |
setQueryStatement(java.lang.String queryStatement)
Sets a SQL query that will be used to obtain a selection of data from the data source. |
void |
setResultSetConcurrency(int concur)
Changes the concurrency of the result set to determine whether it can be updated. |
void |
setResultSetType(int type)
Changes the type of the result set to determine whether it can be scrolled and whether changes to column values made to the underlying data base are ever shown in the result set. |
void |
setStatement(java.sql.Statement statement)
Sets a new Statement object. |
protected void |
setStatusException(java.sql.SQLException statusException)
Sets a status exception. |
protected void |
updateColumn(int columnIndex)
|
protected void |
updateColumn(int columnIndex,
java.math.BigDecimal value)
|
protected void |
updateColumn(int columnIndex,
boolean value)
|
protected void |
updateColumn(int columnIndex,
byte value)
|
protected void |
updateColumn(int columnIndex,
byte[] value)
|
protected void |
updateColumn(int columnIndex,
java.sql.Date value)
|
protected void |
updateColumn(int columnIndex,
double value)
|
protected void |
updateColumn(int columnIndex,
float value)
|
protected void |
updateColumn(int columnIndex,
int value)
|
protected void |
updateColumn(int columnIndex,
long value)
|
protected void |
updateColumn(int columnIndex,
java.lang.Object value)
|
protected void |
updateColumn(int columnIndex,
short value)
|
protected void |
updateColumn(int columnIndex,
java.lang.String value)
|
protected void |
updateColumn(int columnIndex,
java.sql.Time value)
|
protected void |
updateColumn(int columnIndex,
java.sql.Timestamp value)
|
| Field Detail |
|---|
public static final java.lang.String RB_KEY
protected static final int NEXTSUPPORTED
protected static final int PREVIOUSSUPPORTED
protected static final int FIRSTSUPPORTED
protected static final int LASTSUPPORTED
protected static final int COMMITSUPPORTED
protected static final int INSERTSUPPORTED
protected static final int DELETESUPPORTED
protected static final int CANCELSUPPORTED
protected static final int REFRESHSUPPORTED
protected static final int PAGEFORWARDSUPPORTED
protected static final int PAGEBACKWARDSUPPORTED
protected transient boolean[] supported
public static int COLUMNMAP_PROPERTY_NAME
public static int COLUMNMAP_COLUMN_NAME
public static int COLUMNMAP_COLUMN_TYPE
public static int COLUMNMAP_COLUMN_INDEX
public static int COLUMNMAP_FORMATTED_PROPERTY_NAME
public static int COLUMNMAP_BASEDATABEAN_FUTURES
public static int COLUMNMAP_USERBASE
protected boolean atBeginning
protected boolean atEnd
protected boolean badState
protected boolean commitWithUpdate
protected boolean dataNeedsCommit
protected boolean delayCommit
protected boolean isDesignTime
protected boolean initialized
protected boolean calledFromExecuteQuery
protected boolean calledFromInit
protected boolean calledFromFireAll
protected boolean setBadState
protected int autoCommitLevel
protected int pageSize
protected int resultSetConcurrency
protected int resultSetType
protected java.lang.String queryStatement
protected java.sql.SQLException statusException
protected transient java.sql.Connection dataSource
protected transient java.sql.ResultSet results
protected transient java.sql.Statement statement
protected transient com.sas.sasserver.datawizard.StackChecker _stackChecker
protected boolean isOnInsertRow
protected boolean endOfForwardOnlyResultSet
protected boolean cursorValid
| Constructor Detail |
|---|
public BaseDataBean()
public BaseDataBean(java.sql.Connection dataSource,
int resultSetConcurrency)
throws java.sql.SQLException
Connection object and a value for
result set concurrency.
dataSource - A Connection object.resultSetConcurrency - Either java.sql.ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLE.
java.sql.SQLException - if one is thrown by any JDBC operation
public BaseDataBean(java.sql.Connection dataSource)
throws java.sql.SQLException
Connection object and creates a read-only
data bean.
dataSource - A Connection object.
java.sql.SQLException - if one is thrown by any JDBC operation
public BaseDataBean(java.sql.Connection dataSource,
java.lang.String queryStatement,
int resultSetConcurrency)
throws java.sql.SQLException
Connection object, a query statement and a value for
result set concurrency.
dataSource - A Connection object.queryStatement - A SQL query that is valid for the database
represented by dataSource.resultSetConcurrency - Either java.sql.ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLE.
java.sql.SQLException - if one is thrown by any JDBC operation
public BaseDataBean(java.sql.Connection dataSource,
java.lang.String queryStatement)
throws java.sql.SQLException
dataSource - A Connection object.queryStatement - A SQL query that is valid for the database
represented by dataSource.
java.sql.SQLException - if one is thrown by any JDBC operation| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public void setDataSource(java.sql.Connection dataSource,
int resultSetConcurrency)
throws java.sql.SQLException
dataSource - A Connection object.resultSetConcurrency - Either java.sql.ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLE.
java.sql.SQLException - if one is thrown by any JDBC operation
public void setDataSource(java.sql.Connection dataSource)
throws java.sql.SQLException
dataSource - A Connection object.
java.sql.SQLException - if one is thrown by dataSource(datasource, resultSetConcurrency.
protected void initializeResults()
throws java.sql.SQLException
java.sql.SQLException - if any underlying JDBC operation threw an exception
java.lang.IllegalStateException - if modified data is not committed.public java.sql.Connection getDataSource()
Connection object used as the bean's data source.
Connection object.public void setStatement(java.sql.Statement statement)
Statement object. It should have been created from the
same dataSource object already set on the data bean.
statement - The Statement to applypublic java.sql.Statement getStatement()
Statement object.
Statement objectpublic boolean executeQuery()
executeQuery()public boolean executeQuery(java.lang.String queryStatement)
next() method is
called on the result set to move to the first row. This assures that
any viewers attached to the data bean will immediately show data.
java.lang.IllegalStateException - if modified data cannot be committed.Statement.executeQuery(java.lang.String)public void setQueryStatement(java.lang.String queryStatement)
queryStatement - The query to apply.public java.lang.String getQueryStatement()
public void setResultSetType(int type)
throws java.sql.SQLException
ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE,
or ResultSet.TYPE_SCROLL_SENSITIVE.
If the value of type changes from current value, a new statement object is created and the query statement is executed again.
type - the type of result set desired
java.lang.IllegalArgumentException - if invalid result set type
java.sql.SQLException - if one is thrown by any JDBC operationpublic int getResultSetType()
ResultSet object.
ResultSet constants: TYPE_FORWARD_ONLY,
TYPE_SCROLL_INSENSITIVE, or TYPE_SCROLL_SENSITIVEResultSet.getType()
public void setResultSetConcurrency(int concur)
throws java.sql.SQLException
ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE.
If the value of concur changes from current value, a new statement object is created and the query statement is executed again.
type - the type of result set desired
java.lang.IllegalArgumentException - if invalid result set type
java.sql.SQLExceptionpublic int getResultSetConcurrency()
ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE.
ResultSet.getConcurrency()
protected void updateColumn(int columnIndex,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
double value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
long value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
byte[] value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
boolean value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
java.sql.Date value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
java.math.BigDecimal value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
float value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
int value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
java.lang.Object value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
short value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
java.sql.Time value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
java.sql.Timestamp value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex,
byte value)
throws java.sql.SQLException
java.sql.SQLException
protected void updateColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Array getArrayColumn(int columnIndex)
throws java.sql.SQLException
columnIndex - The one-based column index
java.sql.SQLException - if one is thrown by any JDBC operationResultSet.getArray(int)
protected byte[] getByteArrayColumn(int columnIndex)
throws java.sql.SQLException
bytes in the Java programming language.
columnIndex - The one-based column index
java.sql.SQLException - if one is thrown by any JDBC operationResultSet.getBytes(int)
protected boolean getBooleanColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String getStringColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected double getDoubleColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected long getLongColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.math.BigDecimal getBigDecimalColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected float getFloatColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected int getIntColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.lang.Object getObjectColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Ref getRefColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected short getShortColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Time getTimeColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Timestamp getTimestampColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected byte getByteColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Blob getBlobColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Clob getClobColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Date getDateColumn(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean first()
Move the cursor to the first row (or observation).
The autoCommitLevel will be honored before navigating rows.
Use getStatusException() to learn more details if first() returns false.
first in interface TableNavigationInterfaceTableNavigationInterface.first()public boolean last()
Move to the last row (or observation).
The autoCommitLevel will be honored before navigating rows.
Use getStatusException() to learn more details if last() returns false.
last in interface TableNavigationInterfaceTableNavigationInterface.last()public boolean previous()
Move to the previous row (or observation).
The autoCommitLevel will be honored before navigating rows.
Use getStatusException() to learn more details if previous() returns false.
previous in interface TableNavigationInterfaceTableNavigationInterface.previous()public boolean next()
Move to the next row (or observation).
The autoCommitLevel will be honored before navigating rows.
Use getStatusException to learn more details if next() returns false.
next in interface TableNavigationInterfaceTableNavigationInterface.next()public boolean isOnInsertRow()
public boolean insert()
Prepares for a new record to be inserted into the table.
The autoCommitLevel will be honored before leaving the current row.
Use getStatusException to learn more details if insert() returns false.
insert in interface TableNavigationInterfaceTableNavigationInterface.insert()public boolean move(int row)
Moves to the absolute row number given (one-based).
The autoCommitLevel will be honored before navigating rows.
Use getStatusException to learn more details if move() returns false.
move in interface TableNavigationInterfacerow - 1-based row number
TableNavigationInterface.move(int)public boolean commit()
Commits any changes to the current row to the data source.
This includes any updates or inserting a new row into the table.
Use getStatusException to learn more details if commit() returns false.
commit in interface TableNavigationInterfaceTableNavigationInterface.commit()public boolean cancel()
Cancels any changes to the current row.
This includes any updates or inserting a new row into the table.
Use getStatusException() to learn more details if cancel() returns false.
cancel in interface TableNavigationV2InterfaceTableNavigationV2Interface.cancel()public boolean refresh()
executeQuery().
refresh in interface TableNavigationV2InterfaceTableNavigationV2Interface.refresh()public void setPageSize(int pageSize)
Sets the number of records in a page. To be used when paging forward or backward.
setPageSize in interface TableNavigationV2InterfacepageSize - Number of records in a page.TableNavigationV2Interface.setPageSize(int)public int getPageSize()
Gets the number of records in a page. To be used when paging forward or backward.
getPageSize in interface TableNavigationV2InterfaceTableNavigationV2Interface.getPageSize()protected void setStatusException(java.sql.SQLException statusException)
Sets a status exception. Many methods on the TableNavigationInterface and TableNaviationV2Interface
return false rather than throwing an exception when a method fails.
The statusException can be used to
communicate a more detailed explanation for the failure. This method sets the exception
on the dataBean so it can be retrieved with the public method getStatusException().
statusException - sets the exception object containing a description of an errorpublic java.lang.Exception getStatusException()
Gets a status exception. Many methods on the TableNavigationInterface and
TableNavigationV2Interface return false
rather than throwing an exception when a method fails. The statusException
can be used to
communicate a more detailed explanation for the failure. This method gets the exception
which then may be examined. For example:
if (! dataBean.executeQuery) {
// getStatusException to see what went wrong
SQLException e = (SQLException)dataBean.getStatusException();
String state = e.getSQLState();
String reason = e.getMessage();
}
Calling this method on the BaseDataBean always returns a SQLException.
getStatusException in interface TableNavigationV2InterfaceTableNavigationV2Interface.getStatusException(),
SQLExceptionpublic void setAutoCommitLevel(int autoCommitLevel)
Sets the level at which data will be committed.
setAutoCommitLevel in interface TableNavigationV2InterfaceautoCommitLevel - Level at which the data will be committed.TableNavigationV2Interface.setAutoCommitLevel(int)public int getAutoCommitLevel()
Gets the the level at which the data will be committed.
getAutoCommitLevel in interface TableNavigationV2InterfaceTableNavigationV2Interface.getAutoCommitLevel()protected void initializeData()
protected void commitData(int commitLevel)
public boolean pageForward()
Moves the cursor forward one page, which is determined by pageSize.
pageForward in interface TableNavigationV2InterfaceTableNavigationV2Interface.pageForward()public boolean pageBackward()
Moves the cursor backward one page, which is determined by pageSize.
pageBackward in interface TableNavigationV2InterfaceTableNavigationV2Interface.pageBackward()public boolean delete()
Deletes the current row from the table.
delete in interface TableNavigationInterfaceTableNavigationInterface.delete()public boolean isPreviousSupported()
Determines whether the previous() method can be called.
isPreviousSupported in interface TableNavigationInterfaceTableNavigationInterface.isPreviousSupported()public boolean isPageBackwardSupported()
Determines whether the pageBackward() method can be called.
isPageBackwardSupported in interface TableNavigationV2InterfaceTableNavigationV2Interface.isPageBackwardSupported()public boolean isNextSupported()
Determines whether the next() method can be called.
isNextSupported in interface TableNavigationInterfaceTableNavigationInterface.isNextSupported()public boolean isPageForwardSupported()
Determines whether the pageForward() method can be called.
isPageForwardSupported in interface TableNavigationV2InterfaceTableNavigationV2Interface.isPageForwardSupported()public boolean isFirstSupported()
Determines whether the first() method can be called.
isFirstSupported in interface TableNavigationInterfaceTableNavigationInterface.isFirstSupported()public boolean isLastSupported()
Determines whether the last() method can be called.
isLastSupported in interface TableNavigationInterfaceTableNavigationInterface.isLastSupported()public boolean isInsertSupported()
Determines whether the insert() method can be called.
isInsertSupported in interface TableNavigationInterfaceTableNavigationInterface.isInsertSupported()public boolean isCommitSupported()
Determines whether the commit() method can be called.
isCommitSupported in interface TableNavigationInterfaceTableNavigationInterface.isCommitSupported()public boolean isDeleteSupported()
Determines whether the delete() method can be called.
isDeleteSupported in interface TableNavigationInterfaceTableNavigationInterface.isDeleteSupported()public boolean isCancelSupported()
Determines whether the cancel() method can be called.
isCancelSupported in interface TableNavigationV2InterfaceTableNavigationV2Interface.isCancelSupported()public boolean isRefreshSupported()
Determines whether the refresh() method can be called.
isRefreshSupported in interface TableNavigationV2InterfaceTableNavigationV2Interface.isRefreshSupported()public boolean isModified()
Determines whether the current row has been modified.
isModified in interface TableNavigationInterfaceTableNavigationInterface.isModified()public boolean isCursorValid()
Determines whether the current row position is valid
isCursorValid in interface TableNavigationInterfaceTableNavigationInterface.isCursorValid()public int getRow()
ResultSet.getRow()public int getRowCount()
protected abstract void initColumnIndexes()
throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract java.lang.Object[][] getColumnMapping()
protected abstract java.util.Hashtable getPropertyNameMap()
protected void initPropertyNameMap(java.util.Hashtable propertyNameMap)
protected int initColumnIndex(java.lang.String propertyName)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void itemChanged(int columnIndex)
protected void rowChanged()
protected void _fireAll()
protected void fpc(java.lang.String propertyName,
boolean newValue,
int index)
protected java.sql.ResultSetMetaData getResultSetMetaData()
throws java.sql.SQLException
ResultSetMetaData object used within the data bean.
ResultSetMetaData object
java.sql.SQLException - if thrown by any underlying JDBC operation
protected void init()
throws java.sql.SQLException
Statement and calling
executeQuery(queryStatement).
statusException - if dataSource is null.
java.sql.SQLException - if any underlying JDBC operation throws an exceptionprotected boolean checkValue()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||