Methods Summary |
---|
public java.lang.String[] | getPropertyNames()
return bulkBean.getGetters();
|
public java.lang.Object[] | getPropertyValues(java.lang.Object object)
try {
return bulkBean.getPropertyValues( object );
}
catch ( Throwable t ) {
throw new PropertyAccessException(
t,
PROPERTY_GET_EXCEPTION,
false,
mappedClass,
getterName( t, bulkBean )
);
}
|
private static java.lang.String | getterName(java.lang.Throwable t, net.sf.cglib.beans.BulkBean optimizer)
if ( t instanceof BulkBeanException ) {
return optimizer.getGetters()[( ( BulkBeanException ) t ).getIndex()];
}
else {
return "?";
}
|
private void | readObject(java.io.ObjectInputStream in)
Class beanClass = ( Class ) in.readObject();
String[] getters = ( String[] ) in.readObject();
String[] setters = ( String[] ) in.readObject();
Class[] types = ( Class[] ) in.readObject();
bulkBean = BulkBean.create( beanClass, getters, setters, types );
|
public void | setPropertyValues(java.lang.Object object, java.lang.Object[] values)
try {
bulkBean.setPropertyValues( object, values );
}
catch ( Throwable t ) {
throw new PropertyAccessException(
t,
PROPERTY_SET_EXCEPTION,
true,
mappedClass,
setterName( t, bulkBean )
);
}
|
private static java.lang.String | setterName(java.lang.Throwable t, net.sf.cglib.beans.BulkBean optimizer)
if ( t instanceof BulkBeanException ) {
return optimizer.getSetters()[( ( BulkBeanException ) t ).getIndex()];
}
else {
return "?";
}
|
private void | writeObject(java.io.ObjectOutputStream out)
out.writeObject( mappedClass );
out.writeObject( bulkBean.getGetters() );
out.writeObject( bulkBean.getSetters() );
out.writeObject( bulkBean.getPropertyTypes() );
|