Uses of Enum
org.apache.empire.data.DataType
Packages that use DataType
Package
Description
This package contains various common classes for error handling, specific data types and data type conversion.
This package contains interfaces for data and metadata handling.
This package contains implmentations of Empire's data and metadata interfaces for JavaBeans of Data Tranfer Objects (DTO's).
This package contains the core Empire-DB implementation classes.
This package contains SQL-generator classes for column expressions.
This package contains classes necessary to support the Apache Derby database system.
This package contains classes necessary to support the H2 database system.
This package contains classes necessary to support the HSQLDB database system.
This package contains classes necessary to support the MySQL database system.
This package contains classes necessary to support the Oracle database system.
This package contains classes necessary to support the PostgreSQL database system.
This package contains classes necessary to support the Microsoft SQL-Server database system.
-
Uses of DataType in org.apache.empire.commons
Methods in org.apache.empire.commons with parameters of type DataTypeModifier and TypeMethodDescriptionvoidAdds all these options to the xml elementValueUtils.convertToData(DataType dataType, Object value) Converts a value to a specific DataType The returned value is used for generating SQL statementsstatic ObjectObjectUtils.convertValue(DataType type, Object value) Converts a value to a specific DataType The returned value is used for generating SQL statementsstatic StringFormats an sqlCmd using the current SQL formatterConstructors in org.apache.empire.commons with parameters of type DataType -
Uses of DataType in org.apache.empire.data
Methods in org.apache.empire.data that return DataTypeModifier and TypeMethodDescriptionstatic DataTypeDataType.fromJavaType(Class<?> javaType) Returns the DataType from a given Java Type If the type is not mapped, then DataType.UNKNOWN is returnedColumnExpr.getDataType()Returns the column's data type.static DataTypeReturns 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.Methods in org.apache.empire.data with parameters of type DataTypeModifier and TypeMethodDescriptionbooleanDataType.isCompatible(DataType other) Returns whether or not two DataTypes are compatible -
Uses of DataType in org.apache.empire.data.bean
Methods in org.apache.empire.data.bean that return DataTypeModifier and TypeMethodDescriptionBeanProperty.getDataType()Returns the data type of the bean property.Methods in org.apache.empire.data.bean with parameters of type DataTypeModifier and TypeMethodDescriptionprotected final BeanPropertyprotected final BeanPropertyBeanClass.addProp(String propname, DataType dataType, double size, boolean required, boolean readOnly) protected final BeanPropertyBeanClass.addProp(String propname, DataType dataType, double size, boolean required, String controlType) protected BeanPropertyBeanClass.addProp(String propname, DataType dataType, double size, boolean required, String controlType, boolean readOnly) protected booleanBeanResult.isPropertyAcessible(Method[] methods, String property, DataType dataType) Checks if the property is accessible i.e. has a getter method on the beanTypeConstructors in org.apache.empire.data.bean with parameters of type DataTypeModifierConstructorDescriptionBeanProperty(String name, DataType dataType, double size, boolean required) Constructs a bean property definitionBeanProperty(String name, DataType dataType, double size, boolean required, String controlType) Constructs a bean property definitionBeanProperty(String name, DataType dataType, double size, boolean required, String controlType, boolean readOnly) Constructs a bean property definition -
Uses of DataType in org.apache.empire.db
Fields in org.apache.empire.db declared as DataTypeModifier and TypeFieldDescriptionprotected final DataTypeDBView.DBViewColumn.dataTypeprotected DataTypeDBCmdParam.typeprotected DataTypeDBTableColumn.typeMethods in org.apache.empire.db that return DataTypeModifier and TypeMethodDescriptionDBDatabase.detectDataType(Object value) Detects the DataType of a given value.DBCmdParam.getDataType()Returns the data type of the command parameterabstract DataTypeDBColumnExpr.getDataType()Returns the data type of this column expression.DBCombinedCmd.getDataType()DBCommand.getDataType()DBCommandExpr.DBCmdColumn.getDataType()Returns the data type of the DBColumnExpr object.abstract DataTypeDBCommandExpr.getDataType()Returns the DataType selected by this command if only one column is returned If the command has more than one select expression DataType.UNKNOWN will be returnedDBQueryColumn.getDataType()DBTableColumn.getDataType()Returns the data type.DBView.DBViewColumn.getDataType()Methods in org.apache.empire.db with parameters of type DataTypeModifier and TypeMethodDescriptionvoidfinal DBTableColumnCreates a new table column and adds it to the table's column listfinal DBTableColumnDBTable.addColumn(String columnName, DataType type, double size, boolean required, Class<? extends Enum<?>> 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.final DBTableColumnDBTable.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.final DBTableColumnCreates a new DBTableColumn object and adds it to the column collection.final DBTableColumnCreates 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.final DBTableColumnDBTable.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.protected final DBView.DBViewColumnAdds a column to the view.protected final DBView.DBViewColumnAdds a column to the view.Adds an command parameter which will be used in a prepared statement.final DBColumnExprCreates and returns a function from an sql template The template may consist of the following placeholders: ?protected booleanDBDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) appends the data type of a columnprotected voidDBSQLBuilder.appendSimpleValue(DataType type, Object value) Returns a sql string for a given value.protected voidDBSQLBuilder.appendStringLiteral(DataType type, Object value) encodes Text values for an SQL command string.voidDBSQLBuilder.appendTemplate(String template, Object[] values, DataType[] dataTypes, long context, String arraySep) Expands an SQL template and adds it to the SQL commandvoidDBSQLBuilder.appendValue(DataType type, Object value) Appends the SQL representation of a valuefinal voidDBSQLBuilder.appendValue(DataType dataType, Object value, long context) Appends the SQL representation of a valuevoidDBSQLBuilder.appendValue(DataType dataType, Object value, long context, String arraySep) Appends the SQL representation of a valuefinal DBConvertExprCreates and returns a new DBFuncExpr object that will convert the current column to the destination data type specified.Creates a new DBFuncExpr object that will convert the current column to the destination data type specified.protected DBTableColumnDBTable.createAndAppendColumn(String columnName, DataType type, double size, boolean required, Object defValue) Creates a new Column object and appends it to the column listfinal DBColumnExprCreates and returns a function from an sql template The template may consist of the following placeholders: ?protected DBFuncExprDBColumnExpr.getExprFromPhrase(DBSqlPhrase phrase, Object[] params, DataType dataType) Creates a new DBFuncExpr from a given SQL-PRHASE and optional additional parameters.protected StringDBSQLBuilder.getNumberString(Object value, DataType type) encodes a numeric value for an SQL command string.DBDatabase.getValueExpr(Object value, DataType dataType) Creates and returns a value object for the given scalar value.<T> intDBUtils.querySimpleList(Class<T> c, String sqlCmd, Object[] sqlParams, DataType dataType, Collection<T> result, int maxRows) Adds the first column of a query result to a collection.DBUtils.querySingleValue(String sqlCmd, Object[] sqlParams, DataType dataType, boolean failOnNoResult) Returns the value of the first row/column of a sql-query as an object.protected NumberDBDatabase.validateNumber(DBTableColumn column, DataType type, Number n) Constructors in org.apache.empire.db with parameters of type DataTypeModifierConstructorDescriptionprotectedDBCmdParam(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. -
Uses of DataType in org.apache.empire.db.expr.column
Fields in org.apache.empire.db.expr.column declared as DataTypeModifier and TypeFieldDescriptionprotected final DataTypeDBAbstractFuncExpr.dataTypefinal DataTypeDBScalarExpr.dataTypefinal DataTypeDBValueExpr.typeMethods in org.apache.empire.db.expr.column that return DataTypeModifier and TypeMethodDescriptionDBAbstractFuncExpr.getDataType()Returns the data type of the DBColumnExpr object.DBAliasExpr.getDataType()Returns the data type of the DBColumnExpr object.DBCalcExpr.getDataType()Returns the data type: DBDataType.DECIMAL.DBCaseExpr.getDataType()DBCmdResultExpr.getDataType()DBConcatExpr.getDataType()Returns the data type:VARCHARDBCountExpr.getDataType()Returns the data type: DT_INTEGER.DBParenthesisExpr.getDataType()Returns the data type of the DBColumnExpr object.DBScalarExpr.getDataType()Returns the data type of the DBColumnExpr object.DBValueExpr.getDataType()Returns the data type of the DBColumnExpr object.DBVarArgsFuncExpr.getDataType()Constructors in org.apache.empire.db.expr.column with parameters of type DataTypeModifierConstructorDescriptionDBAbstractFuncExpr(DBColumnExpr expr, 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 DBDecodeExprDBDecodeExpr(DBColumnExpr expr, Map<?, ?> valueMap, Object elseExpr, DataType dataType) Constructs a DBDecodeExprDBFuncExpr(DBColumnExpr expr, String template, Object[] params, boolean isAggregate, DataType dataType) Constructs a new DBFuncExpr object set the specified parameters to this object.DBFuncExpr(DBColumnExpr expr, DBSqlPhrase phrase, Object[] params, 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) Deprecated.please use DBDatabase.getValueExpr(...)DBVarArgsFuncExpr(DBDatabase db, DataType dataType, String template, DBColumnExpr... cols) -
Uses of DataType in org.apache.empire.db.validation
Methods in org.apache.empire.db.validation that return DataTypeModifier and TypeMethodDescriptionprotected DataTypeDBModelParser.getEmpireDataType(int sqlType) Methods in org.apache.empire.db.validation with parameters of type DataTypeModifier and TypeMethodDescriptionvoidDBModelErrorHandler.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.voidDBModelErrorLogger.columnTypeMismatch(DBColumn col, DataType type) handle columnTypeMismatch errorsprotected doubleDBModelParser.getColumnSize(DataType empireType, ResultSet rs) -
Uses of DataType in org.apache.empire.dbms
Methods in org.apache.empire.dbms with parameters of type DataTypeModifier and TypeMethodDescriptionDBMSHandler.getConvertPhrase(DataType destType, DataType srcType, Object format) Returns a data type convertion phrase template for this dbms
The returned template must contain a '?'DBMSHandler.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.DBMSHandlerBase.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.
This gives the dbms the opportunity to change the value i.e. to simulate missing data types with other types.DBMSHandler.querySingleValue(String sqlCmd, Object[] sqlParams, DataType dataType, Connection conn) Executes an select SQL-command that returns only one scalar value if no row are returned by the query then ObjectUtils.NO_VALUE is returnedDBMSHandlerBase.querySingleValue(String sqlCmd, Object[] sqlParams, DataType dataType, Connection conn) Query a single value -
Uses of DataType in org.apache.empire.dbms.derby
Methods in org.apache.empire.dbms.derby with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanDerbyDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) DBMSHandlerDerby.getConvertPhrase(DataType destType, DataType srcType, Object format) -
Uses of DataType in org.apache.empire.dbms.h2
Methods in org.apache.empire.dbms.h2 with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanH2DDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) DBMSHandlerH2.getConvertPhrase(DataType destType, DataType srcType, Object format) -
Uses of DataType in org.apache.empire.dbms.hsql
Methods in org.apache.empire.dbms.hsql with parameters of type DataTypeModifier and TypeMethodDescriptionDBMSHandlerHSql.getConvertPhrase(DataType destType, DataType srcType, Object format) -
Uses of DataType in org.apache.empire.dbms.mysql
Methods in org.apache.empire.dbms.mysql with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanMySQLDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected doubleMySQLDBModelParser.getColumnSize(DataType empireType, ResultSet rs) DBMSHandlerMySQL.getConvertPhrase(DataType destType, DataType srcType, Object format) -
Uses of DataType in org.apache.empire.dbms.oracle
Methods in org.apache.empire.dbms.oracle that return DataTypeModifier and TypeMethodDescriptionOracleRowNumExpr.getDataType()Returns the data type of the DBColumnExpr object.Methods in org.apache.empire.dbms.oracle with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanOracleDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) DBMSHandlerOracle.getConvertPhrase(DataType destType, DataType srcType, Object format) DBMSHandlerOracle.getResultValue(ResultSet rset, int columnIndex, DataType dataType) Gets the value of a sql ResultSet. -
Uses of DataType in org.apache.empire.dbms.postgresql
Methods in org.apache.empire.dbms.postgresql that return DataTypeModifier and TypeMethodDescriptionPostgresBoolAndOrExpr.getDataType()PostgresIntervalExpr.getDataType()Methods in org.apache.empire.dbms.postgresql with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanPostgresDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) DBMSHandlerPostgreSQL.getConvertPhrase(DataType destType, DataType srcType, Object format) DBMSHandlerPostgreSQL.getResultValue(ResultSet rset, int columnIndex, DataType dataType) Postgre needs special handling for CLOBs and BLOB'sConstructors in org.apache.empire.dbms.postgresql with parameters of type DataTypeModifierConstructorDescriptionPostgresFuncExpr(DBColumnExpr expr, PostgresSqlPhrase phrase, Object[] params, DataType dataType) -
Uses of DataType in org.apache.empire.dbms.sqlite
Methods in org.apache.empire.dbms.sqlite with parameters of type DataTypeModifier and TypeMethodDescriptionDBMSHandlerSQLite.getConvertPhrase(DataType destType, DataType srcType, Object format) DBMSHandlerSQLite.getResultValue(ResultSet rset, int columnIndex, DataType dataType) -
Uses of DataType in org.apache.empire.dbms.sqlserver
Methods in org.apache.empire.dbms.sqlserver with parameters of type DataTypeModifier and TypeMethodDescriptionprotected booleanMSSqlDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected voidDBMSHandlerMSSQL.DBSQLBuilderMSSQL.appendStringLiteral(DataType type, Object value) DBMSHandlerMSSQL.getConvertPhrase(DataType destType, DataType srcType, Object format)