@Override public boolean canOuterJoin(int syntax, ForeignKey fk) { if (!super.canOuterJoin(syntax, fk)) return false; if (fk != null && syntax == SYNTAX_DATABASE) { if (fk.getConstants().length > 0) return false; if (fk.getPrimaryKeyConstants().length > 0) return false; } return true; }
@Override public boolean canOuterJoin(int syntax, ForeignKey fk) { if (!super.canOuterJoin(syntax, fk)) return false; if (fk != null && syntax == SYNTAX_DATABASE) { if (fk.getConstants().length > 0) return false; if (fk.getPrimaryKeyConstants().length > 0) return false; } return true; }
@Override public boolean canOuterJoin(int syntax, ForeignKey fk) { if (!super.canOuterJoin(syntax, fk)) return false; if (fk != null && syntax == SYNTAX_DATABASE) { if (fk.getConstants().length > 0) return false; if (fk.getPrimaryKeyConstants().length > 0) return false; } return true; }
public boolean canOuterJoin(int syntax, ForeignKey fk) { if (!super.canOuterJoin(syntax, fk)) return false; if (fk != null && syntax == SYNTAX_DATABASE) { if (fk.getConstants().length > 0) return false; if (fk.getPrimaryKeyConstants().length > 0) return false; } return true; }
@Override public boolean canOuterJoin(int syntax, ForeignKey fk) { if (!super.canOuterJoin(syntax, fk)) return false; if (fk != null && syntax == SYNTAX_DATABASE) { if (fk.getConstants().length > 0) return false; if (fk.getPrimaryKeyConstants().length > 0) return false; } return true; }
public boolean supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) { return store.getDBDictionary().canOuterJoin(sel.getJoinSyntax(), cls.getJoinForeignKey()); } }
public boolean supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) { return store.getDBDictionary().canOuterJoin(sel.getJoinSyntax(), cls.getJoinForeignKey()); } }
public boolean supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) { return store.getDBDictionary().canOuterJoin(sel.getJoinSyntax(), cls.getJoinForeignKey()); } }
public boolean supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) { return store.getDBDictionary().canOuterJoin(sel.getJoinSyntax(), cls.getJoinForeignKey()); } }
public boolean supportsEagerSelect(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) { return store.getDBDictionary().canOuterJoin(sel.getJoinSyntax(), cls.getJoinForeignKey()); } }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (field.isLRS()) return 0; if (type == Select.EAGER_PARALLEL) return Math.max(1, getIndependentElementMappings(true).length); if (type != Select.EAGER_INNER && type != Select.EAGER_OUTER) return 0; if (getIndependentElementMappings(true).length > 1) return 0; return (type == Select.EAGER_INNER || store.getDBDictionary(). canOuterJoin(sel.getJoinSyntax(), getJoinForeignKey (getDefaultElementMapping(false)))) ? 1 : 0; }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (field.isLRS()) return 0; if (type == Select.EAGER_PARALLEL) return Math.max(1, getIndependentElementMappings(true).length); if (type != Select.EAGER_INNER && type != Select.EAGER_OUTER) return 0; if (getIndependentElementMappings(true).length > 1) return 0; return (type == Select.EAGER_INNER || store.getDBDictionary(). canOuterJoin(sel.getJoinSyntax(), getJoinForeignKey (getDefaultElementMapping(false)))) ? 1 : 0; }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (field.isLRS()) return 0; if (type == Select.EAGER_PARALLEL) return Math.max(1, getIndependentElementMappings(true).length); if (type != Select.EAGER_INNER && type != Select.EAGER_OUTER) return 0; if (getIndependentElementMappings(true).length > 1) return 0; return (type == Select.EAGER_INNER || store.getDBDictionary(). canOuterJoin(sel.getJoinSyntax(), getJoinForeignKey (getDefaultElementMapping(false)))) ? 1 : 0; }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (field.isLRS()) return 0; if (type == Select.EAGER_PARALLEL) return Math.max(1, getIndependentElementMappings(true).length); if (type != Select.EAGER_INNER && type != Select.EAGER_OUTER) return 0; if (getIndependentElementMappings(true).length > 1) return 0; return (type == Select.EAGER_INNER || store.getDBDictionary(). canOuterJoin(sel.getJoinSyntax(), getJoinForeignKey (getDefaultElementMapping(false)))) ? 1 : 0; }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (field.isLRS()) return 0; if (type == Select.EAGER_PARALLEL) return Math.max(1, getIndependentElementMappings(true).length); if (type != Select.EAGER_INNER && type != Select.EAGER_OUTER) return 0; if (getIndependentElementMappings(true).length > 1) return 0; return (type == Select.EAGER_INNER || store.getDBDictionary(). canOuterJoin(sel.getJoinSyntax(), getJoinForeignKey (getDefaultElementMapping(false)))) ? 1 : 0; }
if (join.getType() == Join.TYPE_INNER) { if (join.getForeignKey() != null && !_dict.canOuterJoin(_joinSyntax, join.getForeignKey())) { Log log = _conf.getLog(JDBCConfiguration.LOG_JDBC); if (log.isWarnEnabled())
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (type == Select.TYPE_JOINLESS) return (field.getJoinDirection() != field.JOIN_INVERSE && sel.isSelected(field.getTable())) ? 1 : 0; if (type == Select.TYPE_TWO_PART) return 1; // already cached? if (sm != null) { Object oid = sm.getIntermediate(field.getIndex()); if (store.getContext().findCached(oid, null) != null) return 0; } ClassMapping[] clss = field.getIndependentTypeMappings(); switch (type) { case Select.EAGER_PARALLEL: return clss.length; case Select.EAGER_OUTER: return (clss.length == 1 && store.getDBDictionary().canOuterJoin (sel.getJoinSyntax(), field.getForeignKey(clss[0]))) ? 1 : 0; case Select.EAGER_INNER: return (clss.length == 1) ? 1 : 0; default: return 0; } }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (type == Select.TYPE_JOINLESS) return (field.getJoinDirection() != field.JOIN_INVERSE && sel.isSelected(field.getTable())) ? 1 : 0; if (type == Select.TYPE_TWO_PART) return 1; // already cached? if (sm != null) { Object oid = sm.getIntermediate(field.getIndex()); if (store.getContext().findCached(oid, null) != null) return 0; } ClassMapping[] clss = field.getIndependentTypeMappings(); switch (type) { case Select.EAGER_PARALLEL: return clss.length; case Select.EAGER_OUTER: return (clss.length == 1 && store.getDBDictionary().canOuterJoin (sel.getJoinSyntax(), field.getForeignKey(clss[0]))) ? 1 : 0; case Select.EAGER_INNER: return (clss.length == 1) ? 1 : 0; default: return 0; } }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (type == Select.TYPE_JOINLESS) return (field.getJoinDirection() != field.JOIN_INVERSE && sel.isSelected(field.getTable())) ? 1 : 0; if (type == Select.TYPE_TWO_PART) return 1; // already cached? if (sm != null) { Object oid = sm.getIntermediate(field.getIndex()); if (store.getContext().findCached(oid, null) != null) return 0; } ClassMapping[] clss = field.getIndependentTypeMappings(); switch (type) { case Select.EAGER_PARALLEL: return clss.length; case Select.EAGER_OUTER: return (clss.length == 1 && store.getDBDictionary().canOuterJoin (sel.getJoinSyntax(), field.getForeignKey(clss[0]))) ? 1 : 0; case Select.EAGER_INNER: return (clss.length == 1) ? 1 : 0; default: return 0; } }
public int supportsSelect(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) { if (type == Select.TYPE_JOINLESS) return (field.getJoinDirection() != field.JOIN_INVERSE && sel.isSelected(field.getTable())) ? 1 : 0; if (type == Select.TYPE_TWO_PART) return 1; // already cached? if (sm != null) { Object oid = sm.getIntermediate(field.getIndex()); if (store.getContext().findCached(oid, null) != null) return 0; } ClassMapping[] clss = field.getIndependentTypeMappings(); switch (type) { case Select.EAGER_PARALLEL: return clss.length; case Select.EAGER_OUTER: return (clss.length == 1 && store.getDBDictionary().canOuterJoin (sel.getJoinSyntax(), field.getForeignKey(clss[0]))) ? 1 : 0; case Select.EAGER_INNER: return (clss.length == 1) ? 1 : 0; default: return 0; } }