protected static class RecordBuffer.DatumAccess
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
accessor
The cached accessor for this instance.
|
private java.lang.Integer |
extent
The extent value of this property or null.
|
private java.lang.Integer |
extentIndex
Index of an element in an extent property or null
|
private boolean |
indexed
Flag indicating if there is an index using this property.
|
private PropertyMeta |
propertyMeta
The cached property meta.
|
private java.lang.String |
propertyName
Property name
|
private boolean |
trigger
Flag indicating if there is an ASSIGN trigger for this property.
|
Modifier | Constructor and Description |
---|---|
protected |
DatumAccess(java.lang.String propertyName,
java.lang.Integer extentIndex,
java.lang.reflect.Method accessor,
java.lang.Integer extent,
PropertyMeta propertyMeta,
boolean indexed,
boolean trigger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Override equality algorithm to be consistent with hash code algorithm.
|
protected java.lang.reflect.Method |
getAccessor()
Get the
accessor . |
java.lang.Integer |
getExtent()
Get the
extent . |
protected java.lang.Integer |
getExtentIndex()
Get extent index (zero-based).
|
PropertyMeta |
getPropertyMeta()
Get the
propertyMeta . |
protected java.lang.String |
getPropertyName()
Get field name.
|
int |
hashCode()
Override hash code algorithm
|
boolean |
isDirectAccess(RecordBuffer.DatumAccess other)
Check if this access can be done directly via the field's datum.
|
java.lang.String |
toString() |
private final java.lang.String propertyName
private final java.lang.Integer extentIndex
private final java.lang.reflect.Method accessor
private final java.lang.Integer extent
private final PropertyMeta propertyMeta
private final boolean indexed
private final boolean trigger
protected DatumAccess(java.lang.String propertyName, java.lang.Integer extentIndex, java.lang.reflect.Method accessor, java.lang.Integer extent, PropertyMeta propertyMeta, boolean indexed, boolean trigger)
propertyName
- Property name.extentIndex
- Index of an element in an extent property or null
. If present, the index should
be zero-based.accessor
- The cached accessor for this instance.extent
- The extent value of this property or null
.propertyMeta
- The cached property meta.indexed
- Flag indicating if there is an index using this property.trigger
- Flag indicating if there is an ASSIGN trigger for this property.public boolean isDirectAccess(RecordBuffer.DatumAccess other)
other
- In case a getter and a setter are used in pair, the 'other' and this property must be of
the same type.true
if the access can be done directly.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to be compared.true
if this instance is equivalent with the given instance.public PropertyMeta getPropertyMeta()
propertyMeta
.public java.lang.Integer getExtent()
extent
.protected java.lang.reflect.Method getAccessor()
accessor
.protected java.lang.String getPropertyName()
protected java.lang.Integer getExtentIndex()
null
if all elements are needed or not an extent
field.public java.lang.String toString()
toString
in class java.lang.Object