public void bindDelete(PreparedStatement stmt, Identity oid, ClassDescriptor cld) throws SQLException
    {
        Object[] pkValues = oid.getPrimaryKeyValues();
        FieldDescriptor[] pkFields = cld.getPkFields();
        int i = 0;
        try
        {
            for (; i < pkValues.length; i++)
            {
                setObjectForStatement(stmt, i + 1, pkValues[i], pkFields[i].getJdbcType().getType());
            }
        }
        catch (SQLException e)
        {
            m_log.error("bindDelete failed for: " + oid.toString() + ", while set value '" +
                    pkValues[i] + "' for column " + pkFields[i].getColumnName());
            throw e;
        }
    }
public void bindDelete ( PreparedStatement stmt , Identity oid , ClassDescriptor cld ) throws SQLException { Object [ ] pkValues = oid . getPrimaryKeyValues ( ) ; FieldDescriptor [ ] pkFields = cld . getPkFields ( ) ; int i = 0 ; try { for ( ; i < pkValues . length ; i ++ ) { setObjectForStatement ( stmt , i + 1 , pkValues [ i ] , pkFields [ i ] . getJdbcType ( ) . getType ( ) ) ; } } catch ( SQLException e ) { m_log . error ( "bindDelete failed for: " + oid . toString ( ) + ", while set value '" + pkValues [ i ] + "' for column " + pkFields [ i ] . getColumnName ( ) ) ; throw e ; } }
binds the Identities Primary key values to the statement