|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.ExtendedPropertyAccessor.GetterSetter
static final class ExtendedPropertyAccessor.GetterSetter
This class implements the Hibernate Getter
and
Setter
interfaces. For each property of
an Extendable
item there exist one Getter
and Setter
object.
Field Summary | |
---|---|
private Class |
clazz
|
private String |
property
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
private |
ExtendedPropertyAccessor.GetterSetter(Class clazz,
String property)
Create a new getter or setter. |
Method Summary | |
---|---|
Object |
get(Object target)
Get the value of the extended property. |
Object |
getForInsert(Object target,
Map mergeMap,
org.hibernate.engine.SessionImplementor session)
Get the value of the extended property. |
Member |
getMember()
Always return null. |
Method |
getMethod()
Always return null. |
String |
getMethodName()
Always return null. |
Class |
getReturnType()
Always return null. |
void |
set(Object target,
Object value,
org.hibernate.engine.SessionFactoryImplementor factory)
Set the value of the extended property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final Class clazz
private final String property
Constructor Detail |
---|
private ExtendedPropertyAccessor.GetterSetter(Class clazz, String property)
clazz
- The Class
of the itemproperty
- The name of the extended propertyMethod Detail |
---|
public Object get(Object target)
get
in interface org.hibernate.property.Getter
target
- The ExtendableData
that holds the value
ClassCastException
- If the target is not
ExtendableData
public Object getForInsert(Object target, Map mergeMap, org.hibernate.engine.SessionImplementor session)
getForInsert
in interface org.hibernate.property.Getter
target
- The ExtendableData
that holds the valuemergeMap
- A map of merged persistent instances to detached instances, whatever
that means...session
- The session from which this request originated.
ClassCastException
- If the target is not
ExtendableData
public void set(Object target, Object value, org.hibernate.engine.SessionFactoryImplementor factory)
set
in interface org.hibernate.property.Setter
target
- The Extendable
that holds the valuevalue
- The new valuefactory
- The session factory from which this request originated.
ClassCastException
- If the target is not
ExtendableData
public Member getMember()
getMember
in interface org.hibernate.property.Getter
public Class getReturnType()
getReturnType
in interface org.hibernate.property.Getter
public String getMethodName()
getMethodName
in interface org.hibernate.property.Getter
getMethodName
in interface org.hibernate.property.Setter
public Method getMethod()
getMethod
in interface org.hibernate.property.Getter
getMethod
in interface org.hibernate.property.Setter
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |