Interface JOP.persist.SlotDefinition
All Packages Class Hierarchy This Package Previous Next Index Home
Interface JOP.persist.SlotDefinition
- public interface SlotDefinition
- extends Object
This is an INTERNAL class.
For each slot of the object, the SlotDefinition
allows the slots type and name to be determined
and allows the current value of the slot to
be stored or retrieved.
-
getName()
- Get the name of this slot
-
getRefOid()
- Return the assigned RefOid for this object
-
getRefOid(int)
- Return the assigned RefOid for each slot in an array
-
getSignature()
- Get the Slot's signature (Java signature as per
signature.h)
-
getSignatureType()
- Get the Slot's signature as an integer type code
(as per JOP.persist.JavaTypes).
-
getValue()
- Return an object that stores the slots value.
-
getValue(int)
- Fetch the 'nth' element.
-
isArray()
- Test if the slot is an array
-
isNullArray()
- Return 'true' if the array is null
-
setNullArray()
- Set the array to be a null array
-
setRefOid(int, ObjectIdentifier)
- For object references then an object id will be
assigned to the referenced object.
-
setRefOid(ObjectIdentifier)
- For object references then an object id will be
assigned to the referenced object.
-
setValue(int, Object)
- Set the 'nth' element of an array.
-
setValue(Object)
- Allows the slot's value to be set.
-
sizeArray()
- Return the length of the array.
getSignature
public abstract String getSignature()
- Get the Slot's signature (Java signature as per
signature.h)
getSignatureType
public abstract int getSignatureType()
- Get the Slot's signature as an integer type code
(as per JOP.persist.JavaTypes).
getName
public abstract String getName()
- Get the name of this slot
getValue
public abstract Object getValue() throws Exception
- Return an object that stores the slots value. Note
that where the original type of the slot was an
object reference the Object returned will be
of type ObjectIdentifier - and not the object.
setValue
public abstract void setValue(Object obj) throws Exception
- Allows the slot's value to be set. If the slot
is originally a reference to a mutable object
then the Object must be of type ObjectIdentifier.
Can only called if the slot is not an array
setRefOid
public abstract void setRefOid(ObjectIdentifier oid)
- For object references then an object id will be
assigned to the referenced object. The object id
will be null for all immutable objects and for
scalars.
Can only be called if the slot is not an array
isArray
public abstract boolean isArray()
- Test if the slot is an array
sizeArray
public abstract int sizeArray()
- Return the length of the array.
Can only called if the slot is an array.
isNullArray
public abstract boolean isNullArray()
- Return 'true' if the array is null
setNullArray
public abstract void setNullArray()
- Set the array to be a null array
getValue
public abstract Object getValue(int n)
- Fetch the 'nth' element. Can only be called
if the slot is an array
setValue
public abstract void setValue(int n,
Object obj)
- Set the 'nth' element of an array.
setRefOid
public abstract void setRefOid(int n,
ObjectIdentifier oid)
- For object references then an object id will be
assigned to the referenced object. The object id
will be null for all immutable objects and for
scalars.
Can only be called if the slot is not an array
getRefOid
public abstract ObjectIdentifier getRefOid()
- Return the assigned RefOid for this object
getRefOid
public abstract ObjectIdentifier getRefOid(int n)
- Return the assigned RefOid for each slot in an array
All Packages Class Hierarchy This Package Previous Next Index Home