Class NeoPropertySetItem
java.lang.Object
com.atlassian.confluence.impl.neops.NeoPropertySetItem
- Direct Known Subclasses:
BucketPropertySetItem
Generic database entity for storing arbitrary key-value pairs associated with other arbitrary entities.
Entity Identification
entityName(String) - the name of the entity type (e.g. "confluence_ContentEntityObject")entityId(Long) - the unique identifier of the entity (e.g. content ID)
Property Key
The key is a String that identifies the property.
Property Value Types
The following types are supported with their corresponding NeoPropertySetItem.PropertyType IDs:
- Boolean values (ID: 1)
- Long numbers (ID: 3)
- Double precision numbers (ID: 4)
- Text strings (ID: 6)
- Date values (ID: 7)
This entity was designed for, and is backwards compatible with, the legacy OpenSymphony PropertySet table.
- Since:
- 10.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException thrown when an attempt is made to access a property value with an incorrect type.static enumRepresents the supported data types for property values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanbooleandoublelonggetKey()longinthashCode()voidsetBooleanVal(boolean booleanVal) voidsetDateVal(Date dateVal) voidsetDoubleVal(double doubleVal) voidsetEntityId(long entityId) voidsetEntityName(String entityName) voidvoidsetLongVal(long longVal) protected voidvoidsetTextVal(String textVal) toString()protected voidvalidateGetter(NeoPropertySetItem.PropertyType expectedType)
-
Constructor Details
-
NeoPropertySetItem
public NeoPropertySetItem() -
NeoPropertySetItem
-
-
Method Details
-
getEntityName
-
setEntityName
-
getEntityId
public long getEntityId() -
setEntityId
public void setEntityId(long entityId) -
getKey
-
setKey
-
getPropertyType
-
setPropertyType
-
clearValues
protected void clearValues() -
validateGetter
-
getTextVal
-
setTextVal
-
getBooleanVal
public boolean getBooleanVal() -
setBooleanVal
public void setBooleanVal(boolean booleanVal) -
getLongVal
public long getLongVal() -
setLongVal
public void setLongVal(long longVal) -
getDoubleVal
public double getDoubleVal() -
setDoubleVal
public void setDoubleVal(double doubleVal) -
getDateVal
-
setDateVal
-
equals
-
hashCode
public int hashCode() -
toString
-