|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INameSolver
| Method Summary | |
|---|---|
String |
alias(Class<?> clazz)
Return the alias of a registered class |
void |
alwaysResolveWithoutAlias(boolean resolveWithoutAlias)
If set to true always resolves the properties name without prepend the table name alias, even if the solvePropertyName is called DEFAULT is set to false. |
boolean |
getAlwaysResolveWithoutAlias()
Return whether resolve the properties name without prepend the table name alias |
void |
register(Class<?> clazz)
Register a class and use the name of the class as alias to resolve the property name. |
void |
register(Class<?> clazz,
String alias)
Register a class and use the passed alias parameter as alias to resolve the property name. |
String |
solvePropertyName(String property)
Resolve a property in a query to his name in the database using the table alias as prefix. |
String |
solvePropertyName(String property,
String defaultValue)
Resolve a property in a query to his name in the database using the table alias as prefix. |
String |
solvePropertyNameWithoutAlias(String property)
Resolve a property in a query to his column's related name in the database without using the table alias as prefix. |
| Method Detail |
|---|
String solvePropertyName(String property)
throws OrmException
property -
OrmException
String solvePropertyName(String property,
String defaultValue)
throws OrmException
property - defaultValue -
OrmException
String solvePropertyNameWithoutAlias(String property)
throws OrmException
clazz - property -
OrmException
void register(Class<?> clazz)
throws OrmException
clazz -
OrmException
void register(Class<?> clazz,
String alias)
throws OrmException
clazz - alias -
OrmException
String alias(Class<?> clazz)
throws OrmException
clazz -
OrmExceptionvoid alwaysResolveWithoutAlias(boolean resolveWithoutAlias)
resolveWithoutAlias - boolean getAlwaysResolveWithoutAlias()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||