|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jpattern.orm.crud.OrmCRUDQuery
public class OrmCRUDQuery
| Constructor Summary | |
|---|---|
OrmCRUDQuery()
|
|
| Method Summary | |
|---|---|
String |
getBaseFromClause()
Return the name of the table (with the schema name if exists) |
String |
getBaseSelectClause()
Return the ordered names of the columns used as alias for the table with the complete table name (with the schema name if exists). |
String |
getBaseSelectClause(String rowNamePrefix)
It works like getBaseSelectClause() but instead of using the complete table name as alias it uses a custom prefix to prepend to the column names |
String |
getBeanVersionQuery()
If the bean has a version field, it will return the query to retrieve the updated version of the record |
String |
getDeleteQuery()
The pregenerated query to delete an entity |
String |
getExistQuery()
The pregenerated count query to check if an entity exists |
String |
getLoadQuery()
The pregenerated query to load an entity |
String |
getSaveQuery()
The pregenerated query to save an entity |
String |
getSaveQueryWithoutGenerators()
The pregenerated query to save an entity ignoring the generators if needed |
String |
getUpdateQuery()
The pregenerated query to update an entity |
void |
setBaseFromClause(String baseFromClause)
|
void |
setBaseSelectClause(String baseSelectClause)
|
void |
setBeanVersionQuery(String beanVersionQuery)
|
void |
setDeleteQuery(String deleteQuery)
|
void |
setExistQuery(String existQuery)
|
void |
setLoadQuery(String loadQuery)
|
void |
setSaveQuery(String saveQuery)
|
void |
setSaveQueryWithoutGenerators(String saveQueryWithoutGenerators)
|
void |
setUpdateQuery(String updateQuery)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrmCRUDQuery()
| Method Detail |
|---|
public String getLoadQuery()
CRUDQuery
getLoadQuery in interface CRUDQuerypublic String getSaveQuery()
CRUDQuery
getSaveQuery in interface CRUDQuerypublic String getDeleteQuery()
CRUDQuery
getDeleteQuery in interface CRUDQuerypublic String getUpdateQuery()
CRUDQuery
getUpdateQuery in interface CRUDQuerypublic String getBaseSelectClause()
CRUDQuery
getBaseSelectClause in interface CRUDQuerypublic String getBaseFromClause()
CRUDQuery
getBaseFromClause in interface CRUDQuerypublic String getBaseSelectClause(String rowNamePrefix)
CRUDQuery
getBaseSelectClause in interface CRUDQuerypublic String getBeanVersionQuery()
CRUDQuery
getBeanVersionQuery in interface CRUDQuerypublic String getSaveQueryWithoutGenerators()
CRUDQuery
getSaveQueryWithoutGenerators in interface CRUDQuerypublic void setUpdateQuery(String updateQuery)
updateQuery - the updateQuery to setpublic void setDeleteQuery(String deleteQuery)
deleteQuery - the deleteQuery to setpublic void setLoadQuery(String loadQuery)
loadQuery - the loadQuery to setpublic void setSaveQuery(String saveQuery)
saveQuery - the saveQuery to setpublic void setBaseSelectClause(String baseSelectClause)
baseSelectClause - the baseSelectClause to setpublic void setBaseFromClause(String baseFromClause)
baseFromClause - the baseFromClause to setpublic void setBeanVersionQuery(String beanVersionQuery)
beanVersionQuery - the beanVersionQuery to setpublic void setSaveQueryWithoutGenerators(String saveQueryWithoutGenerators)
saveQueryWithoutGenerators - the saveQueryWithoutGenerators to setpublic String getExistQuery()
CRUDQuery
getExistQuery in interface CRUDQuerypublic void setExistQuery(String existQuery)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||