Class MetisFieldVersioned<T extends MetisFieldVersionedItem>
java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisField<T>
io.github.tonywasher.joceanus.metis.field.MetisFieldVersioned<T>
- Type Parameters:
T- the data type
- All Implemented Interfaces:
MetisFieldItem.MetisFieldDef,MetisFieldItem.MetisFieldVersionedDef
- Direct Known Subclasses:
PrometheusEncryptedField
public class MetisFieldVersioned<T extends MetisFieldVersionedItem>
extends MetisField<T>
implements MetisFieldItem.MetisFieldVersionedDef
Metis Data Versioned Field.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetisFieldVersioned(MetisFieldVersionedSet<T> pAnchor, MetisDataItem.MetisDataFieldId pId, MetisDataType pDataType, Integer pMaxLength, boolean pEquality) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanObtain the anchor for the field.getFieldValue(Object pObject) Obtain the value of a field.getIndex()Obtain the index of the field.inthashCode()booleanIs the field calculated?booleanIs this an equality field?voidsetFieldUncheckedValue(Object pObject, Object pValue) Set the value of a field (without checks).voidsetFieldValue(Object pObject, Object pValue) Set the value of a field.Methods inherited from class io.github.tonywasher.joceanus.metis.field.MetisField
checkValidity, getDataType, getFieldId, getFieldValue, getMaxLength, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem.MetisFieldDef
getDataType, getFieldId, getFieldValue, getMaxLength
-
Constructor Details
-
MetisFieldVersioned
protected MetisFieldVersioned(MetisFieldVersionedSet<T> pAnchor, MetisDataItem.MetisDataFieldId pId, MetisDataType pDataType, Integer pMaxLength, boolean pEquality) Constructor.- Parameters:
pAnchor- the anchorpId- the fieldIdpDataType- the dataType of the fieldpMaxLength- the maximum length of the fieldpEquality- the field equality type
-
-
Method Details
-
getAnchor
Description copied from class:MetisFieldObtain the anchor for the field.- Overrides:
getAnchorin classMetisField<T extends MetisFieldVersionedItem>- Returns:
- the anchor
-
getIndex
Description copied from interface:MetisFieldItem.MetisFieldVersionedDefObtain the index of the field.- Specified by:
getIndexin interfaceMetisFieldItem.MetisFieldVersionedDef- Returns:
- the index of the field.
-
isEquality
public boolean isEquality()Description copied from interface:MetisFieldItem.MetisFieldVersionedDefIs this an equality field?- Specified by:
isEqualityin interfaceMetisFieldItem.MetisFieldVersionedDef- Returns:
- true/false
-
isCalculated
public boolean isCalculated()Description copied from interface:MetisFieldItem.MetisFieldDefIs the field calculated?- Specified by:
isCalculatedin interfaceMetisFieldItem.MetisFieldDef- Overrides:
isCalculatedin classMetisField<T extends MetisFieldVersionedItem>- Returns:
- true/false
-
getFieldValue
Description copied from interface:MetisFieldItem.MetisFieldDefObtain the value of a field.- Specified by:
getFieldValuein interfaceMetisFieldItem.MetisFieldDef- Overrides:
getFieldValuein classMetisField<T extends MetisFieldVersionedItem>- Parameters:
pObject- the object- Returns:
- the value
-
setFieldValue
Description copied from interface:MetisFieldItem.MetisFieldVersionedDefSet the value of a field.- Specified by:
setFieldValuein interfaceMetisFieldItem.MetisFieldVersionedDef- Parameters:
pObject- the objectpValue- the new value- Throws:
OceanusException- on error
-
setFieldUncheckedValue
Description copied from interface:MetisFieldItem.MetisFieldVersionedDefSet the value of a field (without checks).- Specified by:
setFieldUncheckedValuein interfaceMetisFieldItem.MetisFieldVersionedDef- Parameters:
pObject- the objectpValue- the new value
-
equals
- Overrides:
equalsin classMetisField<T extends MetisFieldVersionedItem>
-
hashCode
public int hashCode()- Overrides:
hashCodein classMetisField<T extends MetisFieldVersionedItem>
-