Code example for CallableStatement

Methods: setNull

0
		if (value != null) {
			logger.debug("setTimestamp(" + col + ", " + value + ")");
			stmt.setTimestamp(col, value);
		} else { 
			logger.debug("setNull(" + col + ", Types.TIMESTAMP)");
			stmt.setNull(col, Types.TIMESTAMP);
		} 
	} 
 
	protected void setTimestamp(CallableStatement stmt, String col,
			Calendar value) throws SQLException {
		if (value != null) {
			logger.debug("setTimestamp(" + col + ", " + value + ")");
			stmt.setTimestamp(col, new Timestamp(value.getTimeInMillis()));
		} else { 
			logger.debug("setNull(" + col + ", Types.TIMESTAMP)");
			stmt.setNull(col, Types.TIMESTAMP);
		} 
	} 
 
	protected void setTimestamp(CallableStatement stmt, String col,