Package com.valqueries.automapper
Class MariaSqlDialect
java.lang.Object
com.valqueries.automapper.MariaSqlDialect
- All Implemented Interfaces:
SqlDialect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowsConversion
(Clazz<?> sqlType, String type) escapeColumnOrTable
(String name) generateDropIndexStatement
(TableToken tableName, IndexToken index, boolean isPrimary) generateIndexOnCreateStatement
(TableToken name, KeySet keyset, boolean isUnique) 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> String
getCustomUpsert
(CompoundColumnizer<O> columnizer, Class<O> modelType, List<Property.PropertyValue<?>> newValues, List<Property.PropertyValue<?>> incrementValues, List<Property<?>> setObjValues, List<Property<?>> incrementByObjValues) getDescribeDbResult
(OrmResultSet ormResultSet) getLimitDefinition
(int offset, int limit) <O> String
getUpsert
(CompoundColumnizer<O> columnizer, Class<O> oClass) boolean
Check whether an exception was caused by a duplicate value for primary or unique key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.valqueries.automapper.SqlDialect
_column, buildSelectSql, column, defaultOrderStatement, describe, describeIndex, dropTableStatement, generateAlterColumnPartStatement, generateDeleteStatement, generateDeleteStatement, generateDistinctSelectStatement, generateUpdateStatement, getAddColumnStatement, getInsert, getInsertAutoIncrement, getSqlType, getTableName, getUniqueKeyCheck, getUpsertAutoIncrement, groupConcat, harmonizeLikeValue, isOrderRequiredForOffset, operator, operator, operator, prepareColumnOrTable, table
-
Constructor Details
-
MariaSqlDialect
public MariaSqlDialect()
-
-
Method Details
-
escapeColumnOrTable
- Specified by:
escapeColumnOrTable
in interfaceSqlDialect
-
getUpsert
- Specified by:
getUpsert
in interfaceSqlDialect
-
getLimitDefinition
- Specified by:
getLimitDefinition
in interfaceSqlDialect
-
generateUpdateStatement
public String generateUpdateStatement(TableToken table, List<Element> elements, List<Property.PropertyValue<?>> newPropertyValues, List<Property.PropertyValue<?>> incrementPropertyValues) - Specified by:
generateUpdateStatement
in interfaceSqlDialect
-
generateIndexOnCreateStatement
-
generatePrimaryKeyStatement
- Specified by:
generatePrimaryKeyStatement
in interfaceSqlDialect
-
generateDropIndexStatement
- Specified by:
generateDropIndexStatement
in interfaceSqlDialect
-
generateIndexStatement
- Specified by:
generateIndexStatement
in interfaceSqlDialect
-
getDescribeDbResult
- Specified by:
getDescribeDbResult
in interfaceSqlDialect
-
getDescribeIndexResult
- Specified by:
getDescribeIndexResult
in interfaceSqlDialect
-
allowsConversion
- Specified by:
allowsConversion
in interfaceSqlDialect
-
isDuplicateKeyEntry
Description copied from interface:SqlDialect
Check whether an exception was caused by a duplicate value for primary or unique key.- Specified by:
isDuplicateKeyEntry
in interfaceSqlDialect
- Parameters:
e
- the exception to be tested- Returns:
- whether the exception was caused by a unique constraint violation
-
getCustomUpsert
public <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:
getCustomUpsert
in interfaceSqlDialect
-