| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.ddl |
Contains classes that aid on DDL creation.
|
| com.feedzai.commons.sql.abstraction.dml |
Contains classes to build DML statements.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
DbColumnType |
DbColumn.getDbColumnType()
Gets the column type.
|
static DbColumnType |
DbColumnType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbColumnType[] |
DbColumnType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
DbEntity.Builder |
DbEntity.Builder.addColumn(String name,
DbColumnType type,
boolean autoInc,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity.Builder |
DbEntity.Builder.addColumn(String name,
DbColumnType type,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity.Builder |
DbEntity.Builder.addColumn(String name,
DbColumnType type,
Integer size,
boolean autoInc,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity.Builder |
DbEntity.Builder.addColumn(String name,
DbColumnType type,
Integer size,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity.Builder |
DbEntity.Builder.addColumn(String name,
DbColumnType type,
K defaultValue,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbColumn.Builder |
DbColumn.Builder.type(DbColumnType dbColumnType)
Sets the column type.
|
| Modifier and Type | Method and Description |
|---|---|
DbColumnType |
Cast.getType()
Gets the type to be converted.
|
| Constructor and Description |
|---|
Cast(Expression expression,
DbColumnType type)
Creates a new cast expression.
|
| Modifier and Type | Method and Description |
|---|---|
static AlterColumn |
SqlBuilder.alterColumn(Expression table,
Name column,
DbColumnType dbColumnType,
DbColumnConstraint... constraints)
Alter column operator.
|
static Cast |
SqlBuilder.cast(Expression expression,
DbColumnType type)
Creates a cast expression.
|
static DbColumn.Builder |
SqlBuilder.dbColumn(String name,
DbColumnType type)
Creates a Database Column builder.
|
static DbColumn.Builder |
SqlBuilder.dbColumn(String name,
DbColumnType type,
boolean autoInc)
Creates a Database Column builder.
|
static DbColumn.Builder |
SqlBuilder.dbColumn(String name,
DbColumnType type,
int size)
Creates a Database Column builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected DbColumnType |
AbstractDatabaseEngine.toPdbType(int type,
String typeName)
Maps the database type to
DbColumnType. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DbColumnType> |
AbstractDatabaseEngine.getMetadata(String tableNamePattern) |
Map<String,DbColumnType> |
DatabaseEngine.getMetadata(String tableNamePattern)
Gets the table metadata (table must be in the current schema).
|
Map<String,DbColumnType> |
AbstractDatabaseEngine.getMetadata(String schemaPattern,
String tableNamePattern) |
Map<String,DbColumnType> |
DatabaseEngine.getMetadata(String schemaPattern,
String tableNamePattern)
Gets the table metadata (table must be in the current schema).
|
Map<String,DbColumnType> |
AbstractDatabaseEngine.getQueryMetadata(Expression query)
Gets the query metadata.
|
Map<String,DbColumnType> |
DatabaseEngine.getQueryMetadata(Expression query)
Gets the query metadata.
|
Map<String,DbColumnType> |
AbstractDatabaseEngine.getQueryMetadata(String query)
Gets the query metadata.
|
Map<String,DbColumnType> |
DatabaseEngine.getQueryMetadata(String query)
Gets the query metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractDatabaseEngine.setParameter(String name,
int index,
Object param,
DbColumnType paramType) |
void |
DatabaseEngine.setParameter(String name,
int index,
Object param,
DbColumnType paramType)
Sets the parameter on the specified index given its type.
|
| Modifier and Type | Method and Description |
|---|---|
protected DbColumnType |
PostgreSqlEngine.toPdbType(int type,
String typeName) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DbColumnType> |
MySqlEngine.getMetadata(String schemaPattern,
String tableNamePattern) |
Map<String,DbColumnType> |
CockroachDBEngine.getMetadata(String schemaPattern,
String tableNamePattern) |
Map<String,DbColumnType> |
DB2Engine.getMetadata(String schemaPattern,
String tableNamePattern) |
Map<String,DbColumnType> |
OracleEngine.getMetadata(String schemaPattern,
String tableNamePattern) |
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlEngine.setParameter(String name,
int index,
Object param,
DbColumnType paramType) |
Copyright © 2023 Feedzai. All rights reserved.