org.jminor.framework.domain
Interface Property.BooleanProperty

All Superinterfaces:
Attribute, Column, Property, Property.ColumnProperty, Property.SearchableProperty
Enclosing interface:
Property

public static interface Property.BooleanProperty
extends Property.ColumnProperty

A boolean property, with special handling since different values are used for representing boolean values in different systems


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jminor.framework.domain.Property
Property.AuditProperty, Property.AuditTimeProperty, Property.AuditUserProperty, Property.BlobProperty, Property.BooleanProperty, Property.ColumnProperty, Property.DenormalizedProperty, Property.DenormalizedViewProperty, Property.DerivedProperty, Property.ForeignKeyProperty, Property.MirrorProperty, Property.PrimaryKeyProperty, Property.SearchableProperty, Property.SubqueryProperty, Property.TransientProperty, Property.ValueListProperty
 
Method Summary
 int getColumnType()
           
 Boolean toBoolean(Object object)
           
 String toSQLString(Boolean value)
           
 Object toSQLValue(Boolean value)
          Translates the given Boolean value into a sql value
 
Methods inherited from interface org.jminor.framework.domain.Property.ColumnProperty
setColumnHasDefaultValue, setSearchable, setSelectIndex, setUpdatable
 
Methods inherited from interface org.jminor.framework.domain.Property
getDefaultValue, getEntityID, getFormat, getMax, getMaximumFractionDigits, getMaxLength, getMin, getMnemonic, getParentProperty, getPreferredColumnWidth, getPropertyID, getType, hasParentProperty, is, is, isBoolean, isCharacter, isDate, isDouble, isHidden, isInteger, isNullable, isNumerical, isReadOnly, isString, isTime, isTimestamp, isType, setDefaultValue, setDescription, setEntityID, setFormat, setHidden, setMax, setMaximumFractionDigits, setMaxLength, setMin, setMnemonic, setNullable, setParentProperty, setPreferredColumnWidth, setReadOnly, setUseNumberFormatGrouping
 
Methods inherited from interface org.jminor.common.model.Attribute
getCaption, getDescription, getTypeClass, hasDescription
 
Methods inherited from interface org.jminor.common.model.Column
columnHasDefaultValue, getColumnName, getSelectIndex, getType, isDenormalized, isSearchable, isUpdatable
 

Method Detail

getColumnType

int getColumnType()
Returns:
the data type of the underlying column

toBoolean

Boolean toBoolean(Object object)
Parameters:
object - the Object value to translate into a Boolean value
Returns:
the Boolean value of object

toSQLString

String toSQLString(Boolean value)
Parameters:
value - the Boolean value to translate into a sql string value
Returns:
the sql string value of value

toSQLValue

Object toSQLValue(Boolean value)
Translates the given Boolean value into a sql value

Parameters:
value - the value to translate
Returns:
the actual value used to represent the given boolean value