|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intersys.classes.CacheGeneric
com.intersys.classes.CacheRootObject
com.intersys.classes.RegisteredObject
com.intersys.classes.SysResultSet
com.intersys.classes.ResultSet
CacheQuery
instead.
The class ResultSet
is used for query results.
Constructor Summary | |
ResultSet(com.intersys.cache.CacheObject ref)
Deprecated. |
|
ResultSet(Database factory,
String sql,
int idColumn)
Deprecated. Constructor for a ResultSet object. |
|
ResultSet(Database factory,
String classname,
String queryname)
Deprecated. Constructor for a ResultSet object. |
Method Summary | |
void |
_classNameSet(String _class)
Runs method _classNameSet in Cache |
Integer |
_containsId()
Runs method _containsId in Cache |
void |
_execute(com.intersys.cache.Dataholder[] args)
|
void |
_execute(String p1,
String p2,
String p3,
String p4,
String p5,
String p6,
String p7,
String p8,
String p9,
String p10,
String p11,
String p12,
String p13,
String p14,
String p15,
String p16)
Runs method _execute in Cache |
String |
_get(String name)
Runs method _get in Cache |
Integer |
_getColumnCount()
Runs method _getColumnCount in Cache |
String |
_getColumnHeader(Integer n)
Runs method _getColumnHeader in Cache |
String |
_getColumnName(Integer n)
Runs method _getColumnName in Cache |
String |
_getData(Integer n)
Runs method _getData in Cache |
String |
_getDataByName(String name)
Runs method _getDataByName in Cache |
Integer |
_getParamCount()
Runs method _getParamCount in Cache |
String |
_getParamName(Integer n)
Runs method _getParamName in Cache |
Integer |
_next(StatusCodeHolder _sc)
Runs method _next in Cache |
void |
_prepare(String p1,
String p2,
String p3,
String p4,
String p5,
String p6,
String p7,
String p8,
String p9,
String p10,
String p11,
String p12,
String p13,
String p14,
String p15,
String p16)
Runs method _prepare in Cache |
Integer |
_queryIsValid()
Runs method _queryIsValid in Cache |
static void |
_runQuery(Database db,
String ClassName,
String QueryName,
String p1,
String p2,
String p3,
String p4,
String p5,
String p6,
String p7,
String p8,
String p9,
String p10,
String p11,
String p12,
String p13,
String p14,
String p15,
String p16)
Runs method _runQuery in Cache |
static void |
_test(Database db,
String ClassName,
String QueryName,
String p1,
String p2,
String p3,
String p4,
String p5,
String p6,
String p7,
String p8,
String p9,
String p10,
String p11,
String p12,
String p13,
String p14,
String p15,
String p16)
Runs method _test in Cache |
ResultSet |
asJDBCResultSet()
Deprecated. |
static void |
check_classNameValid(Database db)
Verifies that indexes for property _className in
zObjVal are the same as in Cache. |
static void |
check_queryNameValid(Database db)
Verifies that indexes for property _queryName in
zObjVal are the same as in Cache. |
static void |
check_runtimeModeValid(Database db)
Verifies that indexes for property _runtimeMode in
zObjVal are the same as in Cache. |
static void |
checkAllFieldsValid(Database db)
Verifies that all fields from Cache class are exposed with accessor methods in Java class and that values for indexes in zObjVal are the same as in Cache. |
static void |
checkAllMethods(Database db)
Verifies that all fields from Cache class are exposed with accessor methods in Java class and that values for indexes in zObjVal are the same as in Cache. |
void |
clearParameters()
Deprecated. Clears the query argument list |
void |
close()
Deprecated. Closes the result set and rleeases driver resources used for the executed query. |
void |
closeSQL()
Deprecated. Closes query and releases all driver and database resources. |
void |
execute()
Deprecated. Executes this query |
void |
finalize()
Deprecated. |
String |
get_className()
Returns value of property _className |
String |
get_queryName()
Returns value of property _queryName |
String |
get_runtimeMode()
Returns value of property _runtimeMode |
BigDecimal |
getBigDecimal(int index)
Deprecated. Get column as a BigDecimal |
BigDecimal |
getBigDecimal(String name)
Deprecated. Get column as a BigDecimal |
boolean |
getBoolean(int index)
Deprecated. Get column as a boolean |
boolean |
getBoolean(String name)
Deprecated. Get column as a boolean |
CacheClass |
getCacheClass()
Allows access metadata information about type of this object in Cache database. |
static String |
getCacheClassName()
Returns class name of the class ResultSet as it is in Cache Database. |
int |
getColumnCount()
Deprecated. Get the number of columns in this query |
ResultSetColumn[] |
getColumns()
Deprecated. Get column information for each column |
Date |
getDate(int index)
Deprecated. Get column as a Date |
Date |
getDate(String name)
Deprecated. Get column as a Date |
double |
getDouble(int index)
Deprecated. Get column as a double |
double |
getDouble(String name)
Deprecated. Get column as a double |
int |
getInt(int index)
Deprecated. Get column as an int |
int |
getInt(String name)
Deprecated. Get column as an int |
long |
getLong(int index)
Deprecated. Get column as a long |
long |
getLong(String name)
Deprecated. Get column as a long |
String |
getString(int index)
Deprecated. Get column as a String |
String |
getString(String name)
Deprecated. Get column as a String |
Object |
getSysList(int index)
Deprecated. Get column as a List |
Object |
getSysList(String name)
Deprecated. Get column as a List |
Time |
getTime(int index)
Deprecated. Get column as a Time |
Time |
getTime(String name)
Deprecated. Get column as a Time |
Timestamp |
getTimestamp(int index)
Deprecated. Get column as a Timestamp |
Timestamp |
getTimestamp(String name)
Deprecated. Get column as a Timestamp |
boolean |
isOpen()
Deprecated. Returns the open/close status of this ResultSet |
boolean |
next()
Deprecated. Moves the cursor to the next row in the ResultSet |
void |
set_className(String value)
Returns value of property _className |
void |
set_queryName(String value)
Returns value of property _queryName |
void |
set_runtimeMode(String value)
Returns value of property _runtimeMode |
void |
setBigDecimal(int index,
BigDecimal value)
Deprecated. Bind a BigDecimal argument |
void |
setBoolean(int index,
boolean value)
Deprecated. Bind a boolean argument |
void |
setDate(int index,
Date value)
Deprecated. Bind a Date argument |
void |
setDouble(int index,
double value)
Deprecated. Bind a double argument |
void |
setInt(int index,
int value)
Deprecated. Bind an integer argument |
void |
setLong(int index,
long value)
Deprecated. Bind a long argument |
void |
setString(int index,
String value)
Deprecated. Bind a String argument |
void |
setSysList(int index,
Object value)
Deprecated. Bind a SysList argument |
void |
setTime(int index,
Time value)
Deprecated. Bind a Time argument |
void |
setTimestamp(int index,
Timestamp value)
Deprecated. Bind a Timestamp argument |
Methods inherited from class com.intersys.classes.RegisteredObject |
_className, _className, _constructClone, _constructClone, _constructClone, _isA, _isModified, _normalizeObject, _packageName, _validateObject, _validateObject, constructClone, constructClone, getZRef |
Methods inherited from class com.intersys.classes.CacheRootObject |
_close, castTo, equals, getDatabase, getField, getOref, getProxy, hashCode, release, releaseInternal, toString |
Methods inherited from class com.intersys.classes.CacheGeneric |
checkAllFieldsValid, checkFieldsLimited, reset |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResultSet(Database factory, String classname, String queryname) throws CacheException
factory
- Object Factory to useclassname
- Class to run query onqueryname
- Query to runpublic ResultSet(com.intersys.cache.CacheObject ref) throws CacheException
public ResultSet(Database factory, String sql, int idColumn) throws CacheException
factory
- Object factory to usesql
- Dynamic SQL queryidColumn
- ID ColumnMethod Detail |
public int getColumnCount() throws CacheException
CacheException
public ResultSetColumn[] getColumns() throws CacheException
CacheException
public void finalize() throws CacheException
CacheException
public void clearParameters()
public void setBoolean(int index, boolean value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setInt(int index, int value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setLong(int index, long value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setDate(int index, Date value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setTime(int index, Time value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setTimestamp(int index, Timestamp value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setSysList(int index, Object value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setString(int index, String value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setDouble(int index, double value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void setBigDecimal(int index, BigDecimal value) throws CacheException
index
- Parameter index to bind tovalue
- Value to bind
CacheException
public void execute() throws CacheException
CacheException
public ResultSet asJDBCResultSet() throws CacheException
CacheException
public boolean next() throws CacheException
CacheException
public boolean getBoolean(int index) throws CacheException
index
- Column index
CacheException
public boolean getBoolean(String name) throws CacheException
CacheException
public int getInt(int index) throws CacheException
index
- Column index
CacheException
public int getInt(String name) throws CacheException
name
- Column name
CacheException
public long getLong(int index) throws CacheException
index
- Column index
CacheException
public long getLong(String name) throws CacheException
name
- Column name
CacheException
public Date getDate(int index) throws CacheException
index
- Column index
CacheException
public Date getDate(String name) throws CacheException
name
- Column name
CacheException
public Time getTime(int index) throws CacheException
index
- Column index
CacheException
public Time getTime(String name) throws CacheException
name
- Column name
CacheException
public Timestamp getTimestamp(int index) throws CacheException
index
- Column index
CacheException
public Timestamp getTimestamp(String name) throws CacheException
name
- Column name
CacheException
public Object getSysList(int index) throws CacheException
index
- Column index
CacheException
public Object getSysList(String name) throws CacheException
name
- Column name
CacheException
public String getString(int index) throws CacheException
index
- Column index
CacheException
public String getString(String name) throws CacheException
getString
in class CacheRootObject
name
- Column name
CacheException
public double getDouble(int index) throws CacheException
index
- Column index
CacheException
public double getDouble(String name) throws CacheException
name
- Column name
CacheException
public BigDecimal getBigDecimal(int index) throws CacheException
index
- Column index
CacheException
public BigDecimal getBigDecimal(String name) throws CacheException
name
- Column name
CacheException
public void closeSQL() throws CacheException
CacheException
public final void close() throws CacheException
execute()
before use the result set again.
CacheException
- if any error occured while running the method.CacheRootObject._close()
public boolean isOpen()
public static String getCacheClassName()
getCacheClass().geName()
to get the class name
for specific object.
String
SysResultSet.getCacheClass()
,
CacheClass.getName()
public CacheClass getCacheClass() throws CacheException
getCacheClass
in class RegisteredObject
CacheClass
object for this object type.
CacheException
public static void checkAllFieldsValid(Database db) throws CacheException
Please note, that if any field is not exposed that i critical error. But if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.InvalidPropertyException
public static void checkAllMethods(Database db) throws CacheException
Please note, that if any field is not exposed that i critical error. But if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.InvalidPropertyException
public static void check_classNameValid(Database db) throws CacheException
_className
in
zObjVal are the same as in Cache. It does not return anything
but it thorws an exception in case of inconsistency.
Please note, that if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.SysResultSet.checkAllFieldsValid(com.intersys.objects.Database)
public String get_className() throws CacheException
_className
_className
represented as
CacheException
- if any error occured during value retrieval.public void set_className(String value) throws CacheException
_className
_className
represented as
CacheException
- if any error occured during value retrieval.public static void check_queryNameValid(Database db) throws CacheException
_queryName
in
zObjVal are the same as in Cache. It does not return anything
but it thorws an exception in case of inconsistency.
Please note, that if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.SysResultSet.checkAllFieldsValid(com.intersys.objects.Database)
public String get_queryName() throws CacheException
_queryName
_queryName
represented as
CacheException
- if any error occured during value retrieval.public void set_queryName(String value) throws CacheException
_queryName
_queryName
represented as
CacheException
- if any error occured during value retrieval.public static void check_runtimeModeValid(Database db) throws CacheException
_runtimeMode
in
zObjVal are the same as in Cache. It does not return anything
but it thorws an exception in case of inconsistency.
Please note, that if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.SysResultSet.checkAllFieldsValid(com.intersys.objects.Database)
public String get_runtimeMode() throws CacheException
_runtimeMode
_runtimeMode
represented as
CacheException
- if any error occured during value retrieval.public void set_runtimeMode(String value) throws CacheException
_runtimeMode
_runtimeMode
represented as
CacheException
- if any error occured during value retrieval.public void _classNameSet(String _class) throws CacheException
_class
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._classNameSet(String)
public Integer _containsId() throws CacheException
CacheException
- if any error occured while running the method.SysResultSet._containsId()
public void _execute(String p1, String p2, String p3, String p4, String p5, String p6, String p7, String p8, String p9, String p10, String p11, String p12, String p13, String p14, String p15, String p16) throws CacheException
p1
- represented as Stringp2
- represented as Stringp3
- represented as Stringp4
- represented as Stringp5
- represented as Stringp6
- represented as Stringp7
- represented as Stringp8
- represented as Stringp9
- represented as Stringp10
- represented as Stringp11
- represented as Stringp12
- represented as Stringp13
- represented as Stringp14
- represented as Stringp15
- represented as Stringp16
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._execute(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
public void _execute(com.intersys.cache.Dataholder[] args) throws CacheException
CacheException
public String _get(String name) throws CacheException
name
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._get(String)
public Integer _getColumnCount() throws CacheException
CacheException
- if any error occured while running the method.SysResultSet._getColumnCount()
public String _getColumnHeader(Integer n) throws CacheException
n
- represented as Integer
CacheException
- if any error occured while running the method.SysResultSet._getColumnHeader(Integer)
public String _getColumnName(Integer n) throws CacheException
n
- represented as Integer
CacheException
- if any error occured while running the method.SysResultSet._getColumnName(Integer)
public String _getData(Integer n) throws CacheException
n
- represented as Integer
CacheException
- if any error occured while running the method.SysResultSet._getData(Integer)
public String _getDataByName(String name) throws CacheException
name
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._getDataByName(String)
public Integer _getParamCount() throws CacheException
CacheException
- if any error occured while running the method.SysResultSet._getParamCount()
public String _getParamName(Integer n) throws CacheException
n
- represented as Integer
CacheException
- if any error occured while running the method.SysResultSet._getParamName(Integer)
public Integer _next(StatusCodeHolder _sc) throws CacheException
_sc
- represented as StatusCodeHolder
CacheException
- if any error occured while running the method.SysResultSet._next(StatusCodeHolder)
public void _prepare(String p1, String p2, String p3, String p4, String p5, String p6, String p7, String p8, String p9, String p10, String p11, String p12, String p13, String p14, String p15, String p16) throws CacheException
p1
- represented as Stringp2
- represented as Stringp3
- represented as Stringp4
- represented as Stringp5
- represented as Stringp6
- represented as Stringp7
- represented as Stringp8
- represented as Stringp9
- represented as Stringp10
- represented as Stringp11
- represented as Stringp12
- represented as Stringp13
- represented as Stringp14
- represented as Stringp15
- represented as Stringp16
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._prepare(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
public Integer _queryIsValid() throws CacheException
CacheException
- if any error occured while running the method.SysResultSet._queryIsValid()
public static void _runQuery(Database db, String ClassName, String QueryName, String p1, String p2, String p3, String p4, String p5, String p6, String p7, String p8, String p9, String p10, String p11, String p12, String p13, String p14, String p15, String p16) throws CacheException
db
- represented as DatabaseClassName
- represented as StringQueryName
- represented as Stringp1
- represented as Stringp2
- represented as Stringp3
- represented as Stringp4
- represented as Stringp5
- represented as Stringp6
- represented as Stringp7
- represented as Stringp8
- represented as Stringp9
- represented as Stringp10
- represented as Stringp11
- represented as Stringp12
- represented as Stringp13
- represented as Stringp14
- represented as Stringp15
- represented as Stringp16
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._runQuery(Database,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
public static void _test(Database db, String ClassName, String QueryName, String p1, String p2, String p3, String p4, String p5, String p6, String p7, String p8, String p9, String p10, String p11, String p12, String p13, String p14, String p15, String p16) throws CacheException
db
- represented as DatabaseClassName
- represented as StringQueryName
- represented as Stringp1
- represented as Stringp2
- represented as Stringp3
- represented as Stringp4
- represented as Stringp5
- represented as Stringp6
- represented as Stringp7
- represented as Stringp8
- represented as Stringp9
- represented as Stringp10
- represented as Stringp11
- represented as Stringp12
- represented as Stringp13
- represented as Stringp14
- represented as Stringp15
- represented as Stringp16
- represented as String
CacheException
- if any error occured while running the method.SysResultSet._test(Database,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |