Class PrometheusDataInfoItem
java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataInfoItem
- All Implemented Interfaces:
MetisDataItem.MetisDataDeletableItem,MetisDataItem.MetisDataIndexedItem,MetisDataItem.MetisDataObjectFormat,MetisFieldItem,MetisFieldItem.MetisFieldTableItem,MetisFieldItem.MetisFieldUpdatableItem,PrometheusTableItem,Comparable<Object>
- Direct Known Subclasses:
PrometheusDataInfoLinkSet
Representation of an information extension of a DataItem.
- Author:
- Tony Washer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classList class for DataInfo.Nested classes/interfaces inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
PrometheusEncryptedDataItem.PrometheusEncryptedList<T extends PrometheusEncryptedDataItem>Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDefNested classes/interfaces inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusTableItem
PrometheusTableItem.PrometheusTableList<T extends PrometheusTableItem> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum DataLength.protected static final StringInvalid Data Error.protected static final StringInvalid Data Type Error.protected static final StringInvalid Info Class Error.Fields inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
DESCLEN, ERROR_CREATEITEM, ERROR_DISABLED, ERROR_DUPLICATE, ERROR_EXIST, ERROR_INVALIDCHAR, ERROR_LENGTH, ERROR_MISSING, ERROR_MULT, ERROR_NEGATIVE, ERROR_POSITIVE, ERROR_RANGE, ERROR_RESOLUTION, ERROR_UNKNOWN, ERROR_VALIDATION, ERROR_ZERO, NAMELEN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEdit Constructor.protectedPrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, PrometheusDataInfoItem pInfo) Copy Constructor.protectedPrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, PrometheusDataValues pValues) Basic constructor.protectedPrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, Integer uId, PrometheusStaticDataItem pInfoType, PrometheusDataItem pOwner) Basic constructor.protectedPrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, Integer uId, Integer uKeySetId, Integer uInfoTypeId, Integer uOwnerId) Secure constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcompareValues(PrometheusDataItem pThat) compareTo another dataItem.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.getField()Obtain Value as underlying object.static PrometheusEncryptedPairgetField(PrometheusEncryptedValues pValueSet) Obtain Value as encrypted field.abstract PrometheusDataInfoClassObtain InfoClass.abstract PrometheusStaticDataItemObtain InfoType.Obtain InfoTypeId.protected PrometheusDataItemgetLink()Obtain Link.<X extends PrometheusDataItem>
XObtain Link.Get Link name.abstract PrometheusDataItemgetOwner()Obtain Owner.Obtain OwnerId.static <X> XgetValue(PrometheusEncryptedValues pValueSet, Class<X> pClass) Obtain Value as object.<X> XObtain Value as object.byte[]Obtain Encrypted Bytes.voidMark deleted.voidrewind any infoSet links.voidrewindToVersion(int pVersion) Rewind item to the required version.protected voidSet Value.protected <X> voidsetValueBytes(byte[] pBytes, Class<X> pClass) Set Object Value.protected final voidSet InfoType.protected final voidsetValueInfoType(Integer pId) Set InfoType Id.protected final voidsetValueInfoType(String pName) Set InfoType Name.protected voidsetValueLink(PrometheusDataItem pLink) Set link.protected voidsetValueLink(String pName) Set link name.protected final voidsetValueOwner(PrometheusDataItem pValue) Set Owner.protected final voidsetValueOwner(Integer pId) Set Owner id.protected final voidsetValueOwner(String pName) Set Owner name.protected voidsetValueValue(PrometheusEncryptedPair pValue) Set value.protected voidsetValueValue(Object pValue) Set Value.toString()voidTouch underlying items that are referenced by this item.Methods inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
adoptSecurity, getDataKeySet, getDataKeySetId, getDifference, getEncryptor, getList, getOriginalValues, getValues, initialiseSecurity, newVersionValues, resolveDataSetLinks, setDataKeySet, setDataKeySet, setEncryptedValue, setEncryptedValue, setEncryptedValue, setNextDataKeySet, updateSecurityMethods inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
addError, adjustMapForItem, applyChanges, byteLength, clearActive, clearTouches, compareId, compareTo, deRegister, equals, fieldChanged, getBase, getBaseState, getDataSet, getFieldState, getItemState, getItemType, getNextVersion, getStyle, getTouchStatus, getValueSetVersion, hashCode, includeXmlField, indexOf, isActive, isDisabled, isEditable, isHeader, isListLocked, isLocked, popHistory, removeItem, resolveDataLink, setBase, setHeader, setHistory, setNewVersion, setValidEdit, touchItem, touchOnUpdate, unLink, updateMaps, validate, validStringMethods inherited from class io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
adjustState, checkForHistory, clearErrors, clearHistory, condenseHistory, fieldChanged, getDataFieldSet, getEditState, getFieldErrors, getFieldErrors, getFirstError, getIndexedId, getOriginalVersion, getState, getValidation, getValuesHistory, getVersion, getVersionedField, hasChanges, hasErrors, hasErrors, hasHistory, isDeleted, isValid, maybePopHistory, pushHistory, pushHistory, resetHistory, setDeleted, setEditState, setHistory, setIndexedId, setItemType, setValuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataDeletableItem
isDeleted, setDeletedMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataIndexedItem
getIndexedIdMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
getDataFieldSetMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem.MetisFieldUpdatableItem
checkForHistory, getFieldErrors, getFieldErrors, getValuesHistory, hasErrors, pushHistory, skipField
-
Field Details
-
DATALEN
public static final int DATALENMaximum DataLength.- See Also:
-
ERROR_BADDATATYPE
Invalid Data Type Error. -
ERROR_BADDATA
Invalid Data Error. -
ERROR_BADINFOCLASS
Invalid Info Class Error.
-
-
Constructor Details
-
PrometheusDataInfoItem
protected PrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, PrometheusDataInfoItem pInfo) Copy Constructor.- Parameters:
pList- the listpInfo- The Info to copy
-
PrometheusDataInfoItem
Edit Constructor.- Parameters:
pList- the list
-
PrometheusDataInfoItem
protected PrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, Integer uId, Integer uKeySetId, Integer uInfoTypeId, Integer uOwnerId) throws OceanusException Secure constructor.- Parameters:
pList- the listuId- the iduKeySetId- the keySet iduInfoTypeId- the info iduOwnerId- the owner id- Throws:
OceanusException- on error
-
PrometheusDataInfoItem
protected PrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, Integer uId, PrometheusStaticDataItem pInfoType, PrometheusDataItem pOwner) Basic constructor.- Parameters:
pList- the listuId- the idpInfoType- the info typepOwner- the owner
-
PrometheusDataInfoItem
protected PrometheusDataInfoItem(PrometheusDataInfoItem.PrometheusDataInfoList<?> pList, PrometheusDataValues pValues) throws OceanusException Basic constructor.- Parameters:
pList- the listpValues- the values- Throws:
OceanusException- on error
-
-
Method Details
-
toString
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Overrides:
formatObjectin classPrometheusDataItem- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-
getInfoType
Obtain InfoType.- Returns:
- the InfoTypeId
-
getInfoClass
Obtain InfoClass.- Returns:
- the InfoClass
-
getInfoTypeId
Obtain InfoTypeId.- Returns:
- the InfoTypeId
-
getOwner
Obtain Owner.- Returns:
- the Owner
-
getOwnerId
Obtain OwnerId.- Returns:
- the OwnerId
-
getLink
Obtain Link.- Type Parameters:
X- the link type- Parameters:
pClass- the class of the link- Returns:
- the Link
-
getLinkName
Get Link name.- Returns:
- the link name
-
getLink
Obtain Link.- Returns:
- the Link
-
getValue
Obtain Value as object.- Type Parameters:
X- the object type- Parameters:
pClass- the object class- Returns:
- the Value
-
getField
Obtain Value as underlying object.- Returns:
- the Value
-
getValueBytes
public byte[] getValueBytes()Obtain Encrypted Bytes.- Returns:
- the Bytes
-
getValue
Obtain Value as object.- Type Parameters:
X- the object type- Parameters:
pValueSet- the valueSetpClass- the object class- Returns:
- the Value
-
getField
Obtain Value as encrypted field.- Parameters:
pValueSet- the valueSet- Returns:
- the Value
-
setValueInfoType
Set InfoType.- Parameters:
pValue- the info Type
-
setValueInfoType
Set InfoType Id.- Parameters:
pId- the info Type id
-
setValueInfoType
Set InfoType Name.- Parameters:
pName- the info Type name
-
setValueOwner
Set Owner.- Parameters:
pValue- the owner
-
setValueOwner
Set Owner id.- Parameters:
pId- the owner id
-
setValueOwner
Set Owner name.- Parameters:
pName- the owner name
-
setValueValue
Set Value.- Parameters:
pValue- the value- Throws:
OceanusException- on error
-
setValueValue
Set value.- Parameters:
pValue- the value
-
setValueBytes
Set Object Value.- Type Parameters:
X- the object type- Parameters:
pBytes- the valuepClass- the object class- Throws:
OceanusException- on error
-
setValueLink
Set link.- Parameters:
pLink- the link
-
setValueLink
Set link name.- Parameters:
pName- the linkName
-
markDeleted
public void markDeleted()Mark deleted. -
touchUnderlyingItems
public void touchUnderlyingItems()Description copied from class:PrometheusDataItemTouch underlying items that are referenced by this item.- Overrides:
touchUnderlyingItemsin classPrometheusDataItem
-
setValue
Set Value.- Parameters:
pValue- the Value- Throws:
OceanusException- on error
-
rewindToVersion
public void rewindToVersion(int pVersion) Description copied from class:MetisFieldVersionedItemRewind item to the required version.- Overrides:
rewindToVersionin classPrometheusDataItem- Parameters:
pVersion- the version to rewind to
-
rewindInfoLinkSet
public void rewindInfoLinkSet()rewind any infoSet links. -
compareValues
Description copied from class:PrometheusDataItemcompareTo another dataItem.- Specified by:
compareValuesin classPrometheusDataItem- Parameters:
pThat- the DataItem to compare- Returns:
- the order
-