com.intersys.objects.reflect
Interface CacheField

All Superinterfaces:
CacheDescription

public interface CacheField
extends CacheDescription

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

getII

public int getII()
Returns the slot of the property in $zobjval. This value is reqiured to access the field but hardly can be used in any application program directly.

Returns:
the slot of the property in $zobjval
See Also:
getJJ(), getKK()

getJJ

public int getJJ()
Returns the position of the property in slot ii. This value is reqiured to access the field but hardly can be used in any application program directly.

Returns:
the position of the property in slot ii.
See Also:
getII(), getKK()

getKK

public int getKK()
Returns the mod flag of the property. This value is reqiured to access the field but hardly can be used in any application program directly.

Returns:
the mod flag of the property.
See Also:
getII(), getJJ()

getModifiers

public int getModifiers()
Returns Cache modifiers for the CacheField.

Possible modifiers: CacheModifier.HAS_DEFAULT_VALUE, CacheModifier.LITERAL

Specified by:
getModifiers in interface CacheDescription
Returns:
modifiers for the CacheField represented as an int. The CacheModifier class should be used to decode the modifiers.
See Also:
CacheModifier

get

public Object get(Object o)
           throws CacheException
Returns the value of the field represented by this CacheField, on the specified object.

Parameters:
o - Object which should be an instance of generated Java class or an Integer
Returns:
value of the field in Cache represented as java.lang.Object. Returns null if the value is undefined.
Throws:
CacheException

get

public Object get(int oref)
           throws CacheException
Returns the value of the field represented by this CacheField, on the specified object.

Parameters:
oref - Object reference of the object, which field is required.
Returns:
value of the field in Cache represented as java.lang.Object. Returns null if the value is undefined.
Throws:
CacheException

set

public void set(int oref,
                Object value)
         throws CacheException
Sets the field represented by this CacheField object on the specified object argument to the specified new value.

Parameters:
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.
Throws:
CacheException

set

public void set(Object o,
                Object value)
         throws CacheException
Sets the field represented by this CacheField object on the specified object argument to the specified new value.

Parameters:
o - Object which should be an instance of generated Java class or an Integer
value - New value to be set in Cache. Type of value must match the type of Cache field.
Throws:
CacheException