public ForeignKey getBi1ToMElemFK() { if (_bi_1ToM_Elem_FK == null) { getBi_1ToM_JTField(); if (_bi_1ToM_JT_Field != null) _bi_1ToM_Elem_FK = _bi_1ToM_JT_Field.getElementMapping().getForeignKey(); } return _bi_1ToM_Elem_FK; }
/** * The mapping's primary table. */ public Table getTable() { if (_fk != null) return _fk.getTable(); if (_val.getForeignKey() != null) return _val.getForeignKey().getTable(); return getDefiningMapping().getTable(); }
public ForeignKey getBi1ToMElemFK() { if (_bi_1ToM_Elem_FK == null) { getBi_1ToM_JTField(); if (_bi_1ToM_JT_Field != null) _bi_1ToM_Elem_FK = _bi_1ToM_JT_Field.getElementMapping().getForeignKey(); } return _bi_1ToM_Elem_FK; }
public Index getIndex(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) { if (!_indexFK || vm.getForeignKey() == null || !vm.getForeignKey().isLogical()) return null; if (areAllPrimaryKeyColumns(cols)) return null; Index idx = new Index(); idx.setIdentifier(getIndexName(name, table, cols)); return idx; }
public Index getIndex(ValueMapping vm, String name, Table table, Column[] cols) { if (!_indexFK || vm.getForeignKey() == null || !vm.getForeignKey().isLogical()) return null; if (areAllPrimaryKeyColumns(cols)) return null; Index idx = new Index(); idx.setName(getIndexName(name, table, cols)); return idx; }
public Index getIndex(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) { if (!_indexFK || vm.getForeignKey() == null || !vm.getForeignKey().isLogical()) return null; if (areAllPrimaryKeyColumns(cols)) return null; Index idx = new Index(); idx.setIdentifier(getIndexName(name, table, cols)); return idx; }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(_keyRelationName, vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(_keyRelationName, vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(_keyRelationName, vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); ForeignKey fk = vm.getForeignKey(val); if (fk == null) return joins; return joins.joinRelation(field.getName(), fk, val, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); ForeignKey fk = vm.getForeignKey(val); if (fk == null) return joins; return joins.joinRelation(field.getName(), fk, val, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(val), val, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(val), val, vm.getSelectSubclasses(), false, false); }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
protected Joins joinElementRelation(Joins joins, ClassMapping elem) { ValueMapping vm = field.getElementMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(elem), elem, vm.getSelectSubclasses(), false, false); }
public Joins joinKeyRelation(Joins joins, ClassMapping key) { ValueMapping vm = field.getKeyMapping(); return joins.joinRelation(field.getName(), vm.getForeignKey(key), key, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); ForeignKey fk = vm.getForeignKey(val); if (fk == null) return joins; return joins.joinRelation(field.getName(), fk, val, vm.getSelectSubclasses(), false, false); }
public Joins joinValueRelation(Joins joins, ClassMapping val) { ValueMapping vm = field.getElementMapping(); ForeignKey fk = vm.getForeignKey(val); if (fk == null) return joins; return joins.joinRelation(field.getName(), fk, val, vm.getSelectSubclasses(), false, false); }
public Joins join(Joins joins, boolean forceOuter) { ValueMapping elem = field.getElementMapping(); ClassMapping[] clss = elem.getIndependentTypeMappings(); if (clss.length != 1) throw RelationStrategies.unjoinable(elem); if (forceOuter) return joins.outerJoinRelation(field.getName(), elem.getForeignKey(clss[0]), clss[0], elem.getSelectSubclasses(), true, true); return joins.joinRelation(field.getName(), elem.getForeignKey(clss[0]), clss[0], elem.getSelectSubclasses(), true, true); }