|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jpattern.orm.query.OrmClassToolMapNameSolver
public class OrmClassToolMapNameSolver
| Constructor Summary | |
|---|---|
OrmClassToolMapNameSolver(IOrmClassToolMap ormClassToolMap)
|
|
| Method Summary | ||
|---|---|---|
String |
alias(Integer classId)
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 |
|
|
register(Class<P> clazz)
Register a class and use the name of the class as alias to resolve the property name. |
|
|
register(Class<P> 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrmClassToolMapNameSolver(IOrmClassToolMap ormClassToolMap)
| Method Detail |
|---|
public String solvePropertyName(String property)
throws OrmException
NameSolver
solvePropertyName in interface NameSolverOrmException
public String solvePropertyName(String property,
String defaultValue)
throws OrmException
NameSolver
solvePropertyName in interface NameSolverOrmException
public <P> Integer register(Class<P> clazz)
throws OrmException
NameSolver
register in interface NameSolverOrmException
public <P> Integer register(Class<P> clazz,
String alias)
throws OrmException
NameSolver
register in interface NameSolverOrmException
public String alias(Integer classId)
throws OrmException
NameSolver
alias in interface NameSolverOrmException
public String solvePropertyNameWithoutAlias(String property)
throws OrmException
NameSolver
solvePropertyNameWithoutAlias in interface NameSolverOrmExceptionpublic void alwaysResolveWithoutAlias(boolean resolveWithoutAlias)
NameSolver
alwaysResolveWithoutAlias in interface NameSolverpublic boolean getAlwaysResolveWithoutAlias()
NameSolver
getAlwaysResolveWithoutAlias in interface NameSolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||