public boolean isValid() { return _row.isValid(); }
public boolean isValid() { return _row.isValid(); }
public boolean isValid() { return _row.isValid(); }
public boolean isValid() { return _row.isValid(); }
public boolean isValid() { return _row.isValid(); }
public void flushSecondaryRow(Row row) throws SQLException { if (!row.isValid()) return; SecondaryRow srow = (SecondaryRow) row; if (srow.getAction() == Row.ACTION_DELETE) { if (_secondaryDeletes == null) _secondaryDeletes = new ArrayList<SecondaryRow>(); _secondaryDeletes.add((SecondaryRow) srow.clone()); } else { if (_secondaryUpdates == null) _secondaryUpdates = new ArrayList<SecondaryRow>(); _secondaryUpdates.add((SecondaryRow) srow.clone()); } }
public void flushSecondaryRow(Row row) throws SQLException { if (!row.isValid()) return; SecondaryRow srow = (SecondaryRow) row; if (srow.getAction() == Row.ACTION_DELETE) { if (_secondaryDeletes == null) _secondaryDeletes = new ArrayList<SecondaryRow>(); _secondaryDeletes.add((SecondaryRow) srow.clone()); } else { if (_secondaryUpdates == null) _secondaryUpdates = new ArrayList<SecondaryRow>(); _secondaryUpdates.add((SecondaryRow) srow.clone()); } }
public void flushSecondaryRow(Row row) throws SQLException { if (!row.isValid()) return; SecondaryRow srow = (SecondaryRow) row; if (srow.getAction() == Row.ACTION_DELETE) { if (_secondaryDeletes == null) _secondaryDeletes = new ArrayList<SecondaryRow>(); _secondaryDeletes.add((SecondaryRow) srow.clone()); } else { if (_secondaryUpdates == null) _secondaryUpdates = new ArrayList<SecondaryRow>(); _secondaryUpdates.add((SecondaryRow) srow.clone()); } }
public void flushSecondaryRow(Row row) throws SQLException { if (!row.isValid()) return; SecondaryRow srow = (SecondaryRow) row; if (srow.getAction() == Row.ACTION_DELETE) { if (_secondaryDeletes == null) _secondaryDeletes = new ArrayList<SecondaryRow>(); _secondaryDeletes.add((SecondaryRow) srow.clone()); } else { if (_secondaryUpdates == null) _secondaryUpdates = new ArrayList<SecondaryRow>(); _secondaryUpdates.add((SecondaryRow) srow.clone()); } }
public void flushSecondaryRow(Row row) throws SQLException { if (!row.isValid()) return; SecondaryRow srow = (SecondaryRow) row; if (srow.getAction() == Row.ACTION_DELETE) { if (_secondaryDeletes == null) _secondaryDeletes = new ArrayList(); _secondaryDeletes.add(srow.clone()); } else { if (_secondaryUpdates == null) _secondaryUpdates = new ArrayList(); _secondaryUpdates.add(srow.clone()); } }
public void flushAllRows(Row row) { if (!row.isValid()) return; switch (row.getAction()) { case Row.ACTION_UPDATE: if (_allRowUpdates == null) _allRowUpdates = new ArrayList<Row>(); _allRowUpdates.add(row); break; case Row.ACTION_DELETE: if (_allRowDeletes == null) _allRowDeletes = new ArrayList<Row>(); _allRowDeletes.add(row); break; default: throw new InternalException("action = " + row.getAction()); } }
public void flushAllRows(Row row) { if (!row.isValid()) return; switch (row.getAction()) { case Row.ACTION_UPDATE: if (_allRowUpdates == null) _allRowUpdates = new ArrayList(); _allRowUpdates.add(row); break; case Row.ACTION_DELETE: if (_allRowDeletes == null) _allRowDeletes = new ArrayList(); _allRowDeletes.add(row); break; default: throw new InternalException("action = " + row.getAction()); } }
public void flushAllRows(Row row) { if (!row.isValid()) return; switch (row.getAction()) { case Row.ACTION_UPDATE: if (_allRowUpdates == null) _allRowUpdates = new ArrayList<Row>(); _allRowUpdates.add(row); break; case Row.ACTION_DELETE: if (_allRowDeletes == null) _allRowDeletes = new ArrayList<Row>(); _allRowDeletes.add(row); break; default: throw new InternalException("action = " + row.getAction()); } }
public void flushAllRows(Row row) { if (!row.isValid()) return; switch (row.getAction()) { case Row.ACTION_UPDATE: if (_allRowUpdates == null) _allRowUpdates = new ArrayList<Row>(); _allRowUpdates.add(row); break; case Row.ACTION_DELETE: if (_allRowDeletes == null) _allRowDeletes = new ArrayList<Row>(); _allRowDeletes.add(row); break; default: throw new InternalException("action = " + row.getAction()); } }
public void flushAllRows(Row row) { if (!row.isValid()) return; switch (row.getAction()) { case Row.ACTION_UPDATE: if (_allRowUpdates == null) _allRowUpdates = new ArrayList<Row>(); _allRowUpdates.add(row); break; case Row.ACTION_DELETE: if (_allRowDeletes == null) _allRowDeletes = new ArrayList<Row>(); _allRowDeletes.add(row); break; default: throw new InternalException("action = " + row.getAction()); } }
/** * Check to see if there is an insert for for the same table and primary * key values as the given delete row. */ private Row getInsertRow(Map insertMap, RowManagerImpl rowMgr, Row row) { if (insertMap == null) return null; OpenJPAStateManager sm = row.getPrimaryKey(); if (sm == null) return null; // look for a new object whose insert id is the same as this delete one Object oid = sm.getObjectId(); OpenJPAStateManager nsm = (OpenJPAStateManager) insertMap.get(oid); if (nsm == null) return null; // found new object; get its row row = rowMgr.getRow(row.getTable(), Row.ACTION_INSERT, nsm, false); return (row == null || row.isValid()) ? row : null; }
/** * Check to see if there is an insert for for the same table and primary * key values as the given delete row. */ private Row getInsertRow(Map insertMap, RowManagerImpl rowMgr, Row row) { if (insertMap == null) return null; OpenJPAStateManager sm = row.getPrimaryKey(); if (sm == null) return null; // look for a new object whose insert id is the same as this delete one Object oid = sm.getObjectId(); OpenJPAStateManager nsm = (OpenJPAStateManager) insertMap.get(oid); if (nsm == null) return null; // found new object; get its row row = rowMgr.getRow(row.getTable(), Row.ACTION_INSERT, nsm, false); return (row == null || row.isValid()) ? row : null; }
/** * Check to see if there is an insert for for the same table and primary * key values as the given delete row. */ private Row getInsertRow(Map insertMap, RowManagerImpl rowMgr, Row row) { if (insertMap == null) return null; OpenJPAStateManager sm = row.getPrimaryKey(); if (sm == null) return null; // look for a new object whose insert id is the same as this delete one Object oid = sm.getObjectId(); OpenJPAStateManager nsm = (OpenJPAStateManager) insertMap.get(oid); if (nsm == null) return null; // found new object; get its row row = rowMgr.getRow(row.getTable(), Row.ACTION_INSERT, nsm, false); return (row == null || row.isValid()) ? row : null; }
/** * Check to see if there is an insert for for the same table and primary * key values as the given delete row. */ private Row getInsertRow(Map insertMap, RowManagerImpl rowMgr, Row row) { if (insertMap == null) return null; OpenJPAStateManager sm = row.getPrimaryKey(); if (sm == null) return null; // look for a new object whose insert id is the same as this delete one Object oid = sm.getObjectId(); OpenJPAStateManager nsm = (OpenJPAStateManager) insertMap.get(oid); if (nsm == null) return null; // found new object; get its row row = rowMgr.getRow(row.getTable(), Row.ACTION_INSERT, nsm, false); return (row == null || row.isValid()) ? row : null; }
/** * Check to see if there is an insert for for the same table and primary * key values as the given delete row. */ private Row getInsertRow(Map insertMap, RowManagerImpl rowMgr, Row row) { if (insertMap == null) return null; OpenJPAStateManager sm = row.getPrimaryKey(); if (sm == null) return null; // look for a new object whose insert id is the same as this delete one Object oid = sm.getObjectId(); OpenJPAStateManager nsm = (OpenJPAStateManager) insertMap.get(oid); if (nsm == null) return null; // found new object; get its row row = rowMgr.getRow(row.getTable(), Row.ACTION_INSERT, nsm, false); return (row == null || row.isValid()) ? row : null; }