|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.bytecode.javassist.BulkAccessor
public abstract class BulkAccessor
A JavaBean accessor.
This object provides methods that set/get multiple properties of a JavaBean at once. This class and its support classes have been developed for the comaptibility with cglib (http://cglib.sourceforge.net/).
| Field Summary | |
|---|---|
protected java.lang.String[] |
getters
|
protected java.lang.String[] |
setters
|
protected java.lang.Class |
target
|
protected java.lang.Class[] |
types
|
| Constructor Summary | |
|---|---|
protected |
BulkAccessor()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class target
protected java.lang.String[] getters
protected java.lang.String[] setters
protected java.lang.Class[] types
| Constructor Detail |
|---|
protected BulkAccessor()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||