/** * Load the object in the current row of the given result. */ public Object load(ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException { if (!mapping.isMapped()) throw new InvalidStateException(_loc.get("virtual-mapping", mapping)); // get the object id for the row; base class selects pk columns ClassMapping base = mapping; while (base.getJoinablePCSuperclassMapping() != null) base = base.getJoinablePCSuperclassMapping(); Object oid = base.getObjectId(this, result, null, true, null); if (oid == null) return null; ConnectionInfo info = new ConnectionInfo(); info.result = result; info.mapping = mapping; return _ctx.find(oid, fetch, exclude, info, 0); }
/** * Load the object in the current row of the given result. */ public Object load(ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException { if (!mapping.isMapped()) throw new InvalidStateException(_loc.get("virtual-mapping", mapping)); // get the object id for the row; base class selects pk columns ClassMapping base = mapping; while (base.getJoinablePCSuperclassMapping() != null) base = base.getJoinablePCSuperclassMapping(); Object oid = base.getObjectId(this, result, null, true, null); if (oid == null) return null; ConnectionInfo info = new ConnectionInfo(); info.result = result; info.mapping = mapping; // if inverse relation is known, exclude loading during find exclude = excludeInverseRelation(mapping, info, exclude); return _ctx.find(oid, fetch, exclude, info, 0); }
/** * Load the object in the current row of the given result. */ public Object load(ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException { if (!mapping.isMapped()) throw new InvalidStateException(_loc.get("virtual-mapping", mapping)); // get the object id for the row; base class selects pk columns ClassMapping base = mapping; while (base.getJoinablePCSuperclassMapping() != null) base = base.getJoinablePCSuperclassMapping(); Object oid = base.getObjectId(this, result, null, true, null); if (oid == null) return null; ConnectionInfo info = new ConnectionInfo(); info.result = result; info.mapping = mapping; // if inverse relation is known, exclude loading during find exclude = excludeInverseRelation(mapping, info, exclude); return _ctx.find(oid, fetch, exclude, info, 0); }
/** * Load the object in the current row of the given result. */ public Object load(ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException { if (!mapping.isMapped()) throw new InvalidStateException(_loc.get("virtual-mapping", mapping)); // get the object id for the row; base class selects pk columns ClassMapping base = mapping; while (base.getJoinablePCSuperclassMapping() != null) base = base.getJoinablePCSuperclassMapping(); Object oid = base.getObjectId(this, result, null, true, null); if (oid == null) return null; ConnectionInfo info = new ConnectionInfo(); info.result = result; info.mapping = mapping; // if inverse relation is known, exclude loading during find exclude = excludeInverseRelation(mapping, info, exclude); return _ctx.find(oid, fetch, exclude, info, 0); }
/** * Load the object in the current row of the given result. */ public Object load(ClassMapping mapping, JDBCFetchConfiguration fetch, BitSet exclude, Result result) throws SQLException { if (!mapping.isMapped()) throw new InvalidStateException(_loc.get("virtual-mapping", mapping)); // get the object id for the row; base class selects pk columns ClassMapping base = mapping; while (base.getJoinablePCSuperclassMapping() != null) base = base.getJoinablePCSuperclassMapping(); Object oid = base.getObjectId(this, result, null, true, null); if (oid == null) return null; ConnectionInfo info = new ConnectionInfo(); info.result = result; info.mapping = mapping; // if inverse relation is known, exclude loading during find exclude = excludeInverseRelation(mapping, info, exclude); return _ctx.find(oid, fetch, exclude, info, 0); }