| Package | Description |
|---|---|
| org.tentackle.sql |
SQL backend layer.
|
| org.tentackle.sql.metadata |
SQL metadata support.
|
| Modifier and Type | Method and Description |
|---|---|
SqlType[] |
AbstractBackend.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
Backend.jdbcTypeToSqlType(int jdbcType,
int size,
int scale)
Converts the JDBC data type integer to a tentackle backend SqlTypes.
|
SqlType[] |
Informix.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
MsSql.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
Db2.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
MySql.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
Oracle.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
Postgres.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
SqlType[] |
Ingres.jdbcTypeToSqlType(int jdbcType,
int size,
int scale) |
static SqlType |
SqlType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlType[] |
SqlType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
AbstractBackend.columnTypeNullDefaultToString(String columnName,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Backend.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.
|
String |
AbstractBackend.columnTypeToString(SqlType sqlType,
int size,
int scale) |
String |
Backend.columnTypeToString(SqlType sqlType,
int size,
int scale)
Converts an sqltype, size and scale to a database type declaration.
|
int |
AbstractBackend.getDefaultSize(SqlType sqlType) |
int |
Backend.getDefaultSize(SqlType sqlType)
Gets the default size if no size given in model.
|
int |
Postgres.getDefaultSize(SqlType sqlType) |
int |
AbstractBackend.getMaxScale(SqlType sqlType,
int size) |
int |
Backend.getMaxScale(SqlType sqlType,
int size)
Returns the maximum scale for a given SQL-type and size.
|
int |
AbstractBackend.getMaxSize(SqlType sqlType) |
int |
Backend.getMaxSize(SqlType sqlType)
Returns the maximum size for a given SQL-type.
|
int |
Informix.getMaxSize(SqlType sqlType) |
int |
MsSql.getMaxSize(SqlType sqlType) |
int |
Db2.getMaxSize(SqlType sqlType) |
int |
MySql.getMaxSize(SqlType sqlType) |
int |
Oracle.getMaxSize(SqlType sqlType) |
int |
Postgres.getMaxSize(SqlType sqlType) |
int |
Ingres.getMaxSize(SqlType sqlType) |
MigrationStrategy[] |
AbstractBackend.getMigrationStrategy(ColumnMetaData column,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
MigrationStrategy[] |
Backend.getMigrationStrategy(ColumnMetaData column,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue)
Determines the best migration strategy.
|
MigrationStrategy[] |
MySql.getMigrationStrategy(ColumnMetaData column,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
MigrationStrategy[] |
Postgres.getMigrationStrategy(ColumnMetaData column,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
boolean |
AbstractBackend.isDefaultEqual(ColumnMetaData column,
SqlType sqlType,
Object defaultValue) |
boolean |
Backend.isDefaultEqual(ColumnMetaData column,
SqlType sqlType,
Object defaultValue)
Checks whether the column's default corresponds to the model's default value.
|
String |
AbstractBackend.sqlAddColumn(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
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.
|
String |
Informix.sqlAddColumn(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Db2.sqlAddColumn(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
MySql.sqlAddColumn(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Oracle.sqlAddColumn(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
AbstractBackend.sqlAlterColumnDefault(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue) |
String |
Backend.sqlAlterColumnDefault(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue)
Generates sql code to change the default value a column.
|
String |
Informix.sqlAlterColumnDefault(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue) |
String |
Oracle.sqlAlterColumnDefault(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue) |
String |
AbstractBackend.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
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.
|
String |
Informix.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Db2.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
MySql.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Oracle.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
Postgres.sqlAlterColumnType(String tableName,
String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
AbstractBackend.sqlCreateColumn(String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue,
boolean primaryKey,
boolean withTrailingComma) |
String |
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.
|
String |
Db2.sqlCreateColumn(String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue,
boolean primaryKey,
boolean withTrailingComma) |
String |
MySql.sqlCreateColumn(String columnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue,
boolean primaryKey,
boolean withTrailingComma) |
protected String |
AbstractBackend.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.
|
String |
AbstractBackend.sqlRenameAndAlterColumnType(String tableName,
String oldColumnName,
String newColumnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
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.
|
String |
MySql.sqlRenameAndAlterColumnType(String tableName,
String oldColumnName,
String newColumnName,
String comment,
SqlType sqlType,
int size,
int scale,
boolean nullable,
Object defaultValue) |
String |
AbstractBackend.sqlTypeToString(SqlType sqlType,
int size) |
String |
Backend.sqlTypeToString(SqlType sqlType,
int size)
Converts the java SQL-type to the database type name.
|
String |
Informix.sqlTypeToString(SqlType sqlType,
int size) |
String |
MsSql.sqlTypeToString(SqlType sqlType,
int size) |
String |
Db2.sqlTypeToString(SqlType sqlType,
int size) |
String |
MySql.sqlTypeToString(SqlType sqlType,
int size) |
String |
Oracle.sqlTypeToString(SqlType sqlType,
int size) |
String |
Postgres.sqlTypeToString(SqlType sqlType,
int size) |
String |
Ingres.sqlTypeToString(SqlType sqlType,
int size) |
String |
AbstractBackend.sqlUpdateToNotNull(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue) |
String |
Backend.sqlUpdateToNotNull(String tableName,
String columnName,
SqlType sqlType,
Object defaultValue)
Generates code to update a column to a non-null value.
|
String |
AbstractBackend.valueToLiteral(SqlType sqlType,
Object value) |
String |
Backend.valueToLiteral(SqlType sqlType,
Object value)
Conberts a type and value to a literal string.
|
String |
Oracle.valueToLiteral(SqlType sqlType,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ColumnMetaData.matchesSqlType(SqlType sqlType)
Checks whether colunm's type matches given SqlType according to the backend.
|
Tentackle - a domain driven enterprise framework