Uses of Enum Class
org.tentackle.sql.SqlType
Packages that use SqlType
Package
Description
SQL backend layer.
Backend implementations.
DataType implementations.
SQL metadata support.
-
Uses of SqlType in org.tentackle.sql
Methods in org.tentackle.sql that return SqlTypeModifier and TypeMethodDescriptionDataType.getSqlType(Backend backend, int index) Gets the SQL type.
For predefined types, the type must be the same for all backends and the backend argument may be null.
Application specific types, however, can use different sql types for different backends and for those types the backend argument is always valid.SqlType[]Backend.jdbcTypeToSqlType(int jdbcType, int size, int scale) Converts the JDBC data type integer to a tentackle backend SqlTypes.static SqlTypeReturns the enum constant of this class with the specified name.static SqlType[]SqlType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.tentackle.sql with parameters of type SqlTypeModifier and TypeMethodDescriptionBackend.columnTypeNullDefaultToString(String columnName, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Converts an sqltype, size, scale, nullable and default value to a database type declaration.Backend.columnTypeToString(SqlType sqlType, int size, int scale) Converts an sqltype, size and scale to a database type declaration.intBackend.getDefaultSize(SqlType sqlType) Gets the default size if no size given in model.intBackend.getMaxScale(SqlType sqlType, int size) Returns the maximum scale for a given SQL-type and size.intBackend.getMaxSize(SqlType sqlType) Returns the maximum size for a given SQL-type.Backend.getMigrationStrategy(ColumnMetaData column, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Determines the best migration strategy.booleanBackend.isDefaultEqual(ColumnMetaData column, SqlType sqlType, Object defaultValue) Checks whether the column's default corresponds to the model's default value.voidGeneric setter for objects via knownSqlType.voidBackend.setArray(PreparedStatement statement, int pos, SqlType type, Collection<?> elements, String operator) Sets an array parameter in a prepared statement.Backend.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Generates sql code to add a column.Backend.sqlAlterColumnDefault(String tableName, String columnName, SqlType sqlType, Object defaultValue) Generates sql code to change the default value a column.Backend.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Generates sql code to change the datatype of a column.Backend.sqlCreateColumn(String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue, boolean primaryKey, boolean withTrailingComma) Generates the attribute definition of a CREATE TABLE statement.Backend.sqlRenameAndAlterColumnType(String tableName, String oldColumnName, String newColumnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Generates sql code to rename a column.Backend.sqlTypeToString(SqlType sqlType, int size) Converts the java SQL-type to the database type name.Backend.sqlUpdateToNotNull(String tableName, String columnName, SqlType sqlType, Object defaultValue, boolean migrated) Generates code to update a column to a non-null value.Backend.valueToLiteral(SqlType sqlType, Object value) Converts a type and value to a literal string. -
Uses of SqlType in org.tentackle.sql.backends
Methods in org.tentackle.sql.backends that return SqlTypeModifier and TypeMethodDescriptionSqlType[]AbstractBackend.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]Db2.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]H2.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]Informix.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]MsSql.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]MySql.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]Oracle8.jdbcTypeToSqlType(int jdbcType, int size, int scale) SqlType[]Postgres.jdbcTypeToSqlType(int jdbcType, int size, int scale) Methods in org.tentackle.sql.backends with parameters of type SqlTypeModifier and TypeMethodDescriptionAbstractBackend.columnTypeNullDefaultToString(String columnName, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Oracle8.columnTypeNullDefaultToString(String columnName, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) AbstractBackend.columnTypeToString(SqlType sqlType, int size, int scale) intAbstractBackend.getDefaultSize(SqlType sqlType) intPostgres.getDefaultSize(SqlType sqlType) intAbstractBackend.getMaxScale(SqlType sqlType, int size) intAbstractBackend.getMaxSize(SqlType sqlType) intDb2.getMaxSize(SqlType sqlType) intH2.getMaxSize(SqlType sqlType) intInformix.getMaxSize(SqlType sqlType) intMsSql.getMaxSize(SqlType sqlType) intMySql.getMaxSize(SqlType sqlType) intOracle8.getMaxSize(SqlType sqlType) intPostgres.getMaxSize(SqlType sqlType) AbstractBackend.getMigrationStrategy(ColumnMetaData column, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) H2.getMigrationStrategy(ColumnMetaData column, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) MySql.getMigrationStrategy(ColumnMetaData column, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Postgres.getMigrationStrategy(ColumnMetaData column, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) booleanAbstractBackend.isDefaultEqual(ColumnMetaData column, SqlType sqlType, Object defaultValue) voidAbstractBackend.setArray(PreparedStatement statement, int pos, SqlType type, Collection<?> elements, String operator) AbstractBackend.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Db2.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Informix.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) MySql.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Oracle8.sqlAddColumn(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) AbstractBackend.sqlAlterColumnDefault(String tableName, String columnName, SqlType sqlType, Object defaultValue) Informix.sqlAlterColumnDefault(String tableName, String columnName, SqlType sqlType, Object defaultValue) Oracle8.sqlAlterColumnDefault(String tableName, String columnName, SqlType sqlType, Object defaultValue) AbstractBackend.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Db2.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) H2.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Informix.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) MySql.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Oracle8.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) Postgres.sqlAlterColumnType(String tableName, String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) AbstractBackend.sqlCreateColumn(String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue, boolean primaryKey, boolean withTrailingComma) Db2.sqlCreateColumn(String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue, boolean primaryKey, boolean withTrailingComma) MySql.sqlCreateColumn(String columnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue, boolean primaryKey, boolean withTrailingComma) protected StringAbstractBackend.sqlCreateTableAttributeWithoutComment(String columnName, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue, boolean primaryKey, boolean withTrailingComma) Generates the attribute definition of a CREATE TABLE statement.AbstractBackend.sqlRenameAndAlterColumnType(String tableName, String oldColumnName, String newColumnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) MySql.sqlRenameAndAlterColumnType(String tableName, String oldColumnName, String newColumnName, String comment, SqlType sqlType, int size, int scale, boolean nullable, Object defaultValue) AbstractBackend.sqlTypeToString(SqlType sqlType, int size) Db2.sqlTypeToString(SqlType sqlType, int size) H2.sqlTypeToString(SqlType sqlType, int size) Informix.sqlTypeToString(SqlType sqlType, int size) MsSql.sqlTypeToString(SqlType sqlType, int size) MySql.sqlTypeToString(SqlType sqlType, int size) Oracle8.sqlTypeToString(SqlType sqlType, int size) Postgres.sqlTypeToString(SqlType sqlType, int size) AbstractBackend.sqlUpdateToNotNull(String tableName, String columnName, SqlType sqlType, Object defaultValue, boolean migrated) AbstractBackend.valueToLiteral(SqlType sqlType, Object value) Oracle8.valueToLiteral(SqlType sqlType, Object value) -
Uses of SqlType in org.tentackle.sql.datatypes
Methods in org.tentackle.sql.datatypes that return SqlTypeModifier and TypeMethodDescriptionBigDecimalType.getSqlType(Backend backend, int index) BinaryType.getSqlType(Backend backend, int index) BMoneyType.getSqlType(Backend backend, int index) BooleanType.getSqlType(Backend backend, int index) ByteType.getSqlType(Backend backend, int index) CharacterType.getSqlType(Backend backend, int index) ConvertibleType.getSqlType(Backend backend, int index) DateType.getSqlType(Backend backend, int index) DMoneyType.getSqlType(Backend backend, int index) DoubleType.getSqlType(Backend backend, int index) FloatType.getSqlType(Backend backend, int index) I18NTextType.getSqlType(Backend backend, int index) InstantType.getSqlType(Backend backend, int index) IntegerType.getSqlType(Backend backend, int index) LargeStringType.getSqlType(Backend backend, int index) LocalDateTimeType.getSqlType(Backend backend, int index) LocalDateType.getSqlType(Backend backend, int index) LocalTimeType.getSqlType(Backend backend, int index) LongType.getSqlType(Backend backend, int index) OffsetDateTimeType.getSqlType(Backend backend, int index) OffsetTimeType.getSqlType(Backend backend, int index) ShortType.getSqlType(Backend backend, int index) StringType.getSqlType(Backend backend, int index) TimestampType.getSqlType(Backend backend, int index) TimeType.getSqlType(Backend backend, int index) UUIDType.getSqlType(Backend backend, int index) ZonedDateTimeType.getSqlType(Backend backend, int index) -
Uses of SqlType in org.tentackle.sql.metadata
Methods in org.tentackle.sql.metadata with parameters of type SqlTypeModifier and TypeMethodDescriptionbooleanColumnMetaData.matchesSqlType(SqlType sqlType) Checks whether colunm's type matches given SqlType according to the backend.