public static final class DmoPropertyAccessor.DmoSetter
extends java.lang.Object
implements org.hibernate.property.Setter
Setter
which uses assembled bytecode to call a setter method
instead of Java reflection.Modifier and Type | Field and Description |
---|---|
private com.esotericsoftware.reflectasm.MethodAccess |
methodAccess
Object used to invoke setter method
|
private int |
methodIndex
Index of the method to be invoked in the
MethodAccess 's method array |
Constructor and Description |
---|
DmoSetter(com.esotericsoftware.reflectasm.MethodAccess methodAccess,
int methodIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getMethod()
No-op.
|
java.lang.String |
getMethodName()
Return the name of the method invoked by this accessor.
|
void |
set(java.lang.Object target,
java.lang.Object value,
org.hibernate.engine.spi.SessionFactoryImplementor factory)
Invoke the property's setter method.
|
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 arrayDmoSetter(com.esotericsoftware.reflectasm.MethodAccess methodAccess, int methodIndex)
methodAccess
- Object used to invoke setter method.methodIndex
- Index of the method to be invoked in the MethodAccess
's method array.public void set(java.lang.Object target, java.lang.Object value, org.hibernate.engine.spi.SessionFactoryImplementor factory)
set
in interface org.hibernate.property.Setter
target
- DMO instance upon which to invoke method.value
- Parameter to pass to setter method.factory
- Not used.public java.lang.reflect.Method getMethod()
getMethod
in interface org.hibernate.property.Setter
null
.public java.lang.String getMethodName()
getMethodName
in interface org.hibernate.property.Setter
public java.lang.String toString()
toString
in class java.lang.Object