Class JKDefaultIndexable

java.lang.Object
com.jk.core.jpa.JKDefaultIndexable
All Implemented Interfaces:
JKIndexable, Comparable<JKIndexable>

public class JKDefaultIndexable extends Object implements JKIndexable
This class provides basic properties for a default indexable entity.

This class implements the JKIndexable interface.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKDefaultIndexable

      public JKDefaultIndexable()
      This method constructs a new JKDefaultIndexable.
    • JKDefaultIndexable

      public JKDefaultIndexable(String name)
      This method constructs a new JKDefaultIndexable with the provided name.
      Parameters:
      name - Specifies the indexable entity name.
  • Method Details

    • getUid

      public String getUid()
      This method gets the unique identifier (ID) of this indexable entity.
      Specified by:
      getUid in interface JKIndexable
      Returns:
      the unique identifier (ID) of this indexable entity.
    • setUid

      public void setUid(String value)
      This method sets the unique identifier (ID) of this indexable entity to the provided value.
      Specified by:
      setUid in interface JKIndexable
      Parameters:
      value - Specifies the new unique identifier (ID) of this indexable entity.
    • setName

      public void setName(String name)
      This method sets the name of this indexable entity to the provided value.
      Specified by:
      setName in interface JKIndexable
      Parameters:
      name - Specifies the new name of this indexable entity.
    • getName

      public String getName()
      This method gets the name of this indexable entity.
      Specified by:
      getName in interface JKIndexable
      Returns:
      the name of this indexable entity.
    • setIndex

      public void setIndex(int index)
      This method sets the index of this indexable entity to the provided value.
      Specified by:
      setIndex in interface JKIndexable
      Parameters:
      index - Specifies the new index of this indexable entity.the
    • getIndex

      public int getIndex()
      This method gets the index of this indexable entity.
      Specified by:
      getIndex in interface JKIndexable
      Returns:
      the index of this indexable entity.
    • getParent

      public JKListHolder<? extends JKIndexable> getParent()
      This method gets the container JKListHolder that holds a list of objects implementing or extending JKIndexable.
      Specified by:
      getParent in interface JKIndexable
      Returns:
      the parent container.
    • setParent

      public void setParent(JKListHolder<? extends JKIndexable> parent)
      This method sets the container JKListHolder that holds a list of objects implementing or extending JKIndexable.
      Specified by:
      setParent in interface JKIndexable
      Parameters:
      parent - Specifies the new parent container.