public String getDeleteMNStatement(String table, String[] pkColumns1, String[] pkColumns2)
    {
        SqlStatement sql;
        String result;
        String[] cols;

        if (pkColumns2 == null)
        {
            cols = pkColumns1;
        }
        else
        {
            cols = new String[pkColumns1.length + pkColumns2.length];
            System.arraycopy(pkColumns1, 0, cols, 0, pkColumns1.length);
            System.arraycopy(pkColumns2, 0, cols, pkColumns1.length, pkColumns2.length);
        }

        sql = new SqlDeleteMNStatement(table, cols, logger);
        result = sql.getStatement();

        if (logger.isDebugEnabled())
        {
            logger.debug("SQL:" + result);
        }
        return result;
    }
public String getDeleteMNStatement ( String table , String [ ] pkColumns1 , String [ ] pkColumns2 ) { SqlStatement sql ; String result ; String [ ] cols ; if ( pkColumns2 == null ) { cols = pkColumns1 ; } else { cols = new String [ pkColumns1 . length + pkColumns2 . length ] ; System . arraycopy ( pkColumns1 , 0 , cols , 0 , pkColumns1 . length ) ; System . arraycopy ( pkColumns2 , 0 , cols , pkColumns1 . length , pkColumns2 . length ) ; } sql = new SqlDeleteMNStatement ( table , cols , logger ) ; result = sql . getStatement ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "SQL:" + result ) ; } return result ; }
generate a DELETE-Statement for M:N indirection table

@param table
@param pkColumns1
@param pkColumns2