|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SqlMapperGuesser
Guess and execute the SQL for a annotated ActiveRecord entity's method
| Method Summary | ||
|---|---|---|
PreparedSQL |
doGuessPreparedSQL(SqlBoxContext ctx,
Object entity,
Object... params)
|
|
|
guess(SqlBoxContext ctx,
Object entity,
Object... params)
Execute operation to access database, based on current method @Sql annotated String or Text String and parameters, guess a best fit query/update/delete/execute method to run. |
|
String |
guessSQL(SqlBoxContext ctx,
Object entity)
Return the guessed SQL of a method which has @Sql annotation or Text in comment(need put Java in resources(class root) folder) |
|
| Method Detail |
|---|
<U> U guess(SqlBoxContext ctx,
Object entity,
Object... params)
entity - The ActiveRecord entityparams - The SQL params
String guessSQL(SqlBoxContext ctx,
Object entity)
entity - The ActiveRecord entity
PreparedSQL doGuessPreparedSQL(SqlBoxContext ctx,
Object entity,
Object... params)
entity - The ActiveRecord entityparams - The Sql parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||