com.bm.utils
Class NullableSetter

java.lang.Object
  extended by com.bm.utils.NullableSetter

public final class NullableSetter
extends java.lang.Object

Sets nullable fields to null.

Since:
16.10.2005
Author:
Daniel Wiese

Method Summary
static
<T> void
setFieldsToNull(java.util.List<T> beans, Introspector<T> intro)
          Sets nullable fields to null.
static
<T> void
setFieldsToNull(T bean, Introspector<T> intro)
          Sets nullable fields to null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFieldsToNull

public static <T> void setFieldsToNull(java.util.List<T> beans,
                                       Introspector<T> intro)
Sets nullable fields to null.

Type Parameters:
T - - the type of the bean
Parameters:
beans - - collection of beans
intro - - the introspector of the bean class
Since:
16.10.2005

setFieldsToNull

public static <T> void setFieldsToNull(T bean,
                                       Introspector<T> intro)
Sets nullable fields to null.

Type Parameters:
T - - the type of the bean
Parameters:
bean - - the bean
intro - - the introspector of the bean class
Since:
16.10.2005


Copyright © 2008. All Rights Reserved.