| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SpannerDialect.DoNothingLockingStrategy
A locking strategy for the Cloud Spanner dialect that does nothing. |
| pack-priv static class | SpannerDialect.DoNothingUniqueDelegate
A no-op delegate for generating Unique-Constraints. |
| pack-priv static class | SpannerDialect.EmptyExporter<T extends Exportable>
A no-op |
| Modifier and Type | Field and Description |
|---|---|
| private static final LockingStrategy | |
| private static final SpannerDialect. | |
| private static final UniqueDelegate | |
| private final Exporter |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendBooleanValueString(SqlAppender
The appender, boolean SqlAppender to append the literal expression toThe boolean value bool)Overrides org. SqlAppender.
|
| public void | appendDatetimeFormat(SqlAppender appender, String format)
Overrides org. java. to
whatever pattern language is understood by the
native datetime formatting function for this
database (often the to_char() function).
|
| public String | applyLocksToSql(String
the SQL string to modify sql, LockOptions lock options indexed by aliased table names. aliasedLockOptions, Map<String, String[]> a map of key columns indexed by aliased table names. keyColumnNames)
Modifies the given SQL, applying the appropriate updates for the specified
lock modes and key columns.
|
| public boolean | canCreateSchema()
Does this dialect support creating and dropping schema?
|
| protected String | castType(int
The JDBC type code representing the target type sqlTypeCode)Overrides org. cast( ...
|
| public char | closeQuote()
Overrides org. |
| protected String | columnType(int
a SQL sqlTypeCode)type codeOverrides org. Types or SqlTypes.
|
| public static Replacer | |
| public boolean | dropConstraints()
Do we need to drop constraints before dropping tables in this dialect?
|
| public String | getAddForeignKeyConstraintString(String
The foreign key constraint name constraintName, String[] The names of the columns comprising the
foreign key foreignKey, String The table referenced by the foreign key referencedTable, String[] The explicit columns in the referencedTable
referenced by this foreign key. primaryKey, boolean if false, constraint should be
explicit about which column names
the constraint refers to referencesPrimaryKey)Overrides org. |
| public String | getAddForeignKeyConstraintString(String
The foreign key constraint name constraintName, String The whole definition of the
foreign key as a fragment foreignKeyDefinition)Overrides org. |
| public String | getAddPrimaryKeyConstraintString(String
The name of the PK constraint. constraintName)Overrides org. |
| public String | getArrayTypeName(String javaElementTypeName, String elementTypeName, Integer maxLength)
The SQL type name for the array type with elements of the given type name.
|
| public String[] | getCreateSchemaCommand(String
The name of the schema to be created. schemaName)Overrides org. |
| public String | getCurrentSchemaCommand()
Overrides org. |
| public String | getCurrentTimestampSelectString()
Overrides org. |
| public String | getDropForeignKeyString()
Overrides org. alter table command used to drop
a foreign key constraint, usually drop constraint.
|
| public String[] | getDropSchemaCommand(String
The name of the schema to be dropped. schemaName)Overrides org. |
| public Exporter | getForeignKeyExporter()
Overrides org. Exporter for ForeignKeys,
usually StandardForeignKeyExporter.
|
| public String | getForUpdateNowaitString()
Overrides org. FOR UPDATE NOWAIT syntax specific to this dialect.
|
| public String | getForUpdateNowaitString(String
The columns to be write locked. aliases)Overrides org. FOR UPDATE OF column_list NOWAIT fragment appropriate
for this dialect, given the aliases of the columns to be write locked.
|
| public String | getForUpdateSkipLockedString()
Overrides org. FOR UPDATE SKIP LOCKED syntax specific to this dialect.
|
| public String | getForUpdateSkipLockedString(String
The columns to be write locked. aliases)Overrides org. FOR UPDATE OF column_list SKIP LOCKED fragment appropriate
for this dialect, given the aliases of the columns to be write locked.
|
| public String | getForUpdateString(LockOptions
contains the lock mode to apply. lockOptions)Overrides org. LockOptions (lock level, timeout),
determine the appropriate for update fragment to
use to obtain the lock.
|
| public String | getForUpdateString()
Overrides org. SELECT statements to
acquire pessimistic UPGRADE locks for this dialect.
|
| public String | getForUpdateString(String
The columns to be write locked. aliases)Overrides org. FOR UPDATE OF column_list fragment appropriate
for this dialect, given the aliases of the columns to be write
locked.
|
| public String | getForUpdateString(String
The columns to be locked. aliases, LockOptions the lock options to apply lockOptions)Overrides org. FOR UPDATE OF or FOR SHARE OF fragment
appropriate for this dialect, given the aliases of the columns
to be locked.
|
| public LimitHandler | getLimitHandler()
Overrides org. LimitHandler that implements pagination support for
Query#setMaxResults(int) and Query#setFirstResult(int).
|
| public LockingStrategy | getLockingStrategy(Lockable
The persister for the entity to be locked. lockable, LockMode The type of lock to be acquired. lockMode)Overrides org.
Deprecated
as a consequence of
A Lockable being deprecated.
LockingStrategy which is able to acquire a database-level
lock with the specified level.
|
| public int | getMaxVarbinaryLength()
Overrides org. java.-like type.
|
| public int | getMaxVarcharLength()
Overrides org. java.-like type.
|
| public String | getReadLockString(int
in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Overrides org. SELECT statements to
acquire READ locks for this dialect.
|
| public String | getReadLockString(String
The columns to be read locked. aliases, int in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Overrides org. SELECT statements to
acquire READ locks for this dialect, given the aliases of
the columns to be read locked.
|
| public SchemaNameResolver | getSchemaNameResolver()
Overrides org. Connection, usually DefaultSchemaNameResolver.
|
| public Exporter | getSequenceExporter()
Overrides org. Exporter for Sequences,
usually StandardSequenceExporter.
|
| public SqlAstTranslatorFactory | getSqlAstTranslatorFactory()
Overrides org. SqlAstTranslatorFactory specific to this dialect, or null
to use the standard translator.
|
| public Exporter | getTableExporter()
Overrides org. Exporter for Tables,
usually StandardTableExporter.
|
| public UniqueDelegate | getUniqueDelegate()
Overrides org. UniqueDelegate supported by this dialect
|
| public Exporter | getUniqueKeyExporter()
Overrides org. Exporter for unique key Constraints,
usually StandardUniqueKeyExporter.
|
| public String | getWriteLockString(int
in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Overrides org. SELECT statements to
acquire pessimistic WRITE locks for this dialect.
|
| public String | getWriteLockString(String
The columns to be read locked. aliases, int in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Overrides org. SELECT statements to
acquire WRITE locks for this dialect, given the aliases of
the columns to be write locked.
|
| public void | initializeFunctionRegistry(FunctionContributions functionContributions)
Overrides org. |
| public boolean | isCurrentTimestampSelectStringCallable()
Overrides org. getCurrentTimestampSelectString
treated as callable?
|
| public char | openQuote()
Overrides org. |
| public boolean | qualifyIndexName()
Do we need to qualify index names with the schema name?
|
| public boolean | supportsCascadeDelete()
Overrides org. on delete actions in foreign key definitions?
|
| public boolean | supportsCircularCascadeDeleteConstraints()
Overrides org. |
| public boolean | supportsCurrentTimestampSelection()
Overrides org. |
| public boolean | supportsLockTimeouts()
Overrides org. |
| public boolean | supportsOffsetInSubquery()
Overrides org. offset in subqueries?
|
| public boolean | supportsOuterJoinForUpdate()
Overrides org. FOR UPDATE in conjunction with
outer-joined rows?
|
| public boolean | supportsStandardArrays()
Overrides org. integer array.
|
| public String | timestampaddPattern(TemporalUnit
The unit to add to the temporal unit, TemporalType The type of the temporal temporalType, IntervalType The type of interval to add or null if it's not a native interval intervalType)Overrides org. timestampadd() function call.
|
| public String | timestampdiffPattern(TemporalUnit
the first argument unit, TemporalType true if the first argument is
a timestamp, false if a date fromTemporalType, TemporalType true if the second argument is toTemporalType)Overrides org. timestampdiff() function call.
|
| public String | translateExtractField(TemporalUnit unit)
Overrides org. extract() function,
or of this dialect's equivalent
function.
|