Package org.umlg.sqlg.sql.dialect.impl
Class HsqldbDialect
java.lang.Object
org.umlg.sqlg.sql.dialect.BaseSqlDialect
org.umlg.sqlg.sql.dialect.impl.HsqldbDialect
- All Implemented Interfaces:
SqlBulkDialect
,SqlDialect
,SqlSchemaChangeDialect
Date: 2014/07/16
Time: 3:09 PM
-
Field Summary
Fields inherited from class org.umlg.sqlg.sql.dialect.BaseSqlDialect
logger
Fields inherited from interface org.umlg.sqlg.sql.dialect.SqlDialect
INDEX_POSTFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDbVersionToGraph
(DatabaseMetaData metadata) void
alterSequenceCacheSize
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) boolean
canUserCreateSchemas
(SqlgGraph sqlgGraph) checkConstraintName
(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) convertArray
(PropertyType propertyType, Array array) createSchemaStatement
(String schemaName) long
currSequenceVal
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) existIndexQuery
(SchemaTable schemaTable, String prefix, String indexName) getArrayDriverType
(PropertyType propertyType) <T> T
void
boolean
isHsqldb()
boolean
isSystemIndex
(String indexName) boolean
isTimestampz
(String typeName) void
lockTable
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) long
nextSequenceVal
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) void
prepareDB
(Connection conn) int[]
propertyTypeToJavaSqlType
(PropertyType propertyType) String[]
propertyTypeToSqlDefinition
(PropertyType propertyType) renameColumn
(String schema, String table, String column, String newName) boolean
sequenceName
(SqlgGraph sqlgGraph, SchemaTable outSchemaTable, String prefix) void
setArray
(PreparedStatement statement, int index, PropertyType type, Object[] values) void
setGeographyPoint
(PreparedStatement preparedStatement, int parameterStartIndex, Object point) void
setLineString
(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) void
setPoint
(PreparedStatement preparedStatement, int parameterStartIndex, Object point) void
setPolygon
(PreparedStatement preparedStatement, int parameterStartIndex, Object point) sqlArrayTypeNameToPropertyType
(String typeName, SqlgGraph sqlgGraph, String schema, String table, String columnName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) sqlToTurnOffReferentialConstraintCheck
(String tableName) sqlToTurnOnReferentialConstraintCheck
(String tableName) sqlTypeToPropertyType
(SqlgGraph sqlgGraph, String schema, String table, String column, int sqlType, String typeName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsType
(PropertyType propertyType) void
validateColumnName
(String column) void
validateProperty
(Object key, Object value) valueToValuesString
(PropertyType propertyType, Object value) Methods inherited from class org.umlg.sqlg.sql.dialect.BaseSqlDialect
escapeQuotes, flushEdgeCache, flushEdgePropertyCache, flushRemovedEdges, flushRemovedVertices, flushVertexCache, flushVertexPropertyCache, getEdgeTables, getIndexInfo, getPrimaryKeys, getSchemaNames, getTableColumns, getVertexTables, handleOther, setJson, sqlInParameterLimit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.umlg.sqlg.sql.dialect.SqlBulkDialect
bulkAddEdges, constructCompleteCopyCommandSqlEdge, constructCompleteCopyCommandSqlVertex, constructCompleteCopyCommandSqlVertex, constructCompleteCopyCommandTemporarySqlVertex, flushEdgeCache, flushEdgePropertyCache, flushRemovedEdges, flushRemovedVertices, flushVertexCache, flushVertexPropertyCache, getBatchNull, streamSql, temporaryTableCopyCommandSqlVertex, writeStreamingEdge, writeStreamingVertex, writeTemporaryStreamingVertex
Methods inherited from interface org.umlg.sqlg.sql.dialect.SqlDialect
addColumnStatement, addNotNullConstraint, addPartitionSchemaAbstractLabelColumns, alterForeignKeyToDeferrable, assertTableName, columnsToIgnore, drop, drop, drop, dropIndex, dropSchemaStatement, dropWithForeignKey, extractIndices, getArrayContainsQueryText, getArrayOverlapsQueryText, getAutoIncrement, getBlocked, getConnectionBackendPid, getDefaultFetchSize, getEdgeTables, getFullTextQueryText, getIndexInfo, getMaximumColumnNameLength, getMaximumIndexNameLength, getMaximumSchemaNameLength, getMaximumTableNameLength, getPartitions, getPrimaryKeys, getRangeClause, getSchemaNames, getShardCount, getSkipClause, getTableColumns, getVertexTables, handleOther, hasContainerKeyToColumn, indexName, indexName, isH2, isIndexPartOfCreateTable, isMariaDb, isMssqlServer, isMysql, isPostgresql, maybeWrapInQoutes, needForeignKeyIndex, needsSchemaCreationPrecommit, needsSchemaDropCascade, needsSemicolon, needsTemporaryTablePrefix, needsTemporaryTableSchema, needsTimeZone, putJsonMetaObject, putJsonObject, renameTable, requiresIndexLengthLimit, schemaExists, setJson, setLquery, setLqueryArray, setLtree, setLtreeArray, sqlgSqlgSchemaCreationScript, sqlInParameterLimit, sqlInsertEmptyValues, sqlToGetAllForeignKeys, sqlTruncate, supportsBigDecimal, supportsBigDecimalArrayValues, supportsBooleanArrayValues, supportsByteArrayValues, supportsCascade, supportsClientInfo, supportsDeferrableForeignKey, supportsDistribution, supportsDoubleArrayValues, supportsDurationArrayValues, supportsFullValueExpression, supportsILike, supportsIntegerArrayValues, supportsJsonType, supportsLocalDateArrayValues, supportsLocalDateTimeArrayValues, supportsLocalTimeArrayValues, supportsLongArrayValues, supportsPartitioning, supportsPeriodArrayValues, supportsSchemaIfNotExists, supportsSchemas, supportsSharding, supportsShortArrayValues, supportsStreamingBatchMode, supportsStringArrayValues, supportsTemporaryTableOnCommitDrop, supportsTruncateMultipleTablesTogether, supportsUUID, supportsValuesExpression, supportsZonedDateTimeArrayValues, temporaryTablePrefix, toByteArray, toRDBSStringLiteral, toRDBSStringLiteral, toSelectString, uniqueIndexConsidersNullValuesEqual, validateSchemaName, validateTableName
Methods inherited from interface org.umlg.sqlg.sql.dialect.SqlSchemaChangeDialect
lock, notifyChange, registerListener, unregisterListener
-
Constructor Details
-
HsqldbDialect
public HsqldbDialect()
-
-
Method Details
-
dialectName
- Specified by:
dialectName
in interfaceSqlDialect
-
getInternalSchemas
- Specified by:
getInternalSchemas
in interfaceSqlDialect
-
valueToValuesString
- Specified by:
valueToValuesString
in interfaceSqlDialect
-
getPublicSchema
- Specified by:
getPublicSchema
in interfaceSqlDialect
-
existIndexQuery
- Specified by:
existIndexQuery
in interfaceSqlDialect
-
requiresIndexName
public boolean requiresIndexName()- Specified by:
requiresIndexName
in interfaceSqlDialect
-
supportsTransactionalSchema
public boolean supportsTransactionalSchema()- Specified by:
supportsTransactionalSchema
in interfaceSqlDialect
-
supportsIfExists
public boolean supportsIfExists()- Specified by:
supportsIfExists
in interfaceSqlDialect
-
validateProperty
- Specified by:
validateProperty
in interfaceSqlDialect
-
getColumnEscapeKey
- Specified by:
getColumnEscapeKey
in interfaceSqlDialect
-
getPrimaryKeyType
- Specified by:
getPrimaryKeyType
in interfaceSqlDialect
-
getAutoIncrementPrimaryKeyConstruct
- Specified by:
getAutoIncrementPrimaryKeyConstruct
in interfaceSqlDialect
-
propertyTypeToSqlDefinition
- Specified by:
propertyTypeToSqlDefinition
in interfaceSqlDialect
-
propertyTypeToJavaSqlType
- Specified by:
propertyTypeToJavaSqlType
in interfaceSqlDialect
-
sqlTypeToPropertyType
public PropertyType sqlTypeToPropertyType(SqlgGraph sqlgGraph, String schema, String table, String column, int sqlType, String typeName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) - Specified by:
sqlTypeToPropertyType
in interfaceSqlDialect
-
sqlArrayTypeNameToPropertyType
public PropertyType sqlArrayTypeNameToPropertyType(String typeName, SqlgGraph sqlgGraph, String schema, String table, String columnName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) - Specified by:
sqlArrayTypeNameToPropertyType
in interfaceSqlDialect
-
getForeignKeyTypeDefinition
- Specified by:
getForeignKeyTypeDefinition
in interfaceSqlDialect
-
supportsFloatValues
public boolean supportsFloatValues()- Specified by:
supportsFloatValues
in interfaceSqlDialect
-
supportsByteValues
public boolean supportsByteValues()- Specified by:
supportsByteValues
in interfaceSqlDialect
-
supportsFloatArrayValues
public boolean supportsFloatArrayValues()- Specified by:
supportsFloatArrayValues
in interfaceSqlDialect
-
getArrayDriverType
- Specified by:
getArrayDriverType
in interfaceSqlDialect
-
createTableStatement
- Specified by:
createTableStatement
in interfaceSqlDialect
-
prepareDB
- Specified by:
prepareDB
in interfaceSqlDialect
-
validateColumnName
- Specified by:
validateColumnName
in interfaceSqlDialect
- Overrides:
validateColumnName
in classBaseSqlDialect
-
getSpacialRefTable
- Specified by:
getSpacialRefTable
in interfaceSqlDialect
-
getGisSchemas
- Specified by:
getGisSchemas
in interfaceSqlDialect
-
setPoint
- Specified by:
setPoint
in interfaceSqlDialect
-
setLineString
public void setLineString(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) - Specified by:
setLineString
in interfaceSqlDialect
-
setPolygon
- Specified by:
setPolygon
in interfaceSqlDialect
-
setGeographyPoint
public void setGeographyPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point) - Specified by:
setGeographyPoint
in interfaceSqlDialect
-
getGis
- Specified by:
getGis
in interfaceSqlDialect
-
lockTable
- Specified by:
lockTable
in interfaceSqlDialect
-
alterSequenceCacheSize
public void alterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) - Specified by:
alterSequenceCacheSize
in interfaceSqlDialect
-
nextSequenceVal
- Specified by:
nextSequenceVal
in interfaceSqlDialect
-
currSequenceVal
- Specified by:
currSequenceVal
in interfaceSqlDialect
-
sequenceName
- Specified by:
sequenceName
in interfaceSqlDialect
-
supportsBatchMode
public boolean supportsBatchMode()- Specified by:
supportsBatchMode
in interfaceSqlDialect
-
supportsBulkWithinOut
public boolean supportsBulkWithinOut()- Specified by:
supportsBulkWithinOut
in interfaceSqlDialect
-
createTemporaryTableStatement
- Specified by:
createTemporaryTableStatement
in interfaceSqlDialect
-
afterCreateTemporaryTableStatement
- Specified by:
afterCreateTemporaryTableStatement
in interfaceSqlDialect
-
sqlgTopologyCreationScripts
- Specified by:
sqlgTopologyCreationScripts
in interfaceSqlDialect
-
sqlgCreateTopologyGraph
- Specified by:
sqlgCreateTopologyGraph
in interfaceSqlDialect
-
sqlgAddIndexEdgeSequenceColumn
- Specified by:
sqlgAddIndexEdgeSequenceColumn
in interfaceSqlDialect
-
getPrimaryKeyStartValue
- Specified by:
getPrimaryKeyStartValue
in interfaceSqlDialect
-
convertArray
- Specified by:
convertArray
in interfaceSqlDialect
- Throws:
SQLException
-
setArray
public void setArray(PreparedStatement statement, int index, PropertyType type, Object[] values) throws SQLException - Specified by:
setArray
in interfaceSqlDialect
- Throws:
SQLException
-
isSystemIndex
- Specified by:
isSystemIndex
in interfaceSqlDialect
-
supportsJsonArrayValues
public boolean supportsJsonArrayValues()- Specified by:
supportsJsonArrayValues
in interfaceSqlDialect
-
supportsType
- Specified by:
supportsType
in interfaceSqlDialect
-
createSchemaStatement
- Specified by:
createSchemaStatement
in interfaceSqlDialect
-
isHsqldb
public boolean isHsqldb()- Specified by:
isHsqldb
in interfaceSqlDialect
-
sqlToTurnOffReferentialConstraintCheck
- Specified by:
sqlToTurnOffReferentialConstraintCheck
in interfaceSqlDialect
-
sqlToTurnOnReferentialConstraintCheck
- Specified by:
sqlToTurnOnReferentialConstraintCheck
in interfaceSqlDialect
-
addPartitionTables
- Specified by:
addPartitionTables
in interfaceSqlDialect
-
addHashPartitionColumns
- Specified by:
addHashPartitionColumns
in interfaceSqlDialect
-
addDbVersionToGraph
- Specified by:
addDbVersionToGraph
in interfaceSqlDialect
-
grantReadOnlyUserPrivilegesToSqlgSchemas
- Specified by:
grantReadOnlyUserPrivilegesToSqlgSchemas
in interfaceSqlDialect
-
isTimestampz
- Specified by:
isTimestampz
in interfaceSqlDialect
-
canUserCreateSchemas
- Specified by:
canUserCreateSchemas
in interfaceSqlDialect
-
renameColumn
- Specified by:
renameColumn
in interfaceSqlDialect
-
addPropertyDefinitions
- Specified by:
addPropertyDefinitions
in interfaceSqlDialect
-
addOutEdgeDefinitions
- Specified by:
addOutEdgeDefinitions
in interfaceSqlDialect
-
addInEdgeDefinitions
- Specified by:
addInEdgeDefinitions
in interfaceSqlDialect
-
checkConstraintName
public String checkConstraintName(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) - Specified by:
checkConstraintName
in interfaceSqlDialect
-