|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.orm.AliasKey
public final class AliasKey
Relation from the one table to another including alias
| Constructor Summary | |
|---|---|
AliasKey(Key<?,?> key)
Constructor |
|
AliasKey(Key<?,?> key,
String aliasFrom,
String aliasTo)
Constructor |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AliasKey(Key<?,?> key)
key - Direct Key
public AliasKey(Key<?,?> key,
String aliasFrom,
String aliasTo)
key - direct KeyaliasFrom - Alias for the previous tablealiasTo - Alias for the next table| Method Detail |
|---|
public Key<?,?> getKey()
public String getAliasFrom()
public String getAliasTo()
public ColumnWrapper getColumn(OrmHandler handler)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public static void addRelations(Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - Result
public static void addKeys(Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collection
public static void addLastKey(Key<?,?> key,
Collection<AliasKey> out)
key - The Ujorm composite Keyout - The result collectionpublic static AliasKey getLastKey(Key<?,?> compositeKey)
key - The Ujorm composite Keyout - The result collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||