Package | Description |
---|---|
org.apache.empire.data |
This package contains interfaces for data and metadata handling.
|
org.apache.empire.data.bean |
This package contains implmentations of Empire's data and metadata interfaces for JavaBeans of Data Tranfer Objects (DTO's).
|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.derby |
This package contains classes necessary to support the Apache Derby database system.
|
org.apache.empire.db.expr.column |
This package contains SQL-generator classes for column expressions.
|
org.apache.empire.db.h2 |
This package contains classes necessary to support the H2 database system.
|
org.apache.empire.db.hsql |
This package contains classes necessary to support the HSQLDB database system.
|
org.apache.empire.db.mysql |
This package contains classes necessary to support the MySQL database system.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.db.postgresql |
This package contains classes necessary to support the PostgreSQL database system.
|
org.apache.empire.db.sqlite | |
org.apache.empire.db.sqlserver |
This package contains classes necessary to support the Microsoft SQL-Server database system.
|
org.apache.empire.db.validation |
Modifier and Type | Method and Description |
---|---|
DataType |
ColumnExpr.getDataType()
Returns the column's data type.
|
static DataType |
DataType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
DataType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DataType.isCompatible(DataType other)
Returns whether or not two DataTypes are compatible
|
Modifier and Type | Method and Description |
---|---|
DataType |
BeanProperty.getDataType()
Returns the data type of the bean property.
|
Modifier and Type | Method and Description |
---|---|
protected BeanProperty |
BeanClass.addProp(String propname,
DataType dataType,
double size,
boolean required) |
protected BeanProperty |
BeanClass.addProp(String propname,
DataType dataType,
double size,
boolean required,
boolean readOnly) |
protected BeanProperty |
BeanClass.addProp(String propname,
DataType dataType,
double size,
boolean required,
String controlType) |
protected BeanProperty |
BeanClass.addProp(String propname,
DataType dataType,
double size,
boolean required,
String controlType,
boolean readOnly) |
Constructor and Description |
---|
BeanProperty(String name,
DataType dataType,
double size,
boolean required)
Constructs a bean property definition
|
BeanProperty(String name,
DataType dataType,
double size,
boolean required,
String controlType)
Constructs a bean property definition
|
BeanProperty(String name,
DataType dataType,
double size,
boolean required,
String controlType,
boolean readOnly)
Constructs a bean property definition
|
BeanProperty(String name,
DataType dataType,
double size,
DataMode dataMode,
String controlType,
boolean readOnly)
Constructs a bean property definition
|
Modifier and Type | Field and Description |
---|---|
protected DataType |
DBTableColumn.type |
protected DataType |
DBCmdParam.type |
Modifier and Type | Method and Description |
---|---|
DataType |
DBDatabase.detectDataType(Object value)
Detects the DataType of a given value.
|
DataType |
DBView.DBViewColumn.getDataType() |
DataType |
DBTableColumn.getDataType()
Returns the data type.
|
DataType |
DBQueryColumn.getDataType() |
DataType |
DBCommandExpr.DBCmdColumn.getDataType()
Returns the data type of the DBColumnExpr object.
|
abstract DataType |
DBColumnExpr.getDataType()
Returns the data type of this column expression.
|
DataType |
DBCmdParam.getDataType()
Returns the data type of the command parameter
|
Modifier and Type | Method and Description |
---|---|
protected DBView.DBViewColumn |
DBView.addColumn(String columnName,
DataType dataType)
Adds a column to the view.
|
protected DBView.DBViewColumn |
DBView.addColumn(String columnName,
DataType dataType,
double size)
Adds a column to the view.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required)
Creates a new table column and adds it to the table's column list
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Class<?> enumType)
Creates a new table column with Enum-Options and adds it to the table's column list
This overload should be used for column containing enum values which have no default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Enum<?> enumValue)
Creates a new table column with Enum-Options and adds it to the table's column list
This overload should be used for column containing enum values which have a default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Object defValue)
Creates a new DBTableColumn object and adds it to the column collection.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Options options)
Creates a new table column with options and adds it to the table's column list
This overload should be used for column containing enum values which have no default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Options options,
Object defValue)
Creates a new table column with options and adds it to the table's column list
This overload should be used for column containing enum values which have a default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
DataMode dataMode)
Deprecated.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
DataMode dataMode,
Object defValue)
Deprecated.
|
DBCmdParam |
DBCommand.addParam(DataType type,
Object value)
Adds an command parameter which will be used in a prepared statement.
|
protected boolean |
DBDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql)
appends the data type of a column
|
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType)
Creates and returns a new DBFuncExpr object that will
convert the current column to the destination data type specified.
|
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType,
Object format)
Creates a new DBFuncExpr object that will convert
the current column to the destination data type specified.
|
protected DBTableColumn |
DBTable.crateAndAppendColumn(String columnName,
DataType type,
double size,
boolean required,
Object defValue)
Creates a new Column object and appends it to the column list
|
abstract String |
DBDatabaseDriver.getConvertPhrase(DataType destType,
DataType srcType,
Object format)
Returns a data type convertion phrase template for this driver
The returned template must contain a '?' |
protected DBColumnExpr |
DBColumnExpr.getExprFromPhrase(int phrase,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Creates a new DBFuncExpr from a given SQL-PRHASE and
optional additional parameters.
|
protected String |
DBExpr.getObjectValue(DataType dataType,
Object value,
long context,
String arraySep)
Returns the sql representation of a value.
|
Object |
DBDatabaseDriver.getResultValue(ResultSet rset,
int columnIndex,
DataType dataType)
Reads a single column value from the given JDBC ResultSet and returns a value object of desired data type.
|
protected String |
DBDatabaseDriver.getSQLNumberString(Object value,
DataType type)
encodes a numeric value for an SQL command string.
|
protected String |
DBDatabaseDriver.getSQLTextString(DataType type,
Object value)
encodes Text values for an SQL command string.
|
static Class<?> |
DBExpr.getValueClass(DataType type)
Returns the java class type for a given dataType
|
DBValueExpr |
DBDatabase.getValueExpr(Object value,
DataType dataType)
Creates and returns a value object for the given scalar value.
|
String |
DBDatabaseDriver.getValueString(Object value,
DataType type)
Creates a sql string for a given value.
|
<T> int |
DBDatabase.querySimpleList(Class<T> c,
String sqlCmd,
Object[] sqlParams,
DataType dataType,
Connection conn,
Collection<T> result,
int maxRows)
Adds the first column of a query result to a collection.
|
Object |
DBDatabase.querySingleValue(DBCommand cmd,
DataType dataType,
Connection conn)
Returns the value of the first row/column of a sql-query as an object.
|
Object |
DBDatabase.querySingleValue(String sqlCmd,
Object[] sqlParams,
DataType dataType,
Connection conn)
Returns the value of the first row/column of a sql-query as an object.
|
protected Number |
DBTableColumn.validateNumber(DataType type,
Number n) |
Constructor and Description |
---|
DBCmdParam(DBCommand cmd,
DataType type,
Object value)
Protected constructor used e.g. by DBCommand.addParam(...)
|
DBTableColumn(DBTable table,
DataType type,
String name,
double size,
boolean required,
boolean autoGenerated,
Object defValue)
Constructs a DBTableColumn object set the specified parameters to this object.
|
DBTableColumn(DBTable table,
DataType type,
String name,
double size,
DataMode dataMode,
Object defValue)
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
DerbyDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverDerby.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Modifier and Type | Field and Description |
---|---|
DataType |
DBScalarExpr.dataType |
protected DataType |
DBAbstractFuncExpr.dataType |
DataType |
DBValueExpr.type |
Modifier and Type | Method and Description |
---|---|
DataType |
DBValueExpr.getDataType()
Returns the data type of the DBColumnExpr object.
|
DataType |
DBScalarExpr.getDataType()
Returns the data type of the DBColumnExpr object.
|
DataType |
DBCountExpr.getDataType()
Returns the data type: DT_INTEGER.
|
DataType |
DBConcatExpr.getDataType()
Returns the data type:
TEXT |
DataType |
DBCaseWhenExpr.getDataType() |
DataType |
DBCaseExpr.getDataType() |
DataType |
DBCalcExpr.getDataType()
Returns the data type: DBDataType.DECIMAL.
|
DataType |
DBAliasExpr.getDataType()
Returns the data type of the DBColumnExpr object.
|
DataType |
DBAbstractFuncExpr.getDataType()
Returns the data type of the DBColumnExpr object.
|
Constructor and Description |
---|
DBAbstractFuncExpr(DBColumnExpr expr,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBConvertExpr(DBColumnExpr expr,
DataType dataType,
Object format)
Constructs a DBDecodeExpr
|
DBDecodeExpr(DBColumnExpr expr,
Map<?,?> valueMap,
Object elseExpr,
DataType dataType)
Constructs a DBDecodeExpr
|
DBFuncExpr(DBColumnExpr expr,
int phrase,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBFuncExpr(DBColumnExpr expr,
String template,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBScalarExpr(DBDatabase db,
String template,
Object[] params,
DataType dataType)
Constructs a new DBValueExpr object.
|
DBScalarExpr(DBDatabase db,
String template,
Object param,
DataType dataType)
Constructs a new DBValueExpr object.
|
DBValueExpr(DBDatabase db,
Object value,
DataType type)
Constructs a new DBValueExpr object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
H2DDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverH2.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Modifier and Type | Method and Description |
---|---|
String |
DBDatabaseDriverHSql.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MySQLDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverMySQL.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Modifier and Type | Method and Description |
---|---|
DataType |
OracleRowNumExpr.getDataType()
Returns the data type of the DBColumnExpr object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OracleDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverOracle.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Object |
DBDatabaseDriverOracle.getResultValue(ResultSet rset,
int columnIndex,
DataType dataType)
Gets the value of a sql ResultSet.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
PostgreDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverPostgreSQL.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Object |
DBDatabaseDriverPostgreSQL.getResultValue(ResultSet rset,
int columnIndex,
DataType dataType)
Postgre needs special handling for CLOBs and BLOB's
|
Modifier and Type | Method and Description |
---|---|
String |
DBDatabaseDriverSQLite.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
Object |
DBDatabaseDriverSQLite.getResultValue(ResultSet rset,
int columnIndex,
DataType dataType) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MSSqlDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
String |
DBDatabaseDriverMSSQL.getConvertPhrase(DataType destType,
DataType srcType,
Object format) |
protected String |
DBDatabaseDriverMSSQL.getSQLTextString(DataType type,
Object value) |
Modifier and Type | Method and Description |
---|---|
protected DataType |
DBModelChecker.getEmpireDataType(int sqlType) |
Modifier and Type | Method and Description |
---|---|
void |
DBModelErrorLogger.columnTypeMismatch(DBColumn col,
DataType type)
handle columnTypeMismatch errors
|
void |
DBModelErrorHandler.columnTypeMismatch(DBColumn col,
DataType type)
This method is called when the type of a column in the Empire-db
definition does not match the database.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.