public final class AliasKey extends Object
| Constructor and Description |
|---|
AliasKey(org.ujorm.Key<?,?> key)
Constructor
|
AliasKey(org.ujorm.Key<?,?> key,
String aliasFrom,
String aliasTo)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addKeys(org.ujorm.Key<?,?> key,
Collection<AliasKey> out)
Add full range of composite key
|
static void |
addLastKey(org.ujorm.Key<?,?> key,
Collection<AliasKey> out)
Add the last condition
|
static void |
addRelations(org.ujorm.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
|
org.ujorm.Key<?,?> |
getKey()
The direct Key
|
static AliasKey |
getLastKey(org.ujorm.Key<?,?> compositeKey)
Add the last condition
|
int |
hashCode() |
String |
toString() |
public AliasKey(org.ujorm.Key<?,?> key)
key - Direct Keypublic org.ujorm.Key<?,?> getKey()
public String getAliasFrom()
public String getAliasTo()
public ColumnWrapper getColumn(OrmHandler handler)
public static void addRelations(org.ujorm.Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - Resultpublic static void addKeys(org.ujorm.Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collectionpublic static void addLastKey(org.ujorm.Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collectionpublic static AliasKey getLastKey(org.ujorm.Key<?,?> compositeKey)
compositeKey - The Ujorm composite KeyCopyright 2013, Pavel Ponec