com.intersys.classes
Class SQLProcContext

java.lang.Object
  extended bycom.intersys.classes.CacheGeneric
      extended bycom.intersys.classes.CacheRootObject
          extended bycom.intersys.classes.RegisteredObject
              extended bycom.intersys.classes.SQLProcContext
All Implemented Interfaces:
ObjectHandle, Serializable

public class SQLProcContext
extends RegisteredObject
implements Serializable

See Also:
Serialized Form

Constructor Summary
SQLProcContext(com.intersys.cache.CacheObject ref)
          NB: DO NOT USE IN APPLICATION!
SQLProcContext(Database db)
          Creates a new instance of object "" in Cache database and corresponding object of class SQLProcContext.
 
Method Summary
static void check_messageValid(Database db)
          Verifies that indexes for property _message in zObjVal are the same as in Cache.
static void check_rowCountValid(Database db)
          Verifies that indexes for property _rowCount in zObjVal are the same as in Cache.
static void check_sQLCodeValid(Database db)
          Verifies that indexes for property _sQLCode 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.
 String get_message()
          Returns value of property _message
 Integer get_rowCount()
          Returns value of property _rowCount
 Integer get_sQLCode()
          Returns value of property _sQLCode
 CacheClass getCacheClass()
          Allows access metadata information about type of this object in Cache database.
static String getCacheClassName()
          Returns class name of the class SQLProcContext as it is in Cache Database.
 void set_message(String value)
          Sets new value for _message.
 void set_rowCount(Integer value)
          Sets new value for _rowCount.
 void set_sQLCode(Integer value)
          Sets new value for _sQLCode.
 
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, getString, 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

SQLProcContext

public SQLProcContext(com.intersys.cache.CacheObject ref)
               throws CacheException
NB: DO NOT USE IN APPLICATION!


SQLProcContext

public SQLProcContext(Database db)
               throws CacheException
Creates a new instance of object "" in Cache database and corresponding object of class SQLProcContext.

Parameters:
db - Database object used for connection with Cache database.
Throws:
CacheException - in case of error.
Method Detail

getCacheClassName

public static String getCacheClassName()
Returns class name of the class SQLProcContext as it is in Cache Database. Note, that this is a static method, so no object specific information can be returned. Use getCacheClass().geName() to get the class name for specific object.

Returns:
Cache class name as a String
See Also:
getCacheClass(), CacheClass.getName()

getCacheClass

public CacheClass getCacheClass()
                         throws CacheException
Allows access metadata information about type of this object in Cache database. Also can be used for dynamic binding (accessing properties and calling methods without particular class known).

Overrides:
getCacheClass in class RegisteredObject
Returns:
CacheClass object for this object type.
Throws:
CacheException

checkAllFieldsValid

public static void checkAllFieldsValid(Database db)
                                throws CacheException
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. It does not return anything but it thorws an exception in case of inconsistency.

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.

Parameters:
db - Databse used for connection. Note that if you are using multiple databases the class can be consistent with one and inconsistent with another.
Throws:
InvalidClassException - if any inconsistency is found.
CacheException - if any error occured during verification, e.g. communication error with Databse.
See Also:
InvalidPropertyException

checkAllMethods

public static void checkAllMethods(Database db)
                            throws CacheException
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. It does not return anything but it thorws an exception in case of inconsistency.

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.

Parameters:
db - Databse used for connection. Note that if you are using multiple databases the class can be consistent with one and inconsistent with another.
Throws:
InvalidClassException - if any inconsistency is found.
CacheException - if any error occured during verification, e.g. communication error with Databse.
See Also:
InvalidPropertyException

check_messageValid

public static void check_messageValid(Database db)
                               throws CacheException
Verifies that indexes for property _message 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.

Parameters:
db - Database used for connection. Note that if you are using multiple databases the class can be consistent with one and inconsistent with another.
Throws:
InvalidClassException - if any inconsistency is found.
CacheException - if any error occured during verification, e.g. communication error with Database.
See Also:
checkAllFieldsValid(com.intersys.objects.Database)

get_message

public String get_message()
                   throws CacheException
Returns value of property _message

Returns:
current value of _message represented as java.lang.String
Throws:
CacheException - if any error occured during value retrieval.
See Also:
_message

set_message

public void set_message(String value)
                 throws CacheException
Sets new value for _message.

Parameters:
value - new value to be set represented as java.lang.String.
Throws:
CacheException - if any error occured during value setting.
See Also:
_message

check_rowCountValid

public static void check_rowCountValid(Database db)
                                throws CacheException
Verifies that indexes for property _rowCount 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.

Parameters:
db - Database used for connection. Note that if you are using multiple databases the class can be consistent with one and inconsistent with another.
Throws:
InvalidClassException - if any inconsistency is found.
CacheException - if any error occured during verification, e.g. communication error with Database.
See Also:
checkAllFieldsValid(com.intersys.objects.Database)

get_rowCount

public Integer get_rowCount()
                     throws CacheException
Returns value of property _rowCount

Returns:
current value of _rowCount represented as java.lang.Integer
Throws:
CacheException - if any error occured during value retrieval.
See Also:
_rowCount

set_rowCount

public void set_rowCount(Integer value)
                  throws CacheException
Sets new value for _rowCount.

Parameters:
value - new value to be set represented as java.lang.Integer.
Throws:
CacheException - if any error occured during value setting.
See Also:
_rowCount

check_sQLCodeValid

public static void check_sQLCodeValid(Database db)
                               throws CacheException
Verifies that indexes for property _sQLCode 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.

Parameters:
db - Database used for connection. Note that if you are using multiple databases the class can be consistent with one and inconsistent with another.
Throws:
InvalidClassException - if any inconsistency is found.
CacheException - if any error occured during verification, e.g. communication error with Database.
See Also:
checkAllFieldsValid(com.intersys.objects.Database)

get_sQLCode

public Integer get_sQLCode()
                    throws CacheException
Returns value of property _sQLCode

Returns:
current value of _sQLCode represented as java.lang.Integer
Throws:
CacheException - if any error occured during value retrieval.
See Also:
_sQLCode

set_sQLCode

public void set_sQLCode(Integer value)
                 throws CacheException
Sets new value for _sQLCode.

Parameters:
value - new value to be set represented as java.lang.Integer.
Throws:
CacheException - if any error occured during value setting.
See Also:
_sQLCode