Class NeoPropertySetItem

java.lang.Object
com.atlassian.confluence.impl.neops.NeoPropertySetItem
Direct Known Subclasses:
BucketPropertySetItem

public class NeoPropertySetItem extends Object

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
  • Constructor Details

    • NeoPropertySetItem

      public NeoPropertySetItem()
    • NeoPropertySetItem

      public NeoPropertySetItem(String entityName, long entityId, String key)
  • Method Details

    • getEntityName

      public String getEntityName()
    • setEntityName

      public void setEntityName(String entityName)
    • getEntityId

      public long getEntityId()
    • setEntityId

      public void setEntityId(long entityId)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getPropertyType

      public NeoPropertySetItem.PropertyType getPropertyType()
    • setPropertyType

      protected void setPropertyType(NeoPropertySetItem.PropertyType type)
    • clearValues

      protected void clearValues()
    • validateGetter

      protected void validateGetter(NeoPropertySetItem.PropertyType expectedType)
    • getTextVal

      public String getTextVal()
    • setTextVal

      public void setTextVal(String textVal)
    • 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

      public Date getDateVal()
    • setDateVal

      public void setDateVal(Date dateVal)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object