Class RelationalDatabaseSchemaDialect
- java.lang.Object
-
- net.lecousin.reactive.data.relational.schema.dialect.RelationalDatabaseSchemaDialect
-
public abstract class RelationalDatabaseSchemaDialect extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationalDatabaseSchemaDialect.SqlFunction
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_FLOATING_POINT_PRECISIONstatic intDEFAULT_FLOATING_POINT_SCALEstatic intDEFAULT_TIME_PRECISION
-
Constructor Summary
Constructors Constructor Description RelationalDatabaseSchemaDialect()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_FLOATING_POINT_PRECISION
public static final int DEFAULT_FLOATING_POINT_PRECISION
- See Also:
- Constant Field Values
-
DEFAULT_FLOATING_POINT_SCALE
public static final int DEFAULT_FLOATING_POINT_SCALE
- See Also:
- Constant Field Values
-
DEFAULT_TIME_PRECISION
public static final int DEFAULT_TIME_PRECISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDialect
public static RelationalDatabaseSchemaDialect getDialect(org.springframework.data.r2dbc.dialect.R2dbcDialect r2dbcDialect)
-
getName
public abstract String getName()
-
isCompatible
public abstract boolean isCompatible(org.springframework.data.r2dbc.dialect.R2dbcDialect r2dbcDialect)
-
convertToDataBase
public Object convertToDataBase(Object value, org.springframework.data.relational.core.mapping.RelationalPersistentProperty property)
-
getColumnType
public String getColumnType(Column col, Class<?> type, ColumnDefinition def)
-
isTimeZoneSupported
public boolean isTimeZoneSupported()
-
getColumnTypeBoolean
protected String getColumnTypeBoolean(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeByte
protected String getColumnTypeByte(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeShort
protected String getColumnTypeShort(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeInteger
protected String getColumnTypeInteger(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeLong
protected String getColumnTypeLong(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeFloat
protected String getColumnTypeFloat(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeDouble
protected String getColumnTypeDouble(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeBigDecimal
protected String getColumnTypeBigDecimal(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeChar
protected String getColumnTypeChar(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeString
protected String getColumnTypeString(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeTimestamp
protected String getColumnTypeTimestamp(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeDate
protected String getColumnTypeDate(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeTime
protected String getColumnTypeTime(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeTimeWithTimeZone
protected String getColumnTypeTimeWithTimeZone(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeDateTime
protected String getColumnTypeDateTime(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeDateTimeWithTimeZone
protected String getColumnTypeDateTimeWithTimeZone(Column col, Class<?> type, ColumnDefinition def)
-
getColumnTypeUUID
protected String getColumnTypeUUID(Column col, Class<?> type, ColumnDefinition def)
-
dropSchemaContent
public SchemaStatements dropSchemaContent(RelationalDatabaseSchema schema)
-
createSchemaContent
public SchemaStatements createSchemaContent(RelationalDatabaseSchema schema)
-
canDoConcurrentAlterTable
protected boolean canDoConcurrentAlterTable()
-
canAddMultipleConstraintsInSingleAlterTable
protected boolean canAddMultipleConstraintsInSingleAlterTable()
-
canCreateIndexInTableDefinition
protected boolean canCreateIndexInTableDefinition(Index index)
-
addColumnDefinition
protected void addColumnDefinition(Column col, StringBuilder sql)
-
addIndexDefinitionInTable
protected void addIndexDefinitionInTable(Table table, Index index, StringBuilder sql)
-
addNotNull
protected void addNotNull(Column col, StringBuilder sql)
-
addAutoIncrement
protected void addAutoIncrement(Column col, StringBuilder sql)
-
supportsUuidGeneration
public boolean supportsUuidGeneration()
-
addDefaultRandomUuid
protected void addDefaultRandomUuid(Column col, StringBuilder sql)
-
addPrimaryKey
protected void addPrimaryKey(Column col, StringBuilder sql)
-
addForeignKeyStatement
protected void addForeignKeyStatement(Table table, Column col, StringBuilder sql)
-
appendForeignKey
protected void appendForeignKey(Table table, Column col, StringBuilder sql)
-
supportsSequence
public boolean supportsSequence()
-
sequenceNextValueFunctionName
public String sequenceNextValueFunctionName()
-
applyFunctionTo
public org.springframework.data.relational.core.sql.Expression applyFunctionTo(RelationalDatabaseSchemaDialect.SqlFunction function, org.springframework.data.relational.core.sql.Expression expression)
-
countDistinct
public org.springframework.data.relational.core.sql.Expression countDistinct(List<org.springframework.data.relational.core.sql.Expression> expressions)
-
isMultipleInsertSupported
public boolean isMultipleInsertSupported()
-
-