public static final class DmoPropertyAccessor.DmoGetter
extends java.lang.Object
implements org.hibernate.property.Getter
Getter
which uses assembled bytecode to call a getter method
instead of Java reflection.Modifier and Type | Field and Description |
---|---|
private com.esotericsoftware.reflectasm.MethodAccess |
methodAccess
Object used to invoke getter method
|
private int |
methodIndex
Index of the method to be invoked in the
MethodAccess 's method array |
private java.lang.Class<?> |
returnType
Type returned by the invoked method
|
Constructor and Description |
---|
DmoGetter(com.esotericsoftware.reflectasm.MethodAccess methodAccess,
int methodIndex,
java.lang.Class<?> returnType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object target)
Get the current value of the given DMO's property managed by this
Getter . |
java.lang.Object |
getForInsert(java.lang.Object target,
java.util.Map mergeMap,
org.hibernate.engine.spi.SessionImplementor session)
Get the current value of the given DMO's property managed by this
Getter . |
java.lang.reflect.Member |
getMember()
No-op.
|
java.lang.reflect.Method |
getMethod()
No-op.
|
java.lang.String |
getMethodName()
Return the name of the method invoked by this accessor.
|
java.lang.Class |
getReturnType()
Get the return type of the method invoked by this accessor.
|
java.lang.String |
toString()
Return a string representation of this object.
|
private final com.esotericsoftware.reflectasm.MethodAccess methodAccess
private final int methodIndex
MethodAccess
's method arrayprivate final java.lang.Class<?> returnType
DmoGetter(com.esotericsoftware.reflectasm.MethodAccess methodAccess, int methodIndex, java.lang.Class<?> returnType)
methodAccess
- Object used to invoke getter method.methodIndex
- Index of the method to be invoked in the MethodAccess
's method array.returnType
- Type returned by the invoked method.public java.lang.Object get(java.lang.Object target)
Getter
.get
in interface org.hibernate.property.Getter
target
- DMO instance upon which to invoke method.public java.lang.Object getForInsert(java.lang.Object target, java.util.Map mergeMap, org.hibernate.engine.spi.SessionImplementor session)
Getter
.getForInsert
in interface org.hibernate.property.Getter
target
- DMO instance upon which to invoke method.mergeMap
- Not used.session
- Not used.public java.lang.reflect.Member getMember()
getMember
in interface org.hibernate.property.Getter
null
.public java.lang.reflect.Method getMethod()
getMethod
in interface org.hibernate.property.Getter
null
.public java.lang.String getMethodName()
getMethodName
in interface org.hibernate.property.Getter
public java.lang.Class getReturnType()
getReturnType
in interface org.hibernate.property.Getter
public java.lang.String toString()
toString
in class java.lang.Object