|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.SimpleDbCursor<T>
org.tentackle.db.CachedDbCursor<T>
T - the data object classpublic class CachedDbCursor<T extends DbObject>
A caching cursor. Objects are kept in a list.
| Field Summary |
|---|
| Fields inherited from class org.tentackle.db.SimpleDbCursor |
|---|
db, dbClass, object, rc, rcName, row, rows, rs, withLinkedObjects |
| Constructor Summary | |
|---|---|
CachedDbCursor(Db db,
Class<T> dbClass,
ResultSetWrapper rs)
Creates a caching cursor. |
|
CachedDbCursor(Db db,
Class<T> dbClass,
ResultSetWrapper rs,
boolean withLinkedObjects)
Creates a caching cursor. |
|
CachedDbCursor(Db db,
RemoteDbCursor rc)
Creates a cached remote Cursor on the client-side. |
|
| Method Summary | |
|---|---|
void |
close()
overridden close |
T |
getObject()
Gets the cached object at the current row. |
boolean |
updateObjectOnly(T object)
Updates the contents of an object at the current row. |
| Methods inherited from class org.tentackle.db.SimpleDbCursor |
|---|
afterLast, beforeFirst, deleteObject, deleteObjectAt, fetch, finalize, first, getDbClass, getFetchDirection, getFetchSize, getObjectAt, getRow, getRowCount, isAfterLast, isBeforeFirst, isOpen, isRemote, last, newObject, next, previous, setDbContext, setFetchDirection, setFetchSize, setRow, toList, toListAndClose, toString, updateDbContext, updateObject, updateObjectAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CachedDbCursor(Db db,
Class<T> dbClass,
ResultSetWrapper rs,
boolean withLinkedObjects)
db - the db connectiondbClass - the DbObject classrs - the resultsetwithLinkedObjects - true if load linked objects, false otherwise
public CachedDbCursor(Db db,
Class<T> dbClass,
ResultSetWrapper rs)
db - the db connectiondbClass - the DbObject classrs - the resultset
public CachedDbCursor(Db db,
RemoteDbCursor rc)
db - the db connectionrc - the remote cursor| Method Detail |
|---|
public void close()
close in interface DbCursor<T extends DbObject>close in class SimpleDbCursor<T extends DbObject>public T getObject()
getObject in interface DbCursor<T extends DbObject>getObject in class SimpleDbCursor<T extends DbObject>public boolean updateObjectOnly(T object)
updateObjectOnly in interface DbCursor<T extends DbObject>updateObjectOnly in class SimpleDbCursor<T extends DbObject>object - the object to be updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||