Uses of Interface
org.apache.empire.data.ColumnExpr
Packages that use ColumnExpr
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 Oracle database system.
This package contains classes necessary to support the PostgreSQL database system.
-
Uses of ColumnExpr in org.apache.empire.commons
Methods in org.apache.empire.commons with type parameters of type ColumnExprModifier and TypeMethodDescriptionstatic <T extends ColumnExpr>
TColumnUtils.setMinMaxValue(T columnExpr, Number minValue, Number maxValue) Set the minimum and maximum values of a columnExprstatic <T extends ColumnExpr>
TColumnUtils.setNumberFormat(T columnExpr, String numberType, boolean groupSeparator) Sets the number format options for a columnExprMethods in org.apache.empire.commons with parameters of type ColumnExprModifier and TypeMethodDescriptionstatic booleanObjectUtils.compareEqual(ColumnExpr expr, ColumnExpr other) Compares two ColumnExpr for equalitystatic <T> TObjectUtils.convertColumnValue(ColumnExpr column, Object value, Class<T> valueType) Converts a column value to a Java type<T> TValueUtils.convertColumnValue(ColumnExpr column, Object value, Class<T> vt) Converts a column value to a Java type Allows custom conversions and handling of special cases.static StringObjectUtils.formatColumnValue(ColumnExpr column, Object value, Locale locale) Returns a formatted column valueValueUtils.formatColumnValue(ColumnExpr column, Object value, Locale locale) formats a column value into a stringColumnUtils.getColumnAttribute(ColumnExpr columnExpr, String name) Returns the column attributeintColumnUtils.getColumnMaxLength(ColumnExpr columnExpr) ColumnUtils.getColumnNumberFormat(ColumnExpr columnExpr, Locale locale) doubleColumnUtils.getColumnSize(ColumnExpr columnExpr) Return the size of the column of 0.0d if unknownstatic intColumnUtils.getMaxLength(ColumnExpr columnExpr) Return the maximum character length of a columnExprstatic NumberColumnUtils.getMaxValue(ColumnExpr columnExpr) Returns the maximum allowed valuestatic intColumnUtils.getMinLength(ColumnExpr columnExpr) Returns the minimum length, usually 0static NumberColumnUtils.getMinValue(ColumnExpr columnExpr) Returns the maximum allowed value or 0 if not setstatic NumberFormatColumnUtils.getNumberFormat(ColumnExpr columnExpr, Locale locale) Returns the number format for a particular columnExprvoidColumnUtils.setColumnNumberFormat(ColumnExpr columnExpr, String numberType, boolean groupSeparator) -
Uses of ColumnExpr in org.apache.empire.data
Subinterfaces of ColumnExpr in org.apache.empire.dataModifier and TypeInterfaceDescriptioninterfaceThe column interface provides methods for accessing metadata that is only relevant for updating records.Methods in org.apache.empire.data with type parameters of type ColumnExprModifier and TypeMethodDescription<T extends ColumnExpr>
TColumnExpr.setAttribute(String name, Object value) Sets the value of a column attribute.Methods in org.apache.empire.data that return ColumnExprModifier and TypeMethodDescriptionRecordData.getColumn(int i) returns the column expression for a given column This is the reverse operation of getFieldIndex()Methods in org.apache.empire.data with parameters of type ColumnExprModifier and TypeMethodDescriptionRecordData.get(ColumnExpr column) returns the record value for a particular column<V> VRecordData.get(ColumnExpr column, Class<V> valueType) returns the record value for a particular columnintRecordData.getFieldIndex(ColumnExpr column) returns the index of the given column expression Indexed operations provide better performance for bulk processingbooleanRecordData.isNull(ColumnExpr column) checks if the record contains no value (null) for the given columnMethod parameters in org.apache.empire.data with type arguments of type ColumnExprModifier and TypeMethodDescriptionintRecordData.setBeanProperties(Object bean, Collection<? extends ColumnExpr> ignoreList) copies all field values into a static Java Bean. -
Uses of ColumnExpr in org.apache.empire.data.bean
Classes in org.apache.empire.data.bean that implement ColumnExprModifier and TypeClassDescriptionclassBeanObject This class defines Metadata for a single property.Methods in org.apache.empire.data.bean with type parameters of type ColumnExprModifier and TypeMethodDescription<T extends ColumnExpr>
TBeanProperty.setAttribute(String name, Object value) Sets an attribute for this columnMethods in org.apache.empire.data.bean with parameters of type ColumnExprModifier and TypeMethodDescriptionprotected StringBeanRecordProxy.formatValue(ColumnExpr column, Object value) Convert a non-string value to a stringfinal ObjectBeanRecordProxy.get(ColumnExpr column) <V> VBeanRecordProxy.get(ColumnExpr column, Class<V> valueType) protected final ObjectBeanRecordProxy.getBeanProperty(Object bean, ColumnExpr column) intBeanRecordProxy.getFieldIndex(ColumnExpr column) final StringBeanRecordProxy.getText(ColumnExpr column) Returns the value of a column as a formatted text This converts the value to a string if necessary and performs an options lookup To customize conversion please override convertToString()booleanBeanRecordProxy.isNull(ColumnExpr column) Method parameters in org.apache.empire.data.bean with type arguments of type ColumnExprModifier and TypeMethodDescriptionintBeanRecordProxy.setBeanProperties(Object bean, Collection<? extends ColumnExpr> ignoreList) -
Uses of ColumnExpr in org.apache.empire.data.list
Fields in org.apache.empire.data.list declared as ColumnExprMethods in org.apache.empire.data.list that return ColumnExprMethods in org.apache.empire.data.list with parameters of type ColumnExprModifier and TypeMethodDescriptionprotected StringDataListHead.formatValue(ColumnExpr column, Object value) Convert a non-string value to a string Overwrite this function in order to provide a localeDataListEntry.get(ColumnExpr column) Returns a data value for the desired column .final <V> VDataListEntry.get(ColumnExpr column, Class<V> valueType) returns the record value for a particular columnfinal Object[]DataListEntry.getArray(ColumnExpr... columns) Returns an array of values for the given column expressionsfinal booleanDataListEntry.getBoolean(ColumnExpr column) Returns a data value for the desired column.intDataListHead.getColumnIndex(ColumnExpr column) final DateDataListEntry.getDate(ColumnExpr column) Returns the value as as a java.util.Date object The data value is converted to a Date if necessary.final BigDecimalDataListEntry.getDecimal(ColumnExpr column) Returns a data value for the desired column.final doubleDataListEntry.getDouble(ColumnExpr column) Returns a data value for the desired column.final <T extends Enum<?>>
TDataListEntry.getEnum(ColumnExpr column, Class<T> enumType) Returns the value of a field as an enum For numeric columns the value is assumed to be an ordinal of the enumeration item For non numeric columns the value is assumed to be the name of the enumeration itemintDataListEntry.getFieldIndex(ColumnExpr column) final intDataListEntry.getInt(ColumnExpr column) Returns a data value for the desired column.final LocalDateDataListEntry.getLocalDate(ColumnExpr column) Returns a data value for the desired column.final LocalDateTimeDataListEntry.getLocalDateTime(ColumnExpr column) Returns a data value for the desired column.final longDataListEntry.getLong(ColumnExpr column) Returns a data value for the desired column.final StringDataListEntry.getString(ColumnExpr column) Returns a data value for the desired column.DataListEntry.getText(ColumnExpr column) Returns the value of a column as a formatted text This converts the value to a string if necessary and performs an options lookup To customize conversion please override convertToString()final TimestampDataListEntry.getTimestamp(ColumnExpr column) Returns the value as as a java.sql.Timestamp objectbooleanDataListEntry.hasField(ColumnExpr column) final booleanDataListEntry.isNull(ColumnExpr column) Checks whether or not the value for the given column is null.booleanDataListEntry.isZero(ColumnExpr column) Returns true if a numeric value is Zero For numeric columns only!voidDataListEntry.modifyValue(ColumnExpr col, Object value) Modifies a particular valueprotected voidDataListEntry.setBeanProperty(ColumnExpr column, Object bean, Object value) Set a single property value on a java bean objectMethod parameters in org.apache.empire.data.list with type arguments of type ColumnExprModifier and TypeMethodDescriptionintDataListEntry.setBeanProperties(Object bean, Collection<? extends ColumnExpr> ignoreList) Injects the current field values into a java bean.Constructors in org.apache.empire.data.list with parameters of type ColumnExprModifierConstructorDescriptionDataListHead(ColumnExpr[] columns) Constructs a DataListHead based on an DataListEntry constructor -
Uses of ColumnExpr in org.apache.empire.db
Classes in org.apache.empire.db that implement ColumnExprModifier and TypeClassDescriptionclassThis is the base class for all database columns that have a physical representation.classThis class is the base class for all expressions that represent a single value.protected static classThis class wraps a column of sql command in a special command column object.classclassThis class represent one column of a table.static classDBViewColumnMethods in org.apache.empire.db with type parameters of type ColumnExprModifier and TypeMethodDescription<T extends ColumnExpr>
TDBColumnExpr.setAttribute(String name, Object value) Sets the value of a column attribute.Methods in org.apache.empire.db with parameters of type ColumnExprModifier and TypeMethodDescriptionprotected intDBReader.findFieldIndex(ColumnExpr column) finds the field Index of a given column expression Internally used as helper for getFieldIndex()protected StringDBRecordData.formatValue(ColumnExpr column, Object value) Convert a non-string value to a stringDBRecordData.get(ColumnExpr column) Returns a data value for the desired column .final <V> VDBRecordData.get(ColumnExpr column, Class<V> valueType) returns the record value for a particular columnfinal Object[]DBRecordData.getArray(ColumnExpr... columns) Returns an array of values for the given column expressionsfinal booleanDBRecordData.getBoolean(ColumnExpr column) Returns a data value for the desired column.intDBQuery.getColumnIndex(ColumnExpr columnExpr) Gets the index of a particular column expression.intDBRowSet.getColumnIndex(ColumnExpr columnExpr) Gets the index of a particular column expression.final DateDBRecordData.getDate(ColumnExpr column) Returns the value as as a java.util.Date object The data value is converted to a Date if necessary.final DateDBRecordData.getDateTime(ColumnExpr column) Deprecated.final BigDecimalDBRecordData.getDecimal(ColumnExpr column) Returns a data value for the desired column.final doubleDBRecordData.getDouble(ColumnExpr column) Returns a data value for the desired column.final <T extends Enum<?>>
TDBRecordData.getEnum(ColumnExpr column, Class<T> enumType) Returns the value of a field as an enum For numeric columns the value is assumed to be an ordinal of the enumeration item For non numeric columns the value is assumed to be the name of the enumeration itemintDBReader.getFieldIndex(ColumnExpr column) Returns the index value by a specified DBColumnExpr object.intDBRecordBase.getFieldIndex(ColumnExpr column) Returns the index value by a specified DBColumnExpr object.abstract intDBRecordData.getFieldIndex(ColumnExpr column) final intDBRecordData.getInt(ColumnExpr column) Returns a data value for the desired column.final LocalDateDBRecordData.getLocalDate(ColumnExpr column) Returns a data value for the desired column.final LocalDateTimeDBRecordData.getLocalDateTime(ColumnExpr column) Returns a data value for the desired column.final longDBRecordData.getLong(ColumnExpr column) Returns a data value for the desired column.DBColumnExpr.getNumberType(ColumnExpr columnExpr) Returns the number type assigned to this column expressionintDBQuery.getQueryColumnIndex(ColumnExpr columnExpr) Returns the index of a column in the underlying queryfinal StringDBRecordData.getString(ColumnExpr column) Returns a data value for the desired column.DBRecordData.getText(ColumnExpr column) Returns the value of a column as a formatted text This converts the value to a string if necessary and performs an options lookup To customize conversion please override convertToString()final TimestampDBRecordData.getTimestamp(ColumnExpr column) Returns the value as as a java.sql.Timestamp objectfinal booleanDBRecordData.isNull(ColumnExpr column) Checks whether or not the value for the given column is null.booleanDBRecordData.isZero(ColumnExpr column) Returns true if a numeric value is Zero For numeric columns only!protected voidDBRecordData.setBeanProperty(ColumnExpr column, Object bean, Object value) Set a single property value on a java bean objectMethod parameters in org.apache.empire.db with type arguments of type ColumnExprModifier and TypeMethodDescriptionintDBRecordData.setBeanProperties(Object bean, Collection<? extends ColumnExpr> ignoreList) Injects the current field values into a java bean. -
Uses of ColumnExpr in org.apache.empire.db.expr.column
Classes in org.apache.empire.db.expr.column that implement ColumnExprModifier and TypeClassDescriptionclassThis implements some basic functionality for SQL functions based on a column expressionclassThis class allows column renaming in SQL.classThis class is used for performing calculations in SQL
It handles the mathematical operations ("+", "-", "*", "/") for the current column.classThis class represents a SQL case expression like "case when ?classThis class is used to create a SQL CASE constraint in the form of case {expr} when {value1} then {result1} when {value2} then {result2} ...classThis class is used to create a SQL CASE constraint in the form of case when {cond1} then {result1} when {cond2} then {result2} ...classclassclassThis class is used for performing string concatenation in SQLclassDBConcatExpressionclassThis class is used to convert a value to a different data type.classThis class is used to add the "count" statement to the SQL-Command.classThis class is used to decode a set of keys to the corresponding target values.classThis class is used for performing various SQL functions on a column or column expression.classThis class allows column renaming in SQL.classThis class is used for declaring scalar functions in SQL (like e.g. random).classThis class is used for declaring constant values in SQL.class -
Uses of ColumnExpr in org.apache.empire.dbms.oracle
Classes in org.apache.empire.dbms.oracle that implement ColumnExprModifier and TypeClassDescriptionclassimplements a column expression for the Oracle rownum function -
Uses of ColumnExpr in org.apache.empire.dbms.postgresql
Classes in org.apache.empire.dbms.postgresql that implement ColumnExprModifier and TypeClassDescriptionclassclassclass