Package com.valqueries.automapper
Class H2SqlDialect
java.lang.Object
com.valqueries.automapper.H2SqlDialect
- All Implemented Interfaces:
- SqlDialect
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanallowsConversion(Clazz<?> sqlType, String type) describe(TableToken tablename) describeIndex(TableToken tablename) dropTableStatement(Clazz<?> clazz) escapeColumnOrTable(String name) generateDeleteStatement(String tableAlias, TableToken table, List<Element> elements, Integer limit) generateDeleteStatement(String tableAlias, TypeDescriber<?> typeDescriber, List<Element> elements, Integer limit) generateDropIndexStatement(TableToken tableName, IndexToken index, boolean isPrimary) generateIndexStatement(TableToken tablename, KeySet key) generatePrimaryKeyStatement(TableToken name, KeySet key) generateUpdateStatement(TableToken table, List<Element> elements, List<Property.PropertyValue<?>> newPropertyValues, List<Property.PropertyValue<?>> incrementPropertyValues) <O> StringgetCustomUpsert(CompoundColumnizer<O> columnizer, Class<O> modelType, List<Property.PropertyValue<?>> newValues, List<Property.PropertyValue<?>> incrementValues, List<Property<?>> setObjValues, List<Property<?>> incrementByObjValues) getDescribeDbResult(OrmResultSet ormResultSet) getDescribeIndexResult(OrmResultSet ormResultSet) <O> StringgetInsertAutoIncrement(CompoundColumnizer<O> columnizer, Class<O> oClass, List<Boolean> keyNulls) getLimitDefinition(int offset, int limit) getSqlType(Property<?> property) <O> StringgetUpsert(CompoundColumnizer<O> columnizer, Class<O> oClass) <O> StringgetUpsertAutoIncrement(CompoundColumnizer<O> columnizer, Class<O> oClass, List<Boolean> keyNulls) booleanCheck whether an exception was caused by a duplicate value for primary or unique key.prepareColumnOrTable(String name) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.valqueries.automapper.SqlDialect_column, buildSelectSql, column, defaultOrderStatement, generateDistinctSelectStatement, generateUpdateStatement, getAddColumnStatement, getInsert, getTableName, getUniqueKeyCheck, groupConcat, harmonizeLikeValue, isOrderRequiredForOffset, operator, operator, operator, table
- 
Constructor Details- 
H2SqlDialectpublic H2SqlDialect()
 
- 
- 
Method Details- 
prepareColumnOrTable- Specified by:
- prepareColumnOrTablein interface- SqlDialect
 
- 
escapeColumnOrTable- Specified by:
- escapeColumnOrTablein interface- SqlDialect
 
- 
getUpsert- Specified by:
- getUpsertin interface- SqlDialect
 
- 
getUpsertAutoIncrementpublic <O> String getUpsertAutoIncrement(CompoundColumnizer<O> columnizer, Class<O> oClass, List<Boolean> keyNulls) - Specified by:
- getUpsertAutoIncrementin interface- SqlDialect
 
- 
getSqlType- Specified by:
- getSqlTypein interface- SqlDialect
 
- 
getLimitDefinition- Specified by:
- getLimitDefinitionin interface- SqlDialect
 
- 
generateUpdateStatementpublic String generateUpdateStatement(TableToken table, List<Element> elements, List<Property.PropertyValue<?>> newPropertyValues, List<Property.PropertyValue<?>> incrementPropertyValues) - Specified by:
- generateUpdateStatementin interface- SqlDialect
 
- 
getInsertAutoIncrementpublic <O> String getInsertAutoIncrement(CompoundColumnizer<O> columnizer, Class<O> oClass, List<Boolean> keyNulls) - Specified by:
- getInsertAutoIncrementin interface- SqlDialect
 
- 
describe- Specified by:
- describein interface- SqlDialect
 
- 
describeIndex- Specified by:
- describeIndexin interface- SqlDialect
 
- 
getDescribeIndexResult- Specified by:
- getDescribeIndexResultin interface- SqlDialect
 
- 
generateDropIndexStatement- Specified by:
- generateDropIndexStatementin interface- SqlDialect
 
- 
getDescribeDbResult- Specified by:
- getDescribeDbResultin interface- SqlDialect
 
- 
generatePrimaryKeyStatement- Specified by:
- generatePrimaryKeyStatementin interface- SqlDialect
 
- 
generateIndexStatement- Specified by:
- generateIndexStatementin interface- SqlDialect
 
- 
generateDeleteStatementpublic String generateDeleteStatement(String tableAlias, TypeDescriber<?> typeDescriber, List<Element> elements, Integer limit) - Specified by:
- generateDeleteStatementin interface- SqlDialect
 
- 
generateDeleteStatementpublic String generateDeleteStatement(String tableAlias, TableToken table, List<Element> elements, Integer limit) - Specified by:
- generateDeleteStatementin interface- SqlDialect
 
- 
generateAlterColumnPartStatement- Specified by:
- generateAlterColumnPartStatementin interface- SqlDialect
 
- 
dropTableStatement- Specified by:
- dropTableStatementin interface- SqlDialect
 
- 
allowsConversion- Specified by:
- allowsConversionin interface- SqlDialect
 
- 
isDuplicateKeyEntryDescription copied from interface:SqlDialectCheck whether an exception was caused by a duplicate value for primary or unique key.- Specified by:
- isDuplicateKeyEntryin interface- SqlDialect
- Parameters:
- e- the exception to be tested
- Returns:
- whether the exception was caused by a unique constraint violation
 
- 
getCustomUpsertpublic <O> String getCustomUpsert(CompoundColumnizer<O> columnizer, Class<O> modelType, List<Property.PropertyValue<?>> newValues, List<Property.PropertyValue<?>> incrementValues, List<Property<?>> setObjValues, List<Property<?>> incrementByObjValues) - Specified by:
- getCustomUpsertin interface- SqlDialect
 
 
-