Class BaseTabularSourceField

    • Field Detail

      • primaryKey

        protected boolean primaryKey
        Indicates if this field is a primary key.
        Since:
        4.0.4
      • primaryName

        protected boolean primaryName
        Indicates if this field is a primary name.
        Since:
        4.0.6
      • position

        protected boolean position
        Indicates if this field is a position field.
        Since:
        10.3.0
      • columnName

        protected String columnName
        The name of the column in the tabular structure that this field belongs to.
        Since:
        4.0.4
      • sortable

        protected boolean sortable
        Indicates if this field may be used for sorting a query.
        Since:
        9.0.0
    • Constructor Detail

      • BaseTabularSourceField

        public BaseTabularSourceField()
    • Method Detail

      • init

        public void init​(Source<?> source,
                         Node fieldNode)
                  throws PortalException
        Description copied from interface: ISourceField
        Initializes this source field. This method is called by the source after the field is created and before it is used. The implementation of this method must initialize all of this instance's attributes.
        Specified by:
        init in interface ISourceField
        Overrides:
        init in class BaseSourceField
        Parameters:
        source - the source this field will belong to.
        fieldNode - the xml node that contains this field's definition.
        Throws:
        PortalException - if this field could not be initialized.
      • isPrimaryKey

        public boolean isPrimaryKey()
        Description copied from interface: ITabularSourceField
        Returns a boolean indicating if this field is a primary key.
        Specified by:
        isPrimaryKey in interface ITabularSourceField
        Returns:
        true if this field is a primary key, false otherwise.
      • isPosition

        public boolean isPosition()
        Description copied from interface: ITabularSourceField
        Returns a boolean indicating if this field is a position field.
        Specified by:
        isPosition in interface ITabularSourceField
        Returns:
        true if this field is a position field, false otherwise.
      • isSortable

        public boolean isSortable()
        Description copied from interface: ITabularSourceField
        Returns whether this field may be used to sort a query.
        Specified by:
        isSortable in interface ITabularSourceField
        Returns:
        true if this field may be used for sorting, false otherwise.
      • getColumnName

        protected String getColumnName()
        Returns the column name attribute set for this field.
        Returns:
        the column name attribute set for this field.
        Since:
        4.0.4
      • isUpdatable

        protected boolean isUpdatable()
        Indicates if the value this field represents is updatable.
        Returns:
        true if this field's value is updatable, false otherwise.
        Since:
        4.0.4
      • isInsertable

        protected boolean isInsertable()
        Indicates if the value this field represents may be inserted.
        Returns:
        true if this field's value may be inserted, false otherwise.
        Since:
        4.0.4