| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.ddl |
Contains classes that aid on DDL creation.
|
| com.feedzai.commons.sql.abstraction.dml.dialect |
Contains an SQL builder.
|
| com.feedzai.commons.sql.abstraction.engine |
Contains the database engine core.
|
| com.feedzai.commons.sql.abstraction.engine.impl |
Database specific implementations.
|
| com.feedzai.commons.sql.abstraction.util |
Contains utility classes that aid PdB.
|
| Modifier and Type | Method and Description |
|---|---|
DbColumn |
DbColumn.addConstraint(DbColumnConstraint dbColumnConstraint)
Adds a new constraint to this column.
|
DbColumn |
DbColumn.addConstraints(DbColumnConstraint... constraints)
Adds constraints.
|
DbColumn |
DbColumn.setAutoInc(boolean autoInc)
Sets this field to use auto incrementation techniques.
|
DbColumn |
DbColumn.setDefaultValue(K defaultValue)
Sets The default value of the column.
|
DbColumn |
DbColumn.setName(String name)
Sets the column name.
|
DbColumn |
DbColumn.setSize(Integer size)
Sets the size of the type (if applicable).
|
DbColumn |
DbColumn.setType(DbColumnType dbColumnType)
Sets the column type.
|
| Modifier and Type | Method and Description |
|---|---|
List<DbColumn> |
DbEntity.getColumns() |
| Modifier and Type | Method and Description |
|---|---|
DbEntity |
DbEntity.addColumn(DbColumn dbColumn)
Adds a column to the entity.
|
| Modifier and Type | Method and Description |
|---|---|
DbEntity |
DbEntity.addColumn(Collection<DbColumn> dbColumn)
Adds the columns to the entity.
|
| Constructor and Description |
|---|
AlterColumn(Expression table,
DbColumn column)
Creates a new instance of
AlterColumn. |
| Modifier and Type | Method and Description |
|---|---|
static AlterColumn |
SqlBuilder.alterColumn(Expression table,
DbColumn dbColumn)
Alter column operator.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
DatabaseEngineImpl.addColumn(DbEntity entity,
DbColumn... columns)
Adds the column to an existent table.
|
protected abstract String |
DatabaseEngineImpl.translateType(DbColumn c)
Translates the type present in the given column.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
OracleEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
SqlServerEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
DB2Engine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
H2Engine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
PostgreSqlEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
MySqlEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected String |
OracleEngine.translateType(DbColumn c) |
protected String |
SqlServerEngine.translateType(DbColumn c) |
protected String |
DB2Engine.translateType(DbColumn c) |
protected String |
H2Engine.translateType(DbColumn c) |
protected String |
PostgreSqlEngine.translateType(DbColumn c) |
protected String |
MySqlEngine.translateType(DbColumn c) |
| Modifier and Type | Method and Description |
|---|---|
static String |
TypeTranslationUtils.translateDB2Type(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of DB2.
|
static String |
TypeTranslationUtils.translateH2Type(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of H2.
|
static String |
TypeTranslationUtils.translateMySqlType(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of MySQL.
|
static String |
TypeTranslationUtils.translateOracleType(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of Oracle.
|
static String |
TypeTranslationUtils.translatePostgreSqlType(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of PostgreSQL.
|
static String |
TypeTranslationUtils.translateSqlServerType(DbColumn c,
PdbProperties properties)
Translates the given column to a string representation of SQL Server.
|
Copyright © 2013. All Rights Reserved.