Class AggregateStatementGeneric
- java.lang.Object
-
- com.totvs.tjf.repository.aggregate.statement.AggregateStatementGeneric
-
- All Implemented Interfaces:
AggregateStatement
public final class AggregateStatementGeneric extends Object implements AggregateStatement
-
-
Constructor Summary
Constructors Constructor Description AggregateStatementGeneric(AggregateMetadata<?,?> metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetByIdSqlStatement()Returns the prepared SQL statement to query a specific id.StringgetCountSqlStatement(String clause)Returns the prepared SQL statement for an SELECT COUNT(*) command.StringgetDeleteSqlStatement()Returns the prepared SQL statement for an DELETE command.StringgetExistsByIdSqlStatement()Returns the prepared SQL statement to query the existance of a specific id.StringgetExistsSqlStatement(String clause)Returns the prepared SQL statement to query the existance of one or more records.StringgetFindSqlStatement(String clause, javax.persistence.LockModeType lockModeType, String orderBy, Integer limit, Integer offset)Returns the prepared SQL statement to query one or more records.StringgetInsertSqlStatement()Returns the prepared SQL statement for an INSERT command.StringgetMetadataById()Returns the prepared SQL statement to query the metadata field by a specific id.StringgetUpdateSqlStatement()Returns the prepared SQL statement for an UPDATE command.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.totvs.tjf.repository.aggregate.statement.AggregateStatement
getFindSqlStatement
-
-
-
-
Constructor Detail
-
AggregateStatementGeneric
public AggregateStatementGeneric(AggregateMetadata<?,?> metadata)
-
-
Method Detail
-
getInsertSqlStatement
public String getInsertSqlStatement()
Description copied from interface:AggregateStatementReturns the prepared SQL statement for an INSERT command.- Specified by:
getInsertSqlStatementin interfaceAggregateStatement- Returns:
- INSERT SQL statement.
-
getUpdateSqlStatement
public String getUpdateSqlStatement()
Description copied from interface:AggregateStatementReturns the prepared SQL statement for an UPDATE command.- Specified by:
getUpdateSqlStatementin interfaceAggregateStatement- Returns:
- UPDATE SQL statement.
-
getDeleteSqlStatement
public String getDeleteSqlStatement()
Description copied from interface:AggregateStatementReturns the prepared SQL statement for an DELETE command.- Specified by:
getDeleteSqlStatementin interfaceAggregateStatement- Returns:
- DELETE SQL statement.
-
getByIdSqlStatement
public String getByIdSqlStatement()
Description copied from interface:AggregateStatementReturns the prepared SQL statement to query a specific id.- Specified by:
getByIdSqlStatementin interfaceAggregateStatement- Returns:
- Query SQL statement.
-
getExistsByIdSqlStatement
public String getExistsByIdSqlStatement()
Description copied from interface:AggregateStatementReturns the prepared SQL statement to query the existance of a specific id.- Specified by:
getExistsByIdSqlStatementin interfaceAggregateStatement- Returns:
- Query SQL statement.
-
getExistsSqlStatement
public String getExistsSqlStatement(String clause)
Description copied from interface:AggregateStatementReturns the prepared SQL statement to query the existance of one or more records.- Specified by:
getExistsSqlStatementin interfaceAggregateStatement- Returns:
- Query SQL statement.
-
getFindSqlStatement
public String getFindSqlStatement(String clause, javax.persistence.LockModeType lockModeType, String orderBy, Integer limit, Integer offset) throws NotImplementedLockModeTypeException
Description copied from interface:AggregateStatementReturns the prepared SQL statement to query one or more records.- Specified by:
getFindSqlStatementin interfaceAggregateStatement- Returns:
- Query SQL statement.
- Throws:
NotImplementedLockModeTypeException
-
getCountSqlStatement
public String getCountSqlStatement(String clause)
Description copied from interface:AggregateStatementReturns the prepared SQL statement for an SELECT COUNT(*) command.- Specified by:
getCountSqlStatementin interfaceAggregateStatement- Returns:
- SELECT COUNT(*) SQL statement.
-
getMetadataById
public String getMetadataById()
Description copied from interface:AggregateStatementReturns the prepared SQL statement to query the metadata field by a specific id.- Specified by:
getMetadataByIdin interfaceAggregateStatement- Returns:
- metadata query SQL statement.
-
-