|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.binding.DataBindingUtils
public class DataBindingUtils
Utility methods to perform data binding from Grails objects
| Constructor Summary | |
|---|---|
DataBindingUtils()
|
|
| Method Summary | |
|---|---|
static void |
assignBidirectionalAssociations(Object object,
Map source,
GrailsDomainClass domainClass)
Associations both sides of any bidirectional relationships found in the object and source map to bind |
static BindingResult |
bindObjectToDomainInstance(GrailsDomainClass domain,
Object object,
Object source)
Binds the given source object to the given target object performing type conversion if necessary |
static BindingResult |
bindObjectToDomainInstance(GrailsDomainClass domain,
Object object,
Object source,
List include,
List exclude,
String filter)
Binds the given source object to the given target object performing type conversion if necessary |
static BindingResult |
bindObjectToInstance(Object object,
Object source)
Binds the given source object to the given target object performing type conversion if necessary |
static BindingResult |
bindObjectToInstance(Object object,
Object source,
List include,
List exclude,
String filter)
Binds the given source object to the given target object performing type conversion if necessary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataBindingUtils()
| Method Detail |
|---|
public static void assignBidirectionalAssociations(Object object,
Map source,
GrailsDomainClass domainClass)
object - The objectsource - The source mapdomainClass - The DomainClass for the object
public static BindingResult bindObjectToInstance(Object object,
Object source)
object - The object to bind tosource - The source object
public static BindingResult bindObjectToDomainInstance(GrailsDomainClass domain,
Object object,
Object source)
domain - The GrailsDomainClass instanceobject - The object to bind tosource - The source object
GrailsDomainClass
public static BindingResult bindObjectToInstance(Object object,
Object source,
List include,
List exclude,
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 by
public static BindingResult bindObjectToDomainInstance(GrailsDomainClass domain,
Object object,
Object source,
List include,
List exclude,
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 by
GrailsDomainClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||