Class JcrIndexedProperty


  • public class JcrIndexedProperty
    extends Object
    This class represents a property of a JCR node that is indexed. Being indexed means that a column for it is created in the JCR index properties table and querying on certain property name/values combinations is possible by an SQL query. This means that querying on indexed properties is much faster then querying on properties that are not indexed.
    Since:
    10.31.0
    • Constructor Detail

      • JcrIndexedProperty

        public JcrIndexedProperty​(String name,
                                  String nodeType,
                                  int propertyType)
        Constructs a new indexed property.
        Parameters:
        name - Name of the property
        nodeType - Node type of the property
        propertyType - The property type of the indexed property. @see PropertyType for an overview of all options.
    • Method Detail

      • getName

        public String getName()
        Return the name of the property
        Returns:
        the name of the property
      • setName

        public void setName​(String name)
        Sets the name of the property
        Parameters:
        name - the name of the property to set
      • getNodeType

        public String getNodeType()
        Return the node type of the node that contains this property
        Returns:
        the node type of the node containing this property
      • setNodeType

        public void setNodeType​(String nodeType)
        Sets the node type of the node that contains this property
        Parameters:
        nodeType - the node type of the node that contains this property
      • setPropertyType

        public void setPropertyType​(int propertyType)
        Sets the property type of this property. @see PropertyType for an overview of all options.
        Parameters:
        propertyType - the property type of this indexed property
      • getPropertyType

        public int getPropertyType()
        Returns the property type of this property. @see PropertyType for an overview of all options.
        Returns:
        the property type of this indexed property