|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sql.rowset.BaseRowSet
org.compiere.util.CachedRowSetImpl
org.compiere.util.CCachedRowSet
public class CCachedRowSet
Compiere Cached Row Set Implementation
| Field Summary |
|---|
| 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. |
static RowSet |
getRowSet(ResultSet rs)
Get Cached Row Set. |
static RowSet |
getRowSet(ResultSet rs,
CompiereDatabase db)
Get Cached Row Set. |
static RowSet |
getRowSet(String sql)
Get Row Set. |
static RowSet |
getRowSet(String sql,
Connection conn,
CompiereDatabase 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 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,
CompiereDatabase db)
throws SQLException
sql - sqlconn - connectiondb - database
SQLException
public static RowSet getRowSet(ResultSet rs,
CompiereDatabase 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 CachedRowSetImplCollection object that contains the values in
each row in this CachedRowSet object
SQLExceptionCachedRowSetImpl.toCollection(int),
CachedRowSetImpl.toCollection(String),
TreeMap
public Collection<?> toCollection(int column)
throws SQLException
toCollection in interface CachedRowSettoCollection in class 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
SQLExceptionCachedRowSetImpl.toCollection(),
CachedRowSetImpl.toCollection(String),
Vector
public Collection<?> toCollection(String column)
throws SQLException
toCollection in interface CachedRowSettoCollection in class 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 providedCachedRowSetImpl.toCollection(),
CachedRowSetImpl.toCollection(int),
Vector
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||