public final class AliasKey extends Object
| Constructor and Description |
|---|
AliasKey(Key<?,?> key)
Constructor
|
AliasKey(Key<?,?> key,
String aliasFrom,
String aliasTo)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addKeys(Key<?,?> key,
Collection<AliasKey> out)
Add full range of composite key
|
static void |
addLastKey(Key<?,?> key,
Collection<AliasKey> out)
Add the last condition
|
static void |
addRelations(Key<?,?> key,
Collection<AliasKey> out)
Add relations only
|
boolean |
equals(Object obj) |
String |
getAliasFrom()
Alias previous table
|
String |
getAliasTo()
Alias the next table
|
ColumnWrapper |
getColumn(OrmHandler handler)
Create a new ColumnWrapper for a required alias
|
Key<?,?> |
getKey()
The direct Key
|
static AliasKey |
getLastKey(Key<?,?> compositeKey)
Add the last condition
|
int |
hashCode() |
String |
toString() |
public AliasKey(Key<?,?> key)
key - Direct Keypublic Key<?,?> getKey()
public String getAliasFrom()
public String getAliasTo()
public ColumnWrapper getColumn(OrmHandler handler)
public static void addRelations(Key<?,?> key, Collection<AliasKey> out)
key - The Ujorm composite Keyout - Resultpublic static void addKeys(Key<?,?> key, Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collectionpublic static void addLastKey(Key<?,?> key, Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collectionCopyright 2013, Pavel Ponec