Code example for PreparedStatement

Methods: setBytes

0
	/* (non-Javadoc) 
	 * @see za.co.sindi.sql.Parameter#set(int, java.sql.PreparedStatement) 
	 */ 
	protected void setInternally(int parameterIndex, PreparedStatement ps) throws SQLException {
		// TODO Auto-generated method stub 
		ps.setBytes(parameterIndex, value);
	} 
 
	/* (non-Javadoc) 
	 * @see za.co.sindi.sql.Parameter#set(java.lang.String, java.sql.CallableStatement) 
	 */ 
	protected void setInternally(String parameterName, CallableStatement statement) throws SQLException {
		// TODO Auto-generated method stub 
		statement.setBytes(parameterName, value);
	} 
}