if (to == null) { for (int i = 0; i < fromCols.length; i++) { if (set && canSet(io, i, true)) setNull(fromCols[i]); else if (!set) if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned()) continue; if (!canSet(io, i, false)) continue; getContext().getStoreManager().getInnermostDelegate()); if (set && val == null) { if (canSet(io, i, true)) setNull(fromCols[i]); } else if (set && val instanceof Raw)
/** * Flush the foreign key values. */ private void flushForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm, boolean set) throws SQLException { flushJoinValues(sm, null, fk.getPrimaryKeyColumns(), fk.getColumns(), io, set); if (sm != null) { Column[] cols = fk.getConstantColumns(); int len = fk.getColumns().length; Object obj; int type; for (int i = 0; i < cols.length; i++) { obj = fk.getConstant(cols[i]); type = cols[i].getJavaType(); if (set && canSet(io, i + len, obj == null)) setObject(cols[i], obj, type, false); else if (!set) whereObject(cols[i], obj, type); } } }
if (to == null) { for (int i = 0; i < fromCols.length; i++) { if (set && canSet(io, i, true)) setNull(fromCols[i]); else if (!set) if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned()) continue; if (!canSet(io, i, false)) continue; if (canSet(io, i, true)) setNull(fromCols[i]); } else if (set && val instanceof Raw)
/** * Flush the foreign key values. */ private void flushForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm, boolean set) throws SQLException { flushJoinValues(sm, null, fk.getPrimaryKeyColumns(), fk.getColumns(), io, set); if (sm != null) { Column[] cols = fk.getConstantColumns(); int len = fk.getColumns().length; Object obj; int type; for (int i = 0; i < cols.length; i++) { obj = fk.getConstant(cols[i]); type = cols[i].getJavaType(); if (set && canSet(io, i + len, obj == null)) setObject(cols[i], obj, type, false); else if (!set) whereObject(cols[i], obj, type); } } }
if (to == null) { for (int i = 0; i < fromCols.length; i++) { if (set && canSet(io, i, true)) setNull(fromCols[i]); else if (!set) if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned()) continue; if (!canSet(io, i, false)) continue; if (canSet(io, i, true)) setNull(fromCols[i]); } else if (set && val instanceof Raw)
/** * Flush the foreign key values. */ private void flushForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm, boolean set) throws SQLException { flushJoinValues(sm, fk.getPrimaryKeyColumns(), fk.getColumns(), io, set); if (sm != null) { Column[] cols = fk.getConstantColumns(); int len = fk.getColumns().length; Object obj; int type; for (int i = 0; i < cols.length; i++) { obj = fk.getConstant(cols[i]); type = cols[i].getJavaType(); if (set && canSet(io, i + len, obj == null)) setObject(cols[i], obj, type, false); else if (!set) whereObject(cols[i], obj, type); } } }
if (to == null) { for (int i = 0; i < fromCols.length; i++) { if (set && canSet(io, i, true)) setNull(fromCols[i]); else if (!set) if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned()) continue; if (!canSet(io, i, false)) continue; if (canSet(io, i, true)) setNull(fromCols[i]); } else if (set && val instanceof Raw)
/** * Flush the foreign key values. */ private void flushForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm, boolean set) throws SQLException { flushJoinValues(sm, null, fk.getPrimaryKeyColumns(), fk.getColumns(), io, set); if (sm != null) { Column[] cols = fk.getConstantColumns(); int len = fk.getColumns().length; Object obj; int type; for (int i = 0; i < cols.length; i++) { obj = fk.getConstant(cols[i]); type = cols[i].getJavaType(); if (set && canSet(io, i + len, obj == null)) setObject(cols[i], obj, type, false); else if (!set) whereObject(cols[i], obj, type); } } }
if (to == null) { for (int i = 0; i < fromCols.length; i++) { if (set && canSet(io, i, true)) setNull(fromCols[i]); else if (!set) if (_action == ACTION_INSERT && fromCols[i].isAutoAssigned()) continue; if (!canSet(io, i, false)) continue; if (canSet(io, i, true)) setNull(fromCols[i]); } else if (set && val instanceof Raw)
/** * Flush the foreign key values. */ private void flushForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm, boolean set) throws SQLException { flushJoinValues(sm, null, fk.getPrimaryKeyColumns(), fk.getColumns(), io, set); if (sm != null) { Column[] cols = fk.getConstantColumns(); int len = fk.getColumns().length; Object obj; int type; for (int i = 0; i < cols.length; i++) { obj = fk.getConstant(cols[i]); type = cols[i].getJavaType(); if (set && canSet(io, i + len, obj == null)) setObject(cols[i], obj, type, false); else if (!set) whereObject(cols[i], obj, type); } } }