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 type
s 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 class
Exception thrown when an attempt is made to access a property value with an incorrect type.static enum
Represents the supported data types for property values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
boolean
double
long
getKey()
long
int
hashCode()
void
setBooleanVal
(boolean booleanVal) void
setDateVal
(Date dateVal) void
setDoubleVal
(double doubleVal) void
setEntityId
(long entityId) void
setEntityName
(String entityName) void
void
setLongVal
(long longVal) protected void
void
setTextVal
(String textVal) toString()
protected void
validateGetter
(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
-