public interface ColumnProperty extends Property
Modifier and Type | Interface and Description |
---|---|
static interface |
ColumnProperty.Builder
Provides setters for ColumnProperty properties
|
Property.ValueProvider
BIG_DECIMAL_ROUNDING_MODE, DATE_FORMAT, DEFAULT_FOREIGN_KEY_FETCH_DEPTH, DEFAULT_MAXIMUM_FRACTION_DIGITS, FOREIGN_KEY_FETCH_DEPTH, MAXIMUM_FRACTION_DIGITS, TIME_FORMAT, TIMESTAMP_FORMAT, WILDCARD_CHARACTER
Modifier and Type | Method and Description |
---|---|
boolean |
columnHasDefaultValue() |
java.lang.Object |
fetchValue(java.sql.ResultSet resultSet,
int index)
Fetches a value for this property from a ResultSet
|
java.lang.Object |
fromColumnValue(java.lang.Object value) |
java.lang.String |
getColumnName() |
int |
getColumnType() |
ForeignKeyProperty |
getForeignKeyProperty() |
int |
getPrimaryKeyIndex() |
ResultPacker<java.lang.Object> |
getResultPacker() |
boolean |
isAggregateColumn() |
boolean |
isDenormalized() |
boolean |
isForeignKeyProperty() |
boolean |
isGroupingColumn() |
boolean |
isPrimaryKeyProperty() |
boolean |
isSelectable() |
boolean |
isUpdatable()
Indicates whether or not this column is updatable
|
java.lang.Object |
toColumnValue(java.lang.Object value)
Translates the given value into a sql value, usually this is not required
but for certain types this may be necessary, such as boolean values
represented by a non-boolean data type in the underlying database
|
getBeanProperty, getCaption, getDateTimeFormatPattern, getDateTimeFormatter, getDefaultValue, getDescription, getEntityId, getFormat, getMax, getMaximumFractionDigits, getMaxLength, getMin, getMnemonic, getPreferredColumnWidth, getPropertyId, getType, getTypeClass, hasDefaultValue, is, is, isBigDecimal, isBoolean, isCharacter, isDate, isDecimal, isDouble, isHidden, isInteger, isLong, isNullable, isNumerical, isReadOnly, isString, isTemporal, isTime, isTimestamp, isType, validateType
java.lang.String getColumnName()
int getColumnType()
Property.getType()
but can differ when the database system does not have native support for the given data type,
such as booleanjava.lang.Object toColumnValue(java.lang.Object value)
value
- the value to translatejava.lang.Object fromColumnValue(java.lang.Object value)
value
- the SQL value Object to translate fromvalue
int getPrimaryKeyIndex()
boolean isPrimaryKeyProperty()
boolean isGroupingColumn()
boolean isAggregateColumn()
boolean isSelectable()
boolean isUpdatable()
boolean isDenormalized()
boolean isForeignKeyProperty()
ForeignKeyProperty getForeignKeyProperty()
boolean columnHasDefaultValue()
java.lang.Object fetchValue(java.sql.ResultSet resultSet, int index) throws java.sql.SQLException
resultSet
- the ResultSetindex
- the index of the column to fetchjava.sql.SQLException
- in case of an exceptionResultPacker<java.lang.Object> getResultPacker()