Uses of Class
org.apache.empire.data.DataType

Packages that use DataType
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.sqlserver This package contains classes necessary to support the Microsoft SQL-Server database system. 
 

Uses of DataType in org.apache.empire.data
 

Methods in org.apache.empire.data that return DataType
 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.
 

Uses of DataType in org.apache.empire.data.bean
 

Methods in org.apache.empire.data.bean that return DataType
 DataType BeanProperty.getDataType()
          Returns the data type of the bean property.
 

Methods in org.apache.empire.data.bean with parameters of type DataType
protected  BeanProperty BeanClass.addProp(String propname, DataType dataType, double size, boolean required)
           
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)
           
protected  BeanProperty BeanClass.addProp(String propname, DataType dataType, double size, DataMode dataMode)
           
protected  BeanProperty BeanClass.addProp(String propname, DataType dataType, double size, DataMode dataMode, String controlType)
           
 

Constructors in org.apache.empire.data.bean with parameters of type DataType
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, boolean readOnly)
          Constructs a bean property definition
BeanProperty(String name, DataType dataType, double size, DataMode dataMode, String controlType)
          Constructs a bean property definition
 

Uses of DataType in org.apache.empire.db
 

Fields in org.apache.empire.db declared as DataType
protected  DataType DBCmdParam.type
           
protected  DataType DBTableColumn.type
           
 

Methods in org.apache.empire.db that return DataType
protected  DataType DBColumnExpr.detectDataType(Object value)
          Detects the DataType of a given value.
abstract  DataType DBColumnExpr.getDataType()
          Returns the data type of this column expression.
 DataType DBCommandExpr.DBCmdColumn.getDataType()
          Returns the data type of the DBColumnExpr object.
 DataType DBView.DBViewColumn.getDataType()
           
 DataType DBCmdParam.getDataType()
          Returns the data type of the command parameter
 DataType DBQuery.DBQueryColumn.getDataType()
           
 DataType DBTableColumn.getDataType()
          Returns the data type.
 

Methods in org.apache.empire.db with parameters of type DataType
protected  DBView.DBViewColumn DBView.addColumn(String columnName, DataType dataType)
          Adds a column to the view.
 DBTableColumn DBTable.addColumn(String columnName, DataType type, double size, boolean required)
          Creates a new DBTableColumn object and adds it to the column collection.
 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, DataMode dataMode)
          Creates a new DBTableColumn object and adds it to the column collection.
 DBTableColumn DBTable.addColumn(String columnName, DataType type, double size, DataMode dataMode, Object defValue)
          Creates a new DBTableColumn object and adds it to the column collection.
 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.
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 '?' which will be replaced by a column expression.
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.
See DBExpr.getValueClass(DataType) for java class type mapping.
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 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(String sqlCmd, Object[] sqlParams, DataType dataType, Connection conn)
          Returns the value of the first row/column of a sql-query as an object.
 

Constructors in org.apache.empire.db with parameters of type DataType
DBCmdParam(DBCommand cmd, DataType type, Object value)
          Protected constructor used e.g.
DBTableColumn(DBTable table, DataType type, String name, double size, DataMode dataMode, Object defValue)
          Constructs a DBTableColumn object set the specified parameters to this object.
 

Uses of DataType in org.apache.empire.db.derby
 

Methods in org.apache.empire.db.derby with parameters of type DataType
protected  boolean DerbyDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
           
 String DBDatabaseDriverDerby.getConvertPhrase(DataType destType, DataType srcType, Object format)
           
 

Uses of DataType in org.apache.empire.db.expr.column
 

Fields in org.apache.empire.db.expr.column declared as DataType
protected  DataType DBAbstractFuncExpr.dataType
           
 DataType DBValueExpr.type
           
 

Methods in org.apache.empire.db.expr.column that return DataType
 DataType DBCountExpr.getDataType()
          Returns the data type: DT_INTEGER.
 DataType DBAliasExpr.getDataType()
          Returns the data type of the DBColumnExpr object.
 DataType DBConcatExpr.getDataType()
          Returns the data type: TEXT
 DataType DBCaseExpr.getDataType()
           
 DataType DBCalcExpr.getDataType()
          Returns the data type: DBDataType.DECIMAL.
 DataType DBValueExpr.getDataType()
          Returns the data type of the DBColumnExpr object.
 DataType DBAbstractFuncExpr.getDataType()
          Returns the data type of the DBColumnExpr object.
 

Constructors in org.apache.empire.db.expr.column with parameters of type DataType
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.
DBValueExpr(DBDatabase db, Object value, DataType type)
          Constructs a new DBValueExpr object.
 

Uses of DataType in org.apache.empire.db.h2
 

Methods in org.apache.empire.db.h2 with parameters of type DataType
protected  boolean H2DDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
           
 String DBDatabaseDriverH2.getConvertPhrase(DataType destType, DataType srcType, Object format)
           
 

Uses of DataType in org.apache.empire.db.hsql
 

Methods in org.apache.empire.db.hsql with parameters of type DataType
 String DBDatabaseDriverHSql.getConvertPhrase(DataType destType, DataType srcType, Object format)
           
 

Uses of DataType in org.apache.empire.db.mysql
 

Methods in org.apache.empire.db.mysql with parameters of type DataType
protected  boolean MySQLDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
           
 String DBDatabaseDriverMySQL.getConvertPhrase(DataType destType, DataType srcType, Object format)
           
 

Uses of DataType in org.apache.empire.db.oracle
 

Methods in org.apache.empire.db.oracle that return DataType
 DataType OracleRowNumExpr.getDataType()
          Returns the data type of the DBColumnExpr object.
 

Methods in org.apache.empire.db.oracle with parameters of type DataType
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.
 

Uses of DataType in org.apache.empire.db.postgresql
 

Methods in org.apache.empire.db.postgresql with parameters of type DataType
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
 

Uses of DataType in org.apache.empire.db.sqlserver
 

Methods in org.apache.empire.db.sqlserver with parameters of type DataType
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)
           
 



Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.