Object marshaller for domain classes to JSON
| Type | Name and description |
|---|---|
boolean |
includeClass |
boolean |
includeVersion |
| Constructor and description |
|---|
DomainClassMarshaller
(boolean includeVersion, grails.core.GrailsApplication application) |
DomainClassMarshaller
(boolean includeVersion, grails.core.support.proxy.ProxyHandler proxyHandler, grails.core.GrailsApplication application) |
DomainClassMarshaller
(boolean includeVersion, boolean includeClass, grails.core.support.proxy.ProxyHandler proxyHandler, grails.core.GrailsApplication application) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
asShortObject(java.lang.Object refObj, JSON json, org.grails.datastore.mapping.model.PersistentProperty idProperty, org.grails.datastore.mapping.model.PersistentEntity referencedDomainClass) |
|
protected java.lang.Object |
extractValue(java.lang.Object domainObject, org.grails.datastore.mapping.model.PersistentProperty property) |
|
boolean |
isIncludeClass() |
|
boolean |
isIncludeVersion() |
|
protected boolean |
isRenderDomainClassRelations() |
|
void |
marshalObject(java.lang.Object value, JSON json) |
|
void |
setIncludeClass(boolean includeClass) |
|
void |
setIncludeVersion(boolean includeVersion) |
|
boolean |
supports(java.lang.Object object) |
| Methods inherited from class | Name |
|---|---|
class IncludeExcludePropertyMarshaller |
excludesProperty, includesProperty, shouldInclude |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Groovy Documentation