public class DataBindingUtils
extends java.lang.Object
| Constructor and Description |
|---|
DataBindingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assignBidirectionalAssociations(java.lang.Object object,
java.util.Map source,
org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass)
Associations both sides of any bidirectional relationships found in the object and source map to bind
|
static org.springframework.validation.BindingResult |
bindObjectToDomainInstance(org.codehaus.groovy.grails.commons.GrailsDomainClass domain,
java.lang.Object object,
java.lang.Object source)
Binds the given source object to the given target object performing type conversion if necessary
|
static org.springframework.validation.BindingResult |
bindObjectToDomainInstance(org.codehaus.groovy.grails.commons.GrailsDomainClass domain,
java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
Binds the given source object to the given target object performing type conversion if necessary
|
static org.springframework.validation.BindingResult |
bindObjectToInstance(java.lang.Object object,
java.lang.Object source)
Binds the given source object to the given target object performing type conversion if necessary
|
static org.springframework.validation.BindingResult |
bindObjectToInstance(java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
Binds the given source object to the given target object performing type conversion if necessary
|
public static void assignBidirectionalAssociations(java.lang.Object object,
java.util.Map source,
org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass)
object - The objectsource - The source mapdomainClass - The DomainClass for the objectpublic static org.springframework.validation.BindingResult bindObjectToInstance(java.lang.Object object,
java.lang.Object source)
object - The object to bind tosource - The source objectpublic static org.springframework.validation.BindingResult bindObjectToDomainInstance(org.codehaus.groovy.grails.commons.GrailsDomainClass domain,
java.lang.Object object,
java.lang.Object source)
domain - The GrailsDomainClass instanceobject - The object to bind tosource - The source objectGrailsDomainClasspublic static org.springframework.validation.BindingResult bindObjectToInstance(java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
object - The object to bind tosource - The source objectinclude - The list of properties to includeexclude - The list of properties to excludfilter - The prefix to filter bypublic static org.springframework.validation.BindingResult bindObjectToDomainInstance(org.codehaus.groovy.grails.commons.GrailsDomainClass domain,
java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
domain - The GrailsDomainClass instanceobject - The object to bind tosource - The source objectinclude - The list of properties to includeexclude - The list of properties to excludfilter - The prefix to filter byGrailsDomainClass