|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.orm.hibernate.cfg.PropertyConfig
class PropertyConfig extends java.lang.Object
Custom mapping for a single domain property. Note that a property can have multiple columns via a component or a user type.
Property Summary | |
---|---|
java.lang.Integer |
batchSize
The batch size used for lazy loading |
CacheConfig |
cache
|
java.lang.String |
cascade
Cascading strategy for this property. |
java.util.List |
columns
|
org.hibernate.FetchMode |
fetch
The fetch strategy for this property. |
java.lang.String |
formula
|
boolean |
ignoreNotFound
Whether to ignore ObjectNotFoundException |
PropertyConfig |
indexColumn
The column used to produce the index for index based collections (lists and maps) |
boolean |
insertable
Whether or not this is column is insertable by hibernate |
JoinTable |
joinTable
|
boolean |
lazy
|
java.lang.String |
order
The default sort order |
java.lang.String |
sort
The default sort property name |
java.lang.Object |
type
The Hibernate type or user type of the property. |
java.util.Properties |
typeParams
The parameters for the property that can be used to configure a Hibernate ParameterizedType implementation. |
boolean |
updateable
Whether or not this column is updateable by hibernate |
Method Summary | |
---|---|
java.lang.String
|
getColumn()
Shortcut to get the column name for this property. |
java.lang.String
|
getEnumType()
|
java.lang.String
|
getIndex()
Shortcut to get the index setting for this property's column. |
int
|
getLength()
Shortcut to get the length of this property's column. |
int
|
getPrecision()
Shortcut to get the precision of this property's column. |
int
|
getScale()
Shortcut to get the scale of this property's column. |
java.lang.String
|
getSqlType()
Shortcut to get the SQL type of the corresponding column. |
boolean
|
isUnique()
Shortcut to determine whether the property's column is configured to be unique. |
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
java.lang.Integer batchSize
CacheConfig cache
java.lang.String cascade
java.util.List columns
org.hibernate.FetchMode fetch
java.lang.String formula
boolean ignoreNotFound
PropertyConfig indexColumn
boolean insertable
JoinTable joinTable
boolean lazy
java.lang.String order
java.lang.String sort
java.lang.Object type
java.util.Properties typeParams
boolean updateable
Method Detail |
---|
java.lang.String getColumn()
java.lang.String getEnumType()
java.lang.String getIndex()
int getLength()
int getPrecision()
int getScale()
java.lang.String getSqlType()
boolean isUnique()
java.lang.String toString()
Groovy Documentation