|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.convert.BaseV20Converter
org.directwebremoting.convert.BasicObjectConverter
org.directwebremoting.convert.BeanConverter
org.directwebremoting.hibernate.H3BeanConverter
public class H3BeanConverter
BeanConverter that works with Hibernate to get BeanInfo.
| Field Summary | |
|---|---|
protected boolean |
assumeSession
Do we assume there is an open session and read properties? |
protected static java.util.Map |
methods
The cache of method lookups that we've already done |
| Fields inherited from class org.directwebremoting.convert.BasicObjectConverter |
|---|
converterManager, exclusions, inclusions, instanceType, javascript |
| Constructor Summary | |
|---|---|
H3BeanConverter()
|
|
| Method Summary | |
|---|---|
protected java.lang.reflect.Method |
findGetter(java.lang.Object data,
java.lang.String property)
Cache the method if possible, using the classname and property name to allow for similar named methods. |
java.lang.Class |
getClass(java.lang.Object example)
Hibernate makes Object.getClass() diffficult ... |
java.util.Map |
getPropertyMapFromObject(java.lang.Object example,
boolean readRequired,
boolean writeRequired)
Get a map of property names to implementations of Property. |
void |
setAssumeSession(boolean assumeSession)
|
| Methods inherited from class org.directwebremoting.convert.BeanConverter |
|---|
createTypeHintContext, getPropertyMapFromClass |
| Methods inherited from class org.directwebremoting.convert.BasicObjectConverter |
|---|
convertInbound, convertOutbound, extractInboundTokens, getConverterManager, getInstanceType, getJavascript, isAllowedByIncludeExcludeRules, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType, setJavascript |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.directwebremoting.extend.Converter |
|---|
convertInbound, convertOutbound, setConverterManager |
| Field Detail |
|---|
protected boolean assumeSession
protected static final java.util.Map methods
| Constructor Detail |
|---|
public H3BeanConverter()
| Method Detail |
|---|
public java.util.Map getPropertyMapFromObject(java.lang.Object example,
boolean readRequired,
boolean writeRequired)
throws MarshallException
NamedConverterProperty.
HibernateBeanConverter (and maybe others) may want to provide alternate versions of bean.getClass(), and we may wish to fake or hide properties in some cases.
This implementation is preferred above the alternate:
NamedConverter.getPropertyMapFromClass(Class, boolean, boolean) because it
potentially retains important extra type information.
getPropertyMapFromObject in interface NamedConvertergetPropertyMapFromObject in class BeanConverterexample - The object to find bean info fromreadRequired - The properties returned must be readablewriteRequired - The properties returned must be writeable
MarshallException - If the introspection failsNamedConverter.getPropertyMapFromClass(Class, boolean, boolean)public java.lang.Class getClass(java.lang.Object example)
Object.getClass() diffficult ...
example - The class that we want to call Object.getClass() on
protected java.lang.reflect.Method findGetter(java.lang.Object data,
java.lang.String property)
throws java.beans.IntrospectionException
data - The bean to introspectproperty - The property to get the accessor for
java.beans.IntrospectionExceptionpublic void setAssumeSession(boolean assumeSession)
assumeSession - the assumeSession to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||