|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.jdo.StartLetter
public class StartLetter
A simple object that is used to implement efficient alphabetical indexing of persistent objects. Querying instances of this object can return the starting characters for the associated object very efficiently instead of running through the extent for the object instances.
© Copyright 2007, Sans Pareil Technologies, Inc.
| Constructor Summary | |
|---|---|
protected |
StartLetter()
Default constructor. |
|
StartLetter(char letter,
Class source)
Create a new instance of the object with the specified values. |
|
StartLetter(char letter,
String source)
Create a new instance of the object with the specified values. |
| Method Summary | |
|---|---|
int |
compareTo(StartLetter object)
Compares this object with the specified object for order. |
boolean |
equals(Object object)
Compare the specified object with this instance for equality. |
char |
getLetter()
Returns letter. |
String |
getObjectId()
Return the ObjectId of this persistent instance. |
String |
getSource()
Returns source. |
int |
hashCode()
Calculate the hash code for this instance. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected StartLetter()
public StartLetter(char letter,
String source)
oid primary
key field to be initialised.
letter - The starting letter to associate.source - The object with which the starting letter is associated.
public StartLetter(char letter,
Class source)
source is assigned the fully qualified class name of the
specified source parameter.
letter - The starting letter to associate.source - The object with which the starting letter is associated.| Method Detail |
|---|
public String getObjectId()
ObjectId of this persistent instance.
ObjectId of this instance. Returns
null if this instance is transient.public boolean equals(Object object)
ObjectId,
or if they have the same values for the fields.
equals in class Objectobject - The object that is to be compared for equality.
true if the specified object is
of the same type as this object and has the same ObjectId.public int hashCode()
ObjectId or the fields.
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(StartLetter object)
Compare the values of letter
compareTo in interface Comparable<StartLetter>object - The object that is to be compared with this object.
public char getLetter()
letter.
public String getSource()
source.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||