Examples of whereObject()


Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        row.setFailedObject(sm.getManagedInstance());

        // set where and update conditions on row
        for (int i = 0; i < cols.length; i++) {
            if (curVersion != null && sm.isVersionCheckRequired())
                row.whereObject(cols[i], curVersion);
            if (vers.getColumnIO().isUpdatable(i, nextVersion == null))
                row.setObject(cols[i], nextVersion);
        }

        if (nextVersion != null)
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

            else
                cur = ((Object[]) curVersion)[i];

            // set where and update conditions on row
            if (cur != null)
                row.whereObject(cols[i], cur);
        }
    }

    public boolean select(Select sel, ClassMapping mapping) {
        sel.select(vers.getColumns());
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        for (int i = 0; i < cols.length; i++) {
            Row row = rm.getRow(cols[i].getTable(), Row.ACTION_UPDATE, sm,
                    true);
            row.setFailedObject(sm.getManagedInstance());
            if (curVersion != null && sm.isVersionCheckRequired()) {
                row.whereObject(cols[i], getColumnValue(curVersion, i));
                if (isSecondaryColumn(cols[i], sm)) {
                  ForeignKey[] fks = cols[i].getTable().getForeignKeys();
                  for (ForeignKey fk : fks) {
                    row.whereForeignKey(fk, sm);
                  }
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

              Row.ACTION_DELETE, sm, true);
            row.setFailedObject(sm.getManagedInstance());
            cur = getColumnValue(curVersion, i);
            // set where and update conditions on row
            if (cur != null) {
                row.whereObject(cols[i], cur);
                if (isSecondaryColumn(cols[i], sm)) {
                  ForeignKey[] fks = cols[i].getTable().getForeignKeys();
                  for (ForeignKey fk : fks) {
                    row.whereForeignKey(fk, sm);
                  }
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        row.setFailedObject(sm.getManagedInstance());

        // set where and update conditions on row
        for (int i = 0; i < cols.length; i++) {
            if (curVersion != null && sm.isVersionCheckRequired())
                row.whereObject(cols[i], curVersion);
            if (vers.getColumnIO().isUpdatable(i, nextVersion == null))
                row.setObject(cols[i], nextVersion);
        }

        if (nextVersion != null)
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

            else
                cur = ((Object[]) curVersion)[i];

            // set where and update conditions on row
            if (cur != null)
                row.whereObject(cols[i], cur);
        }
    }

    public boolean select(Select sel, ClassMapping mapping) {
        sel.select(vers.getColumns());
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        // to be sure we don't think the value is null after the commit
        Column col = field.getColumns()[0];
        if (sm.setImplData(field.getIndex(), null) == NULL)
            row.whereNull(col);
        else
            row.whereObject(col, prevValue);
    }

    ///////////////////////////
    // Joinable implementation
    ///////////////////////////
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        for (int i = 0; i < cols.length; i++) {
            Row row = rm.getRow(cols[i].getTable(), Row.ACTION_UPDATE, sm,
                    true);
            row.setFailedObject(sm.getManagedInstance());
            if (curVersion != null && sm.isVersionCheckRequired()) {
                row.whereObject(cols[i], getColumnValue(curVersion, i));
                if (isSecondaryColumn(cols[i], sm)) {
                  ForeignKey[] fks = cols[i].getTable().getForeignKeys();
                  for (ForeignKey fk : fks) {
                    row.whereForeignKey(fk, sm);
                  }
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

              Row.ACTION_DELETE, sm, true);
            row.setFailedObject(sm.getManagedInstance());
            cur = getColumnValue(curVersion, i);
            // set where and update conditions on row
            if (cur != null) {
                row.whereObject(cols[i], cur);
                if (isSecondaryColumn(cols[i], sm)) {
                  ForeignKey[] fks = cols[i].getTable().getForeignKeys();
                  for (ForeignKey fk : fks) {
                    row.whereForeignKey(fk, sm);
                  }
View Full Code Here

Examples of org.apache.openjpa.jdbc.sql.Row.whereObject()

        for (int i = 0; i < cols.length; i++) {
            Row row = rm.getRow(cols[i].getTable(), Row.ACTION_UPDATE, sm,
                    true);
            row.setFailedObject(sm.getManagedInstance());
            if (curVersion != null && sm.isVersionCheckRequired()) {
                row.whereObject(cols[i], getColumnValue(curVersion, i));
                if (isSecondaryColumn(cols[i], sm)) {
                  ForeignKey[] fks = cols[i].getTable().getForeignKeys();
                  for (ForeignKey fk : fks) {
                    row.whereForeignKey(fk, sm);
                  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.