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 newJKDefaultIndexablewith the provided name. - 
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()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 containerJKListHolderthat holds a list of objects implementing or extendingJKIndexable.getUid()This method gets the unique identifier (ID) of this indexable entity.voidsetIndex(int index) This method sets the index of this indexable entity to the provided value.voidThis method sets the name of this indexable entity to the provided value.voidsetParent(JKListHolder<? extends JKIndexable> parent) This method sets the containerJKListHolderthat holds a list of objects implementing or extendingJKIndexable.voidThis 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, waitMethods inherited from interface com.jk.core.jpa.JKIndexable
compareTo 
- 
Constructor Details
- 
JKDefaultIndexable
public JKDefaultIndexable()This method constructs a newJKDefaultIndexable. - 
JKDefaultIndexable
This method constructs a newJKDefaultIndexablewith 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:
 getUidin 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:
 setUidin 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:
 setNamein interfaceJKIndexable- Parameters:
 name- Specifies the new name of this indexable entity.
 - 
getName
This method gets the name of this indexable entity.- Specified by:
 getNamein 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:
 setIndexin 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:
 getIndexin interfaceJKIndexable- Returns:
 - the index of this indexable entity.
 
 - 
getParent
This method gets the containerJKListHolderthat holds a list of objects implementing or extendingJKIndexable.- Specified by:
 getParentin interfaceJKIndexable- Returns:
 - the parent container.
 
 - 
setParent
This method sets the containerJKListHolderthat holds a list of objects implementing or extendingJKIndexable.- Specified by:
 setParentin interfaceJKIndexable- Parameters:
 parent- Specifies the new parent container.
 
 -