I
- public final class IndexedReference<I extends Indexed>
extends java.lang.Object
IndexedSQLValue
will generate a IndexedReference with id of zero for
a null reference
We can't implement a sensible sort order (other than numeric) without an AppContext
reference.
It is therefore better not to implement Comparable as higher level code (such as table) can but will default to
a Comparable implementation if it is implemented.
If numeric sorting is required use a ReferenceComparator
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEXED_REFERENCE_NAME_REGEXP |
static java.util.regex.Pattern |
NAME_PATTERN |
Constructor and Description |
---|
IndexedReference(int id,
java.lang.Class<? extends IndexedProducer> clazz) |
IndexedReference(int id,
java.lang.Class<? extends IndexedProducer> clazz,
java.lang.String table) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<? extends IndexedProducer> |
getFactoryClass() |
int |
getID() |
I |
getIndexed(AppContext c) |
java.lang.String |
getTag() |
int |
hashCode() |
boolean |
isNull()
check reference points somewhere
|
static <I extends Indexed> |
makeIndexedProducer(AppContext c,
java.lang.Class<? extends IndexedProducer> clazz,
java.lang.String table) |
static <I extends Indexed> |
parseIndexedReference(AppContext c,
java.lang.String s)
parse the string value of an IndexedReference
|
java.lang.String |
toString() |
public static final java.lang.String INDEXED_REFERENCE_NAME_REGEXP
public static final java.util.regex.Pattern NAME_PATTERN
public IndexedReference(int id, java.lang.Class<? extends IndexedProducer> clazz, java.lang.String table)
public IndexedReference(int id, java.lang.Class<? extends IndexedProducer> clazz)
public I getIndexed(AppContext c)
public static <I extends Indexed> IndexedProducer<I> makeIndexedProducer(AppContext c, java.lang.Class<? extends IndexedProducer> clazz, java.lang.String table)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getID()
public java.lang.Class<? extends IndexedProducer> getFactoryClass()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isNull()
public static <I extends Indexed> IndexedReference<I> parseIndexedReference(AppContext c, java.lang.String s)
I
- type referencedc
- AppContexts
- String to parsepublic java.lang.String getTag()