public class MysqlDialect extends BaseSqlDialect
INDEX_POSTFIX| Constructor and Description |
|---|
MysqlDialect() |
escapeQuotes, flushEdgeCache, flushEdgeGlobalUniqueIndexes, flushEdgeGlobalUniqueIndexPropertyCache, flushEdgePropertyCache, flushRemovedEdges, flushRemovedGlobalUniqueIndexVertices, flushRemovedVertices, flushVertexCache, flushVertexGlobalUniqueIndexes, flushVertexGlobalUniqueIndexPropertyCache, flushVertexPropertyCache, getPrimaryKeys, handleOther, setJson, sqlInParameterLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkAddEdges, constructCompleteCopyCommandSqlEdge, constructCompleteCopyCommandSqlVertex, constructCompleteCopyCommandSqlVertex, constructCompleteCopyCommandTemporarySqlVertex, getBatchNull, streamSql, temporaryTableCopyCommandSqlVertex, writeStreamingEdge, writeStreamingVertex, writeTemporaryStreamingVertexlock, notifyChange, registerListener, unregisterListeneraddColumnStatement, addDbVersionToGraph, addPartitionTables, alterForeignKeyToDeferrable, assertTableName, columnsToIgnore, drop, drop, drop, dropSchemaStatement, dropWithForeignKey, extractIndices, getAutoIncrement, getDefaultFetchSize, getFullTextQueryText, getGis, getPartitions, getPrimaryKeyStartValue, getRangeClause, getShardCount, hasContainerKeyToColumn, indexName, indexName, isHsqldb, isIndexPartOfCreateTable, isMssqlServer, isPostgresql, needForeignKeyIndex, needsSchemaCreationPrecommit, needsSchemaDropCascade, needsSemicolon, needsTemporaryTablePrefix, needsTimeZone, prepareDB, putJsonMetaObject, putJsonObject, requiresIndexName, setGeographyPoint, setLineString, setPoint, setPolygon, sqlgGuiSchemaCreationScript, sqlgSqlgSchemaCreationScript, sqlToGetAllForeignKeys, sqlTruncate, supportsByteArrayValues, supportsClientInfo, supportsDeferrableForeignKey, supportsDistribution, supportsFullValueExpression, supportsILike, supportsJsonArrayValues, supportsJsonType, supportsPartitioning, supportsSchemaIfNotExists, supportsSharding, supportsStreamingBatchMode, supportsTruncateMultipleTablesTogether, temporaryTablePrefix, toRDBSStringLiteral, toRDBSStringLiteral, uniqueIndexConsidersNullValuesEqual, validateSchemaName, validateTableNamepublic int getMaximumSchemaNameLength()
public int getMaximumTableNameLength()
public int getMaximumColumnNameLength()
public int getMaximumIndexNameLength()
public boolean isMariaDb()
public boolean supportsValuesExpression()
public boolean supportsBatchMode()
public boolean supportsSchemas()
public boolean needsTemporaryTableSchema()
public boolean supportsTemporaryTableOnCommitDrop()
public String sqlInsertEmptyValues()
public List<org.apache.commons.lang3.tuple.Triple<String,String,String>> getVertexTables(DatabaseMetaData metaData)
getVertexTables in interface SqlDialectgetVertexTables in class BaseSqlDialectpublic List<org.apache.commons.lang3.tuple.Triple<String,String,String>> getEdgeTables(DatabaseMetaData metaData)
getEdgeTables in interface SqlDialectgetEdgeTables in class BaseSqlDialectpublic List<org.apache.commons.lang3.tuple.Triple<String,Integer,String>> getTableColumns(DatabaseMetaData metaData, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
getTableColumns in interface SqlDialectgetTableColumns in class BaseSqlDialectpublic List<org.apache.commons.lang3.tuple.Triple<String,Boolean,String>> getIndexInfo(DatabaseMetaData metaData, String catalog, String schema, String table, boolean unique, boolean approximate)
getIndexInfo in interface SqlDialectgetIndexInfo in class BaseSqlDialectpublic List<String> getSchemaNames(DatabaseMetaData metaData)
getSchemaNames in interface SqlDialectgetSchemaNames in class BaseSqlDialectpublic boolean schemaExists(DatabaseMetaData metadata, String schema) throws SQLException
SQLExceptionpublic String dialectName()
public boolean supportsCascade()
public String getPublicSchema()
public String existIndexQuery(SchemaTable schemaTable, String prefix, String indexName)
public boolean supportsTransactionalSchema()
public String getColumnEscapeKey()
public String getPrimaryKeyType()
public String getAutoIncrementPrimaryKeyConstruct()
public String[] propertyTypeToSqlDefinition(PropertyType propertyType)
public int[] propertyTypeToJavaSqlType(PropertyType propertyType)
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)
public PropertyType sqlArrayTypeNameToPropertyType(String typeName, SqlgGraph sqlgGraph, String schema, String table, String columnName, ListIterator<org.apache.commons.lang3.tuple.Triple<String,Integer,String>> metaDataIter)
public String getForeignKeyTypeDefinition()
public String getArrayDriverType(PropertyType propertyType)
public String createTableStatement()
public void validateColumnName(String column)
validateColumnName in interface SqlDialectvalidateColumnName in class BaseSqlDialectpublic void lockTable(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public void alterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize)
public long nextSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public long currSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public String sequenceName(SqlgGraph sqlgGraph, SchemaTable outSchemaTable, String prefix)
public boolean supportsBulkWithinOut()
public String createTemporaryTableStatement()
public String afterCreateTemporaryTableStatement()
public String sqlgCreateTopologyGraph()
public String sqlgAddIndexEdgeSequenceColumn()
public Object convertArray(PropertyType propertyType, Array array) throws SQLException
SQLExceptionpublic void setArray(PreparedStatement statement, int index, PropertyType type, Object[] values) throws SQLException
SQLExceptionpublic boolean isSystemIndex(String indexName)
public boolean supportsBooleanArrayValues()
public boolean supportsDoubleArrayValues()
public boolean supportsFloatArrayValues()
public boolean supportsIntegerArrayValues()
public boolean supportsShortArrayValues()
public boolean supportsLongArrayValues()
public boolean supportsStringArrayValues()
public boolean supportsFloatValues()
public boolean supportsByteValues()
public boolean supportsLocalDateTimeArrayValues()
public boolean supportsLocalTimeArrayValues()
public boolean supportsLocalDateArrayValues()
public boolean supportsZonedDateTimeArrayValues()
public boolean supportsPeriodArrayValues()
public boolean supportsDurationArrayValues()
public boolean requiresIndexLengthLimit()
public String valueToValuesString(PropertyType propertyType, Object value)
public boolean supportsType(PropertyType propertyType)
public String sqlToTurnOffReferentialConstraintCheck(String tableName)
public String sqlToTurnOnReferentialConstraintCheck(String tableName)
public String getSkipClause(long skip)
skip - The number of rows to skip. i.e. OFFSETpublic boolean isMysql()
public void grantReadOnlyUserPrivilegesToSqlgSchemas(SqlgGraph sqlgGraph)
Copyright © 2018. All rights reserved.