public abstract class BulkAccessor
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
getters |
protected java.lang.String[] |
setters |
protected java.lang.Class |
target |
protected java.lang.Class[] |
types |
| Modifier | Constructor and Description |
|---|---|
protected |
BulkAccessor()
Protected access constructor so the generated class has access to it.
|
| Modifier and Type | Method and Description |
|---|---|
static BulkAccessor |
create(java.lang.Class beanClass,
java.lang.String[] getters,
java.lang.String[] setters,
java.lang.Class[] types)
Creates a new instance of
BulkAccessor. |
java.lang.String[] |
getGetters()
Returns the setter names of properties.
|
java.lang.Class[] |
getPropertyTypes()
Returns the types of properties.
|
java.lang.Object[] |
getPropertyValues(java.lang.Object bean)
Returns the values of properties of a given bean.
|
abstract void |
getPropertyValues(java.lang.Object bean,
java.lang.Object[] values)
Obtains the values of properties of a given bean.
|
java.lang.String[] |
getSetters()
Returns the getter names of the properties.
|
abstract void |
setPropertyValues(java.lang.Object bean,
java.lang.Object[] values)
Sets properties of a given bean to specified values.
|
protected java.lang.Class target
protected java.lang.String[] getters
protected java.lang.String[] setters
protected java.lang.Class[] types
protected BulkAccessor()
public abstract void getPropertyValues(java.lang.Object bean,
java.lang.Object[] values)
bean - JavaBean.values - the obtained values are stored in this array.public abstract void setPropertyValues(java.lang.Object bean,
java.lang.Object[] values)
bean - JavaBean.values - the values assinged to properties.public java.lang.Object[] getPropertyValues(java.lang.Object bean)
bean - JavaBean.public java.lang.Class[] getPropertyTypes()
public java.lang.String[] getGetters()
public java.lang.String[] getSetters()
public static BulkAccessor create(java.lang.Class beanClass, java.lang.String[] getters, java.lang.String[] setters, java.lang.Class[] types)
BulkAccessor.
The created instance provides methods for setting/getting
specified properties at once.beanClass - the class of the JavaBeans accessed
through the created object.getters - the names of setter methods for specified properties.setters - the names of getter methods for specified properties.types - the types of specified properties.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.