public class AccessOptimizerAdapter extends Object implements ReflectionOptimizer.AccessOptimizer, Serializable
ReflectionOptimizer.AccessOptimizer
implementation for Javassist
which simply acts as an adapter to the BulkAccessor
class.Constructor and Description |
---|
AccessOptimizerAdapter(BulkAccessor bulkAccessor,
Class mappedClass)
Constructs an AccessOptimizerAdapter
|
Modifier and Type | Method and Description |
---|---|
String[] |
getPropertyNames()
Get the name of all properties.
|
Object[] |
getPropertyValues(Object object)
Get the value of all properties from the given entity
|
void |
setPropertyValues(Object object,
Object[] values)
Set all property values into an entity instance.
|
public AccessOptimizerAdapter(BulkAccessor bulkAccessor, Class mappedClass)
bulkAccessor
- The bulk accessor to usemappedClass
- The mapped classpublic String[] getPropertyNames()
ReflectionOptimizer.AccessOptimizer
getPropertyNames
in interface ReflectionOptimizer.AccessOptimizer
public Object[] getPropertyValues(Object object)
ReflectionOptimizer.AccessOptimizer
getPropertyValues
in interface ReflectionOptimizer.AccessOptimizer
object
- The entity from which to extract values.public void setPropertyValues(Object object, Object[] values)
ReflectionOptimizer.AccessOptimizer
setPropertyValues
in interface ReflectionOptimizer.AccessOptimizer
object
- The entity instancevalues
- The values to injectCopyright © 2016 JBoss by Red Hat. All rights reserved.