public void select(Select sel, int idx) { joins[1] = selectAll(sel, vals[idx], sm, store, fetch, eagerMode); } });
/** * This method is for class mappings that take over the insert * process, but still want to use this indicator for optimistic locking. */ public void customInsert(OpenJPAStateManager sm, JDBCStore store) throws SQLException { insert(sm, store, null); }
public Object loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadElement(sm, store, fetch, res, joins); }
public Object loadProjection(JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return HandlerStrategies.loadObject(field, null, store, fetch, res, joins, _cols, _load); }
/** * Returns the first independent element mapping, or null. */ private ClassMapping getDefaultElementMapping(boolean traverse) { ClassMapping[] elems = getIndependentElementMappings(traverse); return (elems.length == 0) ? null : elems[0]; }
public Object loadProjection(JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadElement(null, store, fetch, res, joins); }
public Object loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadElement(sm, store, fetch, res, joins); }
public void selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) { selectElement(sel, val, store, fetch, JDBCFetchConfiguration.EAGER_NONE, joins); }
public void select(Select sel, int idx) { ClassMapping elem = (elems.length == 0) ? null : elems[idx]; resJoins[idx] = selectAll(sel, elem, sm, store, fetch, JDBCFetchConfiguration.EAGER_PARALLEL); } });
/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
public void selectValue(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) { selectElement(sel, val, store, fetch, JDBCFetchConfiguration.EAGER_NONE, joins); }
public Object loadProjection(JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadValue(null, store, fetch, res, joins); }
public Joins joinRelation(Joins joins, boolean forceOuter, boolean traverse) { if (traverse) HandlerStrategies.assertJoinable(field); return joins; }
public Row getRow(Table table, int action, OpenJPAStateManager sm, boolean create) { // verionable mappings will never want to create rows, so we // can always safely return null if (table != getTable()) return null; return this; }
public void select(Select sel, int idx) { joins[1] = selectAll(sel, vals[idx], sm, store, fetch, eagerMode); } });
public Object loadValue(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadElement(sm, store, fetch, res, joins); }
public Object loadProjection(JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return HandlerStrategies.loadObject(field, null, store, fetch, res, joins, _cols, _load); }
/** * Returns the first independent element mapping, or null. */ private ClassMapping getDefaultElementMapping(boolean traverse) { ClassMapping[] elems = getIndependentElementMappings(traverse); return (elems.length == 0) ? null : elems[0]; }
public Object loadProjection(JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException { return loadElement(null, store, fetch, res, joins); }
public void select(Select sel, int idx) { joins[1] = selectAll(sel, vals[idx], sm, store, fetch, eagerMode); } });