Package | Description |
---|---|
org.sormula.translator |
Classes that provide mapping between columns and Java class members.
|
org.sormula.translator.standard |
Classes that convert values from standard Java data types to a prepared statement and
to convert from result set to standard Java data types.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBlobColumnTranslator<R,T>
Base class for creating custom column translators for fields stored as SQL BLOB.
|
class |
AbstractColumnTranslator<R,T>
Common functionality for most translators.
|
Modifier and Type | Method and Description |
---|---|
ColumnTranslator<R> |
ColumnsTranslator.getColumnTranslator(java.lang.String fieldName)
Gets a column translator associated with a field.
|
ColumnTranslator<R> |
RowTranslator.getIdentityColumnTranslator()
Column translator used to set the value of a row column that is the identity column
for row.
|
static ColumnTranslator<?> |
AbstractColumnTranslator.newInstance(java.lang.Class<? extends ColumnTranslator> columnTranslatorClass,
RowField<?,?> rowField,
java.lang.String columnName)
Factory method for creating a new instance of a column translator for a row field.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ColumnTranslator<R>> |
ColumnsTranslator.getColumnTranslatorList()
Gets list of all column translators used by this translator.
|
Modifier and Type | Method and Description |
---|---|
void |
OrderByTranslator.addColumnTranslator(ColumnTranslator<R> c)
Adds column translator with empty string qualifier.
|
void |
ColumnsTranslator.addColumnTranslator(ColumnTranslator<R> c)
Adds a column translator to use in
ColumnsTranslator.read(ResultSet, int, Object) and
ColumnsTranslator.write(PreparedStatement, int, Object) . |
void |
AbstractWhereTranslator.addColumnTranslator(ColumnTranslator<R> c)
Adds translator with equal as operator and "AND" as boolean operator.
|
void |
OrderByTranslator.addColumnTranslator(ColumnTranslator<R> c,
java.lang.String qualifier)
Adds translator with a specific qualifier.
|
void |
AbstractWhereTranslator.addColumnTranslator(ColumnTranslator<R> c,
java.lang.String booleanOperator,
java.lang.String comparisonOperator,
java.lang.String operand)
Adds translator with a specific sql comparison operator and boolean operator.
|
protected boolean |
ColumnsTranslator.isIncluded(ColumnTranslator<R> columnTranslator)
Tests if a column should be used.
|
Modifier and Type | Method and Description |
---|---|
static ColumnTranslator<?> |
AbstractColumnTranslator.newInstance(java.lang.Class<? extends ColumnTranslator> columnTranslatorClass,
RowField<?,?> rowField,
java.lang.String columnName)
Factory method for creating a new instance of a column translator for a row field.
|
Modifier and Type | Class and Description |
---|---|
class |
BooleanYNColumnTranslator<R>
Translates a boolean field using
PreparedStatement.setString(int, String) and ResultSet.getString(int) . |
class |
StandardColumnTranslator<R,T>
Delegates to translator based upon field type.
|