|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CacheField
provides information about, and dynamic
access to, a single field of an Object in Cache Database.
Created: May 8 2001, 18:09:43
Method Summary | |
Object |
get(int oref)
Returns the value of the field represented by this CacheField, on the specified object. |
Object |
get(Object o)
Returns the value of the field represented by this CacheField, on the specified object. |
int |
getII()
Returns the slot of the property in $zobjval . |
int |
getJJ()
Returns the position of the property in slot ii . |
int |
getKK()
Returns the mod flag of the property. |
int |
getModifiers()
Returns Cache modifiers for the CacheField . |
void |
set(int oref,
Object value)
Sets the field represented by this CacheField object on the specified object argument to the specified new value. |
void |
set(Object o,
Object value)
Sets the field represented by this CacheField object on the specified object argument to the specified new value. |
Methods inherited from interface com.intersys.objects.reflect.CacheDescription |
getDefaultValue, getDefaultValueString, getElementTypeName, getJavaTypeName, getName, getType, getTypeName |
Method Detail |
public int getII()
$zobjval
. This
value is reqiured to access the field but hardly can be used in
any application program directly.
$zobjval
getJJ()
,
getKK()
public int getJJ()
ii
. This value is reqiured to access the field but
hardly can be used in any application program directly.
ii
.getII()
,
getKK()
public int getKK()
getII()
,
getJJ()
public int getModifiers()
CacheField
.
Possible modifiers:
CacheModifier.HAS_DEFAULT_VALUE
,
CacheModifier.LITERAL
getModifiers
in interface CacheDescription
CacheField
represented
as an int
. The CacheModifier
class
should be used to decode the modifiers.CacheModifier
public Object get(Object o) throws CacheException
o
- Object which should be an instance of generated Java
class or an Integer
java.lang.Object
. Returns null
if the
value is undefined.
CacheException
public Object get(int oref) throws CacheException
oref
- Object reference of the object, which field is
required.
java.lang.Object
. Returns null
if the
value is undefined.
CacheException
public void set(int oref, Object value) throws CacheException
oref
- Object reference of the object, which field is
required.value
- New value to be set in Cache. Type of
value
must match the type of Cache field.
CacheException
public void set(Object o, Object value) throws CacheException
o
- Object which should be an instance of generated Java
class or an Integervalue
- New value to be set in Cache. Type of
value
must match the type of Cache field.
CacheException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |