public static final class AuditProperty.DefaultAuditUserProperty extends java.lang.Object implements AuditProperty.AuditUserProperty
AuditProperty.AuditAction, AuditProperty.AuditTimeProperty, AuditProperty.AuditUserProperty, AuditProperty.DefaultAuditTimeProperty, AuditProperty.DefaultAuditUserProperty
ColumnProperty.Builder
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() |
boolean |
equals(java.lang.Object obj) |
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 object) |
AuditProperty.AuditAction |
getAuditAction() |
java.lang.String |
getBeanProperty() |
java.lang.String |
getCaption() |
java.lang.String |
getColumnName() |
int |
getColumnType() |
java.lang.String |
getDateTimeFormatPattern() |
java.time.format.DateTimeFormatter |
getDateTimeFormatter() |
java.lang.Object |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getEntityId() |
ForeignKeyProperty |
getForeignKeyProperty() |
java.text.Format |
getFormat() |
java.lang.Double |
getMax() |
int |
getMaximumFractionDigits() |
int |
getMaxLength() |
java.lang.Double |
getMin() |
java.lang.Character |
getMnemonic() |
int |
getPreferredColumnWidth() |
int |
getPrimaryKeyIndex() |
java.lang.String |
getPropertyId()
The property identifier, should be unique within an Entity.
|
ResultPacker<java.lang.Object> |
getResultPacker() |
int |
getType() |
java.lang.Class |
getTypeClass() |
protected static java.lang.Class |
getTypeClass(int sqlType) |
boolean |
hasDefaultValue() |
int |
hashCode() |
boolean |
is(Property property) |
boolean |
is(java.lang.String propertyId) |
boolean |
isAggregateColumn() |
boolean |
isBigDecimal() |
boolean |
isBoolean() |
boolean |
isCharacter() |
boolean |
isDate() |
boolean |
isDecimal() |
boolean |
isDenormalized() |
boolean |
isDouble() |
boolean |
isForeignKeyProperty() |
boolean |
isGroupingColumn() |
boolean |
isHidden() |
boolean |
isInteger() |
boolean |
isLong() |
boolean |
isNullable() |
boolean |
isNumerical() |
boolean |
isPrimaryKeyProperty() |
boolean |
isReadOnly()
Specifies whether or not this attribute is read only
|
boolean |
isSelectable() |
boolean |
isString() |
boolean |
isTemporal() |
boolean |
isTime() |
boolean |
isTimestamp() |
boolean |
isType(int type) |
boolean |
isUpdatable()
Indicates whether or not this column is updatable
|
protected void |
setReadOnly(boolean readOnly) |
protected void |
setUpdatable(boolean 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
|
java.lang.String |
toString() |
void |
validateType(java.lang.Object value) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuditAction
columnHasDefaultValue, fetchValue, fromColumnValue, getColumnName, getColumnType, getForeignKeyProperty, getPrimaryKeyIndex, getResultPacker, isAggregateColumn, isDenormalized, isForeignKeyProperty, isGroupingColumn, isPrimaryKeyProperty, isSelectable, isUpdatable, toColumnValue
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
public final AuditProperty.AuditAction getAuditAction()
getAuditAction
in interface AuditProperty
public final java.lang.String getColumnName()
getColumnName
in interface ColumnProperty
public final int getColumnType()
getColumnType
in interface ColumnProperty
Property.getType()
but can differ when the database system does not have native support for the given data type,
such as booleanpublic final java.lang.Object toColumnValue(java.lang.Object value)
toColumnValue
in interface ColumnProperty
value
- the value to translatepublic final java.lang.Object fromColumnValue(java.lang.Object object)
fromColumnValue
in interface ColumnProperty
object
- the SQL value Object to translate fromvalue
public final boolean columnHasDefaultValue()
columnHasDefaultValue
in interface ColumnProperty
public final boolean isUpdatable()
isUpdatable
in interface ColumnProperty
public boolean isDenormalized()
isDenormalized
in interface ColumnProperty
public final int getPrimaryKeyIndex()
getPrimaryKeyIndex
in interface ColumnProperty
public final boolean isGroupingColumn()
isGroupingColumn
in interface ColumnProperty
public final boolean isAggregateColumn()
isAggregateColumn
in interface ColumnProperty
public final boolean isSelectable()
isSelectable
in interface ColumnProperty
public final ForeignKeyProperty getForeignKeyProperty()
getForeignKeyProperty
in interface ColumnProperty
public final boolean isForeignKeyProperty()
isForeignKeyProperty
in interface ColumnProperty
public final boolean isPrimaryKeyProperty()
isPrimaryKeyProperty
in interface ColumnProperty
public final boolean isReadOnly()
isReadOnly
in interface Property
public final java.lang.String getCaption()
getCaption
in interface Property
public final java.lang.Object fetchValue(java.sql.ResultSet resultSet, int index) throws java.sql.SQLException
fetchValue
in interface ColumnProperty
resultSet
- the ResultSetindex
- the index of the column to fetchjava.sql.SQLException
- in case of an exceptionpublic final ResultPacker<java.lang.Object> getResultPacker()
getResultPacker
in interface ColumnProperty
protected void setUpdatable(boolean updatable)
public final java.lang.String toString()
toString
in class java.lang.Object
public final boolean is(java.lang.String propertyId)
public final boolean is(Property property)
public final boolean isNumerical()
isNumerical
in interface Property
public final boolean isTemporal()
isTemporal
in interface Property
public final boolean isDate()
public final boolean isTimestamp()
isTimestamp
in interface Property
public final boolean isTime()
public final boolean isCharacter()
isCharacter
in interface Property
public final boolean isString()
public final boolean isLong()
public final boolean isInteger()
public final boolean isDouble()
public final boolean isBigDecimal()
isBigDecimal
in interface Property
public final boolean isDecimal()
public final boolean isBoolean()
public final java.lang.String getPropertyId()
getPropertyId
in interface Property
public java.lang.String getEntityId()
getEntityId
in interface Property
public final int getType()
public final boolean isType(int type)
public final java.lang.String getBeanProperty()
getBeanProperty
in interface Property
public final boolean isHidden()
public boolean hasDefaultValue()
hasDefaultValue
in interface Property
public final java.lang.Object getDefaultValue()
getDefaultValue
in interface Property
Property.hasDefaultValue()
public boolean isNullable()
isNullable
in interface Property
public final int getMaxLength()
getMaxLength
in interface Property
public final java.lang.Double getMax()
public final java.lang.Double getMin()
public final int getPreferredColumnWidth()
getPreferredColumnWidth
in interface Property
public final java.lang.String getDescription()
getDescription
in interface Property
public final java.lang.Character getMnemonic()
getMnemonic
in interface Property
public final java.text.Format getFormat()
public final java.lang.String getDateTimeFormatPattern()
getDateTimeFormatPattern
in interface Property
public final java.time.format.DateTimeFormatter getDateTimeFormatter()
getDateTimeFormatter
in interface Property
public final int getMaximumFractionDigits()
getMaximumFractionDigits
in interface Property
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.Class getTypeClass()
getTypeClass
in interface Property
public void validateType(java.lang.Object value)
validateType
in interface Property
value
- the value to validateprotected void setReadOnly(boolean readOnly)
protected static java.lang.Class getTypeClass(int sqlType)
sqlType
- the type