com.googlecode.jpattern.orm.crud
Interface IOrmCRUDQuery

All Known Implementing Classes:
OrmCRUDQuery

public interface IOrmCRUDQuery

Author:
Francesco Cina 22/mag/2011

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
 

Method Detail

getLoadQuery

String getLoadQuery()
The pregenerated query to load an entity

Returns:

getSaveQuery

String getSaveQuery()
The pregenerated query to save an entity

Returns:

getDeleteQuery

String getDeleteQuery()
The pregenerated query to delete an entity

Returns:

getUpdateQuery

String getUpdateQuery()
The pregenerated query to update an entity

Returns:

getBaseSelectClause

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). This is used to create custom select query

Returns:

getBaseSelectClause

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

Parameters:
rowNamePrefix -
Returns:

getBaseFromClause

String getBaseFromClause()
Return the name of the table (with the schema name if exists)

Returns:

generatedKey

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)

Returns:


Copyright © 2011. All Rights Reserved.