private static Object getParam ( final Object param ) { final StringBuilder sb = new StringBuilder ( ) ; if ( param instanceof String ) { sb . append ( "'" ) ; sb . append ( ( String ) param ) ; sb . append ( "'" ) ; } else if ( param instanceof Boolean ) { sb . append ( String . valueOf ( ( Boolean ) param ) ) ; } else if ( param instanceof Integer ) { sb . append ( String . valueOf ( ( Integer ) param ) ) ; } else if ( param instanceof DBRegExp ) { sb . append ( ' ' ) ; sb . append ( ( ( DBRegExp ) param ) . toString ( ) ) ; sb . append ( ' ' ) ; } return sb . toString ( ) ; }
Handle the serialization of String Integer and boolean parameters .