|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.salespointframework.core.data.database.PersistenceManager.CachedResultSet
static class PersistenceManager.CachedResultSet
this class cahches ResultSets in performance mode to decrease query count
| Field Summary | |
|---|---|
(package private) java.util.Map<java.lang.String,java.lang.Integer> |
cols
column -> label mapping |
(package private) int |
cursor
cursor pointing to current record |
(package private) java.util.ArrayList<java.util.List<java.lang.Object>> |
data
datas |
(package private) java.util.ArrayList<java.lang.String> |
rCols
columns |
| Constructor Summary | |
|---|---|
PersistenceManager.CachedResultSet(java.sql.ResultSet rs)
default constructor |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
get number of columns |
java.lang.String |
getColumnName(int i)
get column name by index |
java.lang.Object |
getObject(int i)
get object by index |
java.lang.Object |
getObject(java.lang.String name)
get object by label |
java.lang.String |
getString(int i)
get value of column with index i |
java.lang.String |
getString(java.lang.String name)
get string by label |
boolean |
next(java.lang.String col,
java.lang.Object val)
moves the cursor to the next record which matches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.ArrayList<java.util.List<java.lang.Object>> data
java.util.Map<java.lang.String,java.lang.Integer> cols
java.util.ArrayList<java.lang.String> rCols
int cursor
| Constructor Detail |
|---|
public PersistenceManager.CachedResultSet(java.sql.ResultSet rs)
rs - resultset to cache| Method Detail |
|---|
public boolean next(java.lang.String col,
java.lang.Object val)
col - column to matchval - value to match
public java.lang.String getString(int i)
i - index
public java.lang.String getString(java.lang.String name)
throws java.sql.SQLException
name - label
java.sql.SQLException - if label not found
public java.lang.Object getObject(java.lang.String name)
throws java.sql.SQLException
name - label
java.sql.SQLException - if label was not foundpublic java.lang.Object getObject(int i)
i - index
public int getColumnCount()
public java.lang.String getColumnName(int i)
i - index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||