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
loggerFields inherited from interface org.umlg.sqlg.sql.dialect.SqlDialect
INDEX_POSTFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDbVersionToGraph(DatabaseMetaData metadata) voidalterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) booleancanUserCreateSchemas(SqlgGraph sqlgGraph) checkConstraintName(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) convertArray(PropertyType propertyType, Array array) createSchemaStatement(String schemaName) longcurrSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) existIndexQuery(SchemaTable schemaTable, String prefix, String indexName) getArrayDriverType(PropertyType propertyType) <T> TvoidbooleanisHsqldb()booleanisSystemIndex(String indexName) booleanisTimestampz(String typeName) voidlockTable(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) longnextSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) voidprepareDB(Connection conn) int[]propertyTypeToJavaSqlType(PropertyType propertyType) String[]propertyTypeToSqlDefinition(PropertyType propertyType) renameColumn(String schema, String table, String column, String newName) booleansequenceName(SqlgGraph sqlgGraph, SchemaTable outSchemaTable, String prefix) voidsetArray(PreparedStatement statement, int index, PropertyType type, Object[] values) voidsetGeographyPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point) voidsetLineString(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) voidsetPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point) voidsetPolygon(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) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleansupportsType(PropertyType propertyType) voidvalidateColumnName(String column) voidvalidateProperty(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, sqlInParameterLimitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, writeTemporaryStreamingVertexMethods 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, registerTypes, 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, validateTableNameMethods inherited from interface org.umlg.sqlg.sql.dialect.SqlSchemaChangeDialect
lock, notifyChange, registerListener, unregisterListener
-
Constructor Details
-
HsqldbDialect
public HsqldbDialect()
-
-
Method Details
-
dialectName
- Specified by:
dialectNamein interfaceSqlDialect
-
getInternalSchemas
- Specified by:
getInternalSchemasin interfaceSqlDialect
-
valueToValuesString
- Specified by:
valueToValuesStringin interfaceSqlDialect
-
getPublicSchema
- Specified by:
getPublicSchemain interfaceSqlDialect
-
existIndexQuery
- Specified by:
existIndexQueryin interfaceSqlDialect
-
requiresIndexName
public boolean requiresIndexName()- Specified by:
requiresIndexNamein interfaceSqlDialect
-
supportsTransactionalSchema
public boolean supportsTransactionalSchema()- Specified by:
supportsTransactionalSchemain interfaceSqlDialect
-
supportsIfExists
public boolean supportsIfExists()- Specified by:
supportsIfExistsin interfaceSqlDialect
-
validateProperty
- Specified by:
validatePropertyin interfaceSqlDialect
-
getColumnEscapeKey
- Specified by:
getColumnEscapeKeyin interfaceSqlDialect
-
getPrimaryKeyType
- Specified by:
getPrimaryKeyTypein interfaceSqlDialect
-
getAutoIncrementPrimaryKeyConstruct
- Specified by:
getAutoIncrementPrimaryKeyConstructin interfaceSqlDialect
-
propertyTypeToSqlDefinition
- Specified by:
propertyTypeToSqlDefinitionin interfaceSqlDialect
-
propertyTypeToJavaSqlType
- Specified by:
propertyTypeToJavaSqlTypein 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:
sqlTypeToPropertyTypein 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:
sqlArrayTypeNameToPropertyTypein interfaceSqlDialect
-
getForeignKeyTypeDefinition
- Specified by:
getForeignKeyTypeDefinitionin interfaceSqlDialect
-
supportsFloatValues
public boolean supportsFloatValues()- Specified by:
supportsFloatValuesin interfaceSqlDialect
-
supportsByteValues
public boolean supportsByteValues()- Specified by:
supportsByteValuesin interfaceSqlDialect
-
supportsFloatArrayValues
public boolean supportsFloatArrayValues()- Specified by:
supportsFloatArrayValuesin interfaceSqlDialect
-
getArrayDriverType
- Specified by:
getArrayDriverTypein interfaceSqlDialect
-
createTableStatement
- Specified by:
createTableStatementin interfaceSqlDialect
-
prepareDB
- Specified by:
prepareDBin interfaceSqlDialect
-
validateColumnName
- Specified by:
validateColumnNamein interfaceSqlDialect- Overrides:
validateColumnNamein classBaseSqlDialect
-
getSpacialRefTable
- Specified by:
getSpacialRefTablein interfaceSqlDialect
-
getGisSchemas
- Specified by:
getGisSchemasin interfaceSqlDialect
-
setPoint
- Specified by:
setPointin interfaceSqlDialect
-
setLineString
public void setLineString(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) - Specified by:
setLineStringin interfaceSqlDialect
-
setPolygon
- Specified by:
setPolygonin interfaceSqlDialect
-
setGeographyPoint
public void setGeographyPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point) - Specified by:
setGeographyPointin interfaceSqlDialect
-
getGis
- Specified by:
getGisin interfaceSqlDialect
-
lockTable
- Specified by:
lockTablein interfaceSqlDialect
-
alterSequenceCacheSize
public void alterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) - Specified by:
alterSequenceCacheSizein interfaceSqlDialect
-
nextSequenceVal
- Specified by:
nextSequenceValin interfaceSqlDialect
-
currSequenceVal
- Specified by:
currSequenceValin interfaceSqlDialect
-
sequenceName
- Specified by:
sequenceNamein interfaceSqlDialect
-
supportsBatchMode
public boolean supportsBatchMode()- Specified by:
supportsBatchModein interfaceSqlDialect
-
supportsBulkWithinOut
public boolean supportsBulkWithinOut()- Specified by:
supportsBulkWithinOutin interfaceSqlDialect
-
createTemporaryTableStatement
- Specified by:
createTemporaryTableStatementin interfaceSqlDialect
-
afterCreateTemporaryTableStatement
- Specified by:
afterCreateTemporaryTableStatementin interfaceSqlDialect
-
sqlgTopologyCreationScripts
- Specified by:
sqlgTopologyCreationScriptsin interfaceSqlDialect
-
sqlgCreateTopologyGraph
- Specified by:
sqlgCreateTopologyGraphin interfaceSqlDialect
-
sqlgAddIndexEdgeSequenceColumn
- Specified by:
sqlgAddIndexEdgeSequenceColumnin interfaceSqlDialect
-
getPrimaryKeyStartValue
- Specified by:
getPrimaryKeyStartValuein interfaceSqlDialect
-
convertArray
- Specified by:
convertArrayin interfaceSqlDialect- Throws:
SQLException
-
setArray
public void setArray(PreparedStatement statement, int index, PropertyType type, Object[] values) throws SQLException - Specified by:
setArrayin interfaceSqlDialect- Throws:
SQLException
-
isSystemIndex
- Specified by:
isSystemIndexin interfaceSqlDialect
-
supportsJsonArrayValues
public boolean supportsJsonArrayValues()- Specified by:
supportsJsonArrayValuesin interfaceSqlDialect
-
supportsType
- Specified by:
supportsTypein interfaceSqlDialect
-
createSchemaStatement
- Specified by:
createSchemaStatementin interfaceSqlDialect
-
isHsqldb
public boolean isHsqldb()- Specified by:
isHsqldbin interfaceSqlDialect
-
sqlToTurnOffReferentialConstraintCheck
- Specified by:
sqlToTurnOffReferentialConstraintCheckin interfaceSqlDialect
-
sqlToTurnOnReferentialConstraintCheck
- Specified by:
sqlToTurnOnReferentialConstraintCheckin interfaceSqlDialect
-
addPartitionTables
- Specified by:
addPartitionTablesin interfaceSqlDialect
-
addHashPartitionColumns
- Specified by:
addHashPartitionColumnsin interfaceSqlDialect
-
addDbVersionToGraph
- Specified by:
addDbVersionToGraphin interfaceSqlDialect
-
grantReadOnlyUserPrivilegesToSqlgSchemas
- Specified by:
grantReadOnlyUserPrivilegesToSqlgSchemasin interfaceSqlDialect
-
isTimestampz
- Specified by:
isTimestampzin interfaceSqlDialect
-
canUserCreateSchemas
- Specified by:
canUserCreateSchemasin interfaceSqlDialect
-
renameColumn
- Specified by:
renameColumnin interfaceSqlDialect
-
addPropertyDefinitions
- Specified by:
addPropertyDefinitionsin interfaceSqlDialect
-
addOutEdgeDefinitions
- Specified by:
addOutEdgeDefinitionsin interfaceSqlDialect
-
addInEdgeDefinitions
- Specified by:
addInEdgeDefinitionsin interfaceSqlDialect
-
checkConstraintName
public String checkConstraintName(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) - Specified by:
checkConstraintNamein interfaceSqlDialect
-