Package com.jk.core.jpa
Class JKDefaultIndexable
java.lang.Object
com.jk.core.jpa.JKDefaultIndexable
- All Implemented Interfaces:
JKIndexable
,Comparable<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 Summary
ConstructorsConstructorDescriptionThis method constructs a newJKDefaultIndexable
.JKDefaultIndexable
(String name) This method constructs a newJKDefaultIndexable
with the provided name. -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
This method gets the index of this indexable entity.getName()
This method gets the name of this indexable entity.JKListHolder<? extends JKIndexable>
This method gets the containerJKListHolder
that holds a list of objects implementing or extendingJKIndexable
.getUid()
This method gets the unique identifier (ID) of this indexable entity.void
setIndex
(int index) This method sets the index of this indexable entity to the provided value.void
This method sets the name of this indexable entity to the provided value.void
setParent
(JKListHolder<? extends JKIndexable> parent) This method sets the containerJKListHolder
that holds a list of objects implementing or extendingJKIndexable
.void
This method sets the unique identifier (ID) of this indexable entity to the provided value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jk.core.jpa.JKIndexable
compareTo
-
Constructor Details
-
JKDefaultIndexable
public JKDefaultIndexable()This method constructs a newJKDefaultIndexable
. -
JKDefaultIndexable
This method constructs a newJKDefaultIndexable
with the provided name.- Parameters:
name
- Specifies the indexable entity name.
-
-
Method Details
-
getUid
This method gets the unique identifier (ID) of this indexable entity.- Specified by:
getUid
in interfaceJKIndexable
- Returns:
- the unique identifier (ID) of this indexable entity.
-
setUid
This method sets the unique identifier (ID) of this indexable entity to the provided value.- Specified by:
setUid
in interfaceJKIndexable
- Parameters:
value
- Specifies the new unique identifier (ID) of this indexable entity.
-
setName
This method sets the name of this indexable entity to the provided value.- Specified by:
setName
in interfaceJKIndexable
- Parameters:
name
- Specifies the new name of this indexable entity.
-
getName
This method gets the name of this indexable entity.- Specified by:
getName
in interfaceJKIndexable
- 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 interfaceJKIndexable
- 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 interfaceJKIndexable
- Returns:
- the index of this indexable entity.
-
getParent
This method gets the containerJKListHolder
that holds a list of objects implementing or extendingJKIndexable
.- Specified by:
getParent
in interfaceJKIndexable
- Returns:
- the parent container.
-
setParent
This method sets the containerJKListHolder
that holds a list of objects implementing or extendingJKIndexable
.- Specified by:
setParent
in interfaceJKIndexable
- Parameters:
parent
- Specifies the new parent container.
-