@Component(value="blOracleRebalanceDialect") public class OracleRebalanceDialect extends Object implements RebalanceDialect
RebalanceDialect| Constructor and Description |
|---|
OracleRebalanceDialect() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(org.hibernate.dialect.Dialect hibernateDialect)
Whether or not this instance is appropriate for the RDBMS platform described by the hibernate dialect
|
String |
createDetectNonIntegerSortQuery(String tableName,
String sortColumn,
String whereClause)
Create a native sql query to detect if there are any sort values (given the restrictions of the where clause) that
are non-integer.
|
String[] |
createRebalanceQuery(String tableName,
String idColumn,
String sortColumn,
String whereClause,
BigDecimal startValue,
BigDecimal increment)
Create one or more native sql queries to execute against the target platform.
|
public boolean canHandle(org.hibernate.dialect.Dialect hibernateDialect)
RebalanceDialectcanHandle in interface RebalanceDialecthibernateDialect - the dialect describing the RDBMS platformpublic String[] createRebalanceQuery(String tableName, String idColumn, String sortColumn, String whereClause, BigDecimal startValue, BigDecimal increment)
RebalanceDialectcreateRebalanceQuery in interface RebalanceDialecttableName - the target database tableidColumn - the primary key column of the tablesortColumn - the column to renumberwhereClause - the where clause fragment defining the bounds of the operation (if any, can be null). For example DISPLAY_ORDER > 1 AND DISPLAY_ORDER < 2.startValue - the value to start with - the first record will get this valueincrement - the value to increase for the next record in the sorted list based on the value of the previous recordpublic String createDetectNonIntegerSortQuery(String tableName, String sortColumn, String whereClause)
RebalanceDialectcreateDetectNonIntegerSortQuery in interface RebalanceDialecttableName - the target database tablesortColumn - the column to renumberwhereClause - the where clause fragment defining the bounds of the operationCopyright © 2019. All rights reserved.