|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sql.rowset.BaseRowSet
com.sun.rowset.CachedRowSetImpl
org.compiere.util.CCachedRowSet
public class CCachedRowSet
Adempiere Cached Row Set Implementation
| Field Summary |
|---|
| Fields inherited from class com.sun.rowset.CachedRowSetImpl |
|---|
resBundle |
| Fields inherited from class javax.sql.rowset.BaseRowSet |
|---|
ASCII_STREAM_PARAM, asciiStream, BINARY_STREAM_PARAM, binaryStream, charStream, UNICODE_STREAM_PARAM, unicodeStream |
| Fields inherited from interface javax.sql.rowset.CachedRowSet |
|---|
COMMIT_ON_ACCEPT_CHANGES |
| Fields inherited from interface java.sql.ResultSet |
|---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Method Summary | |
|---|---|
static CCachedRowSet |
get()
Get Cached Row Set. |
int |
getInt(int idx)
|
int |
getInt(String column)
|
static RowSet |
getRowSet(ResultSet rs)
Get Cached Row Set. |
static RowSet |
getRowSet(ResultSet rs,
AdempiereDatabase db)
Get Cached Row Set. |
static RowSet |
getRowSet(String sql)
Get Row Set. |
static RowSet |
getRowSet(String sql,
Connection conn,
AdempiereDatabase db)
Get and Execute Row Set. |
static void |
main(String[] args)
Test |
Collection<?> |
toCollection()
To Collection |
Collection<?> |
toCollection(int column)
To Collection |
Collection<?> |
toCollection(String column)
To Collection |
| Methods inherited from class com.sun.rowset.CachedRowSetImpl |
|---|
absolute, acceptChanges, acceptChanges, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, clone, close, columnUpdated, columnUpdated, commit, createCopy, createCopyNoConstraints, createCopySchema, createShared, deleteRow, execute, execute, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConnection, getCurrentRow, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getHoldability, getKeyColumns, getLong, getLong, getMatchColumnIndexes, getMatchColumnNames, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getOriginal, getOriginalRow, getPageSize, getRef, getRef, getRow, getRowId, getRowId, getRowSetWarnings, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getSyncProvider, getTableName, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, internalFirst, internalLast, internalNext, internalPrevious, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, next, nextPage, populate, populate, previous, previousPage, readObject, refreshRow, relative, release, removeCurrentRow, restoreOriginal, rollback, rollback, rowDeleted, rowInserted, rowSetPopulated, rowUpdated, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setClob, setClob, setCommand, setDate, setDate, setDouble, setFloat, setInt, setKeyColumns, setLong, setMatchColumn, setMatchColumn, setMatchColumn, setMatchColumn, setMetaData, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNClob, setNClob, setNClob, setNString, setNString, setNull, setNull, setObject, setObject, setObject, setOriginal, setOriginalRow, setPageSize, setRowId, setRowId, setRowInserted, setShort, setSQLXML, setSQLXML, setString, setSyncProvider, setTableName, setTime, setTime, setTimestamp, setTimestamp, setURL, size, undoDelete, undoInsert, undoUpdate, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.rowset.CachedRowSet |
|---|
acceptChanges, acceptChanges, columnUpdated, columnUpdated, commit, createCopy, createCopyNoConstraints, createCopySchema, createShared, execute, getKeyColumns, getOriginal, getOriginalRow, getPageSize, getRowSetWarnings, getShowDeleted, getSyncProvider, getTableName, nextPage, populate, populate, previousPage, release, restoreOriginal, rollback, rollback, rowSetPopulated, setKeyColumns, setMetaData, setOriginalRow, setPageSize, setShowDeleted, setSyncProvider, setTableName, size, undoDelete, undoInsert, undoUpdate |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Methods inherited from interface javax.sql.rowset.Joinable |
|---|
getMatchColumnIndexes, getMatchColumnNames, setMatchColumn, setMatchColumn, setMatchColumn, setMatchColumn, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn |
| Methods inherited from interface javax.sql.RowSetInternal |
|---|
getParams |
| Method Detail |
|---|
public static CCachedRowSet get()
throws SQLException
SQLException
public static RowSet getRowSet(String sql)
throws SQLException
sql - sql
SQLException
public static RowSet getRowSet(String sql,
Connection conn,
AdempiereDatabase db)
throws SQLException
sql - sqlconn - connectiondb - database
SQLException
public static RowSet getRowSet(ResultSet rs,
AdempiereDatabase db)
throws SQLException
rs - result setdb - database
SQLException
public static RowSet getRowSet(ResultSet rs)
throws SQLException
rs - result set
SQLExceptionpublic static void main(String[] args)
args - ignored
public Collection<?> toCollection()
throws SQLException
toCollection in interface CachedRowSettoCollection in class com.sun.rowset.CachedRowSetImplCollection object that contains the values in
each row in this CachedRowSet object
SQLException
public Collection<?> toCollection(int column)
throws SQLException
toCollection in interface CachedRowSettoCollection in class com.sun.rowset.CachedRowSetImplcolumn - an int indicating the column whose values
are to be represented in a Collection object
Collection object that contains the values
stored in the specified column of this CachedRowSet object
SQLException
public Collection<?> toCollection(String column)
throws SQLException
toCollection in interface CachedRowSettoCollection in class com.sun.rowset.CachedRowSetImplcolumn - a String object giving the name of the
column whose values are to be represented in a collection
Collection object that contains the values
stored in the specified column of this CachedRowSet object
SQLException - if an error occurs generating the collection or
an invalid column id is provided
public int getInt(int idx)
throws SQLException
getInt in interface ResultSetgetInt in class com.sun.rowset.CachedRowSetImplSQLException
public int getInt(String column)
throws SQLException
getInt in interface ResultSetgetInt in class com.sun.rowset.CachedRowSetImplSQLException
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||