|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.orm.crud.OrmCRUDQuery
public class OrmCRUDQuery
| Constructor Summary | |
|---|---|
OrmCRUDQuery(String deleteQuery,
String loadQuery,
String saveQuery,
String updateQuery,
String baseSelectClause,
String baseFromClause,
boolean generatedKey)
|
|
| Method Summary | |
|---|---|
boolean |
generatedKey()
Return whether in the save query there are automatically generated key (for example using a call to a Sequence in the insert query) |
String |
getBaseFromClause()
Return the name of the table (with the schema name if exists) |
String |
getBaseSelectClause()
Return the ordered names of the columns using as alias for the table the complete table name (with the schema name if exists). |
String |
getBaseSelectClause(String rowNamePrefix)
It wokrs like getBaseSelectClause() but instead of using the complete table name as alias it uses a custom prefix to prepend to the column names |
String |
getDeleteQuery()
The pregenerated query to delete an entity |
String |
getLoadQuery()
The pregenerated query to load an entity |
String |
getSaveQuery()
The pregenerated query to save an entity |
String |
getUpdateQuery()
The pregenerated query to update an entity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrmCRUDQuery(String deleteQuery,
String loadQuery,
String saveQuery,
String updateQuery,
String baseSelectClause,
String baseFromClause,
boolean generatedKey)
| Method Detail |
|---|
public String getLoadQuery()
IOrmCRUDQuery
getLoadQuery in interface IOrmCRUDQuerypublic String getSaveQuery()
IOrmCRUDQuery
getSaveQuery in interface IOrmCRUDQuerypublic String getDeleteQuery()
IOrmCRUDQuery
getDeleteQuery in interface IOrmCRUDQuerypublic String getUpdateQuery()
IOrmCRUDQuery
getUpdateQuery in interface IOrmCRUDQuerypublic boolean generatedKey()
IOrmCRUDQuery
generatedKey in interface IOrmCRUDQuerypublic String getBaseSelectClause()
IOrmCRUDQuery
getBaseSelectClause in interface IOrmCRUDQuerypublic String getBaseFromClause()
IOrmCRUDQuery
getBaseFromClause in interface IOrmCRUDQuerypublic String getBaseSelectClause(String rowNamePrefix)
IOrmCRUDQuery
getBaseSelectClause in interface IOrmCRUDQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||