Code example for PreparedStatement

Methods: setNull, setShort

0
   */ 
  public void set(PreparedStatement ps,int index,Object value,int typeCode,JdaTypeConverterMap converterMap)throws SQLException{
  	try{ 
	  	Short parameter =(Short)JdaTypeConvertFactory.convert(value,this.getPersisterType(),converterMap);
	  	if(parameter== null)
	  		ps.setNull(index,typeCode);
	  	else 
	  		ps.setShort(index,parameter.shortValue());
  	} catch (Throwable e) {
 			throw new JdaException(null,e);
 	  } 
  } 
}