| Package | Description |
|---|---|
| ru.curs.celesta.dbutils.adaptors | |
| ru.curs.celesta.dbutils.adaptors.column | |
| ru.curs.celesta.dbutils.adaptors.ddl |
Root package of ddl adaptors.
|
| ru.curs.celesta.dbutils.adaptors.function | |
| ru.curs.celesta.dbutils.meta | |
| ru.curs.celesta.score |
Package containing metadata of table structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DBAdaptor.createColumn(Connection conn,
Column<?> c)
Adds a new column to the table.
|
DbColumnInfo |
H2Adaptor.getColumnInfo(Connection conn,
Column<?> c) |
abstract DbColumnInfo |
DBAdaptor.getColumnInfo(Connection conn,
Column<?> c)
Returns information on a column.
|
DbColumnInfo |
OraAdaptor.getColumnInfo(Connection conn,
Column<?> c) |
DbColumnInfo |
FirebirdAdaptor.getColumnInfo(Connection conn,
Column<?> c) |
DbColumnInfo |
MSSQLAdaptor.getColumnInfo(Connection conn,
Column<?> c)
Returns information on column.
|
DbColumnInfo |
PostgresAdaptor.getColumnInfo(Connection conn,
Column<?> c) |
PreparedStatement |
OpenSourceDbAdaptor.getOneFieldStatement(Connection conn,
Column<?> c,
String where) |
abstract PreparedStatement |
DBAdaptor.getOneFieldStatement(Connection conn,
Column<?> c,
String where)
Creates a PreparedStatement object for a SELECT statement of a single column containing
at most one record.
|
PreparedStatement |
OraAdaptor.getOneFieldStatement(Connection conn,
Column<?> c,
String where) |
PreparedStatement |
FirebirdAdaptor.getOneFieldStatement(Connection conn,
Column<?> c,
String where) |
PreparedStatement |
MSSQLAdaptor.getOneFieldStatement(Connection conn,
Column<?> c,
String where) |
void |
DBAdaptor.updateColumn(Connection conn,
Column<?> c,
DbColumnInfo actual)
Updates a table column.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
ColumnDefiner.getDefaultDefinition(Column<?> c)
Returns separately DEFAULT definition of the column.
|
String |
FireBirdColumnDefiner.getFullDefinition(Column c)
Returns full definition of the column (for column creation).
|
String |
ColumnDefiner.getFullDefinition(Column<?> c)
Returns full definition of the column (for column creation).
|
String |
OraColumnDefiner.getFullDefinition(Column<?> c) |
abstract String |
FireBirdColumnDefiner.getInternalDefinition(Column c) |
abstract String |
OraColumnDefiner.getInternalDefinition(Column<?> c) |
abstract String |
MsSqlColumnDefiner.getLightDefaultDefinition(Column<?> c) |
String |
FireBirdColumnDefiner.getMainDefinition(Column c) |
abstract String |
ColumnDefiner.getMainDefinition(Column<?> c)
Returns column definition that contains name, type and NULL/NOT NULL (
without DEFAULT).
|
String |
OraColumnDefiner.getMainDefinition(Column<?> c) |
String |
FireBirdColumnDefiner.nullable(Column c)
Whether the column is nullable.
|
String |
ColumnDefiner.nullable(Column<?> c)
Whether the column is nullable.
|
| Modifier and Type | Method and Description |
|---|---|
static ColumnDefiner |
ColumnDefinerFactory.getColumnDefiner(DBType dbType,
Class<? extends Column<?>> cls)
Returns a column definer depending on the DB type and column type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DdlAdaptor.createColumn(Connection conn,
Column<?> c)
Adds a new column to the table.
|
void |
DdlAdaptor.updateColumn(Connection conn,
Column<?> c,
DbColumnInfo actual)
Updates a table column.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
OraFunctions.fromOrToNClob(Column<?> c,
DbColumnInfo actual) |
static String |
OraFunctions.getBooleanCheckName(Column<?> c) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Column<?>> |
DbColumnInfo.getType()
Returns column type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DbColumnInfo.reflects(Column<?> value) |
| Modifier and Type | Method and Description |
|---|---|
void |
DbColumnInfo.setType(Class<? extends Column<?>> type)
Sets column type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryColumn
Binary column (IMAGE or BLOB type).
|
class |
BooleanColumn
Boolean column (BIT type).
|
class |
DateTimeColumn
Date column (DATETIME).
|
class |
DecimalColumn
Column with a fixed decimal point type.
|
class |
FloatingColumn
Column REAL type.
|
class |
IntegerColumn
Integer column.
|
class |
StringColumn
String column.
|
class |
ZonedDateTimeColumn
Column for date with time zone type.
|
| Modifier and Type | Method and Description |
|---|---|
Column<?> |
FieldRef.getColumn()
Returns the column that the reference is pointing to.
|
Column<?> |
TableElement.getColumn(String colName)
Returns a column by its name or throws an exception with a message that
the column is not found.
|
Column<?> |
BasicTable.getColumn(String colName) |
Column<?> |
MaterializedView.getColumn(String colName) |
Column<?> |
AbstractView.getColumnRef(String colName)
Returns column reference by column name.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Column<?>> |
TableElement.getColumns()
Returns a map of columns with names.
|
Map<String,Column<?>> |
BasicTable.getColumns()
Unmodified list of table columns.
|
Map<String,Column<?>> |
MaterializedView.getColumns() |
Map<String,Column<?>> |
ForeignKey.getColumns()
Unmodified list of columns for the foreign key.
|
Map<String,Column<?>> |
Index.getColumns()
Returns columns of the index.
|
Map<String,Column<?>> |
TableElement.getPrimaryKey()
Returns unmodified map of primary key columns.
|
Map<String,Column<?>> |
BasicTable.getPrimaryKey() |
Map<String,Column<?>> |
MaterializedView.getPrimaryKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
TableElement.addColumn(Column<?> column)
Adds a column to the table.
|
void |
BasicTable.addColumn(Column<?> column)
Adds a column to the table.
|
void |
MaterializedView.addColumn(Column<?> column) |
void |
TableElement.removeColumn(Column<?> column)
Removes a column from the table.
|
void |
BasicTable.removeColumn(Column<?> column) |
void |
MaterializedView.removeColumn(Column<?> column) |
Copyright © 2020 CURS. All rights reserved.