public void populateColumns(ValueMapping vm, String name, Table table, Column[] cols) { populateColumns(vm, DBIdentifier.newColumn(name), table, cols); }
public void populateColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) { for (int i = 0; i < cols.length; i++) correctName(table, cols[i]); }
public Object getStrategy(ClassMapping cls, boolean adapt) { if (adapt || defaultMissingInfo()) return (cls.getMappedPCSuperclassMapping() == null) ? _baseClassStrategy : _subclassStrategy; return null; }
public Index getJoinIndex(FieldMapping fm, Table table, Column[] cols) { if (!_indexFK || fm.getJoinForeignKey() == null || !fm.getJoinForeignKey().isLogical()) return null; if (areAllPrimaryKeyColumns(cols)) return null; Index idx = new Index(); idx.setIdentifier(getIndexName(DBIdentifier.NULL, table, cols)); return idx; }
public Index getIndex(Discriminator disc, Table table, Column[] cols) { if (!_indexDisc) return null; Index idx = new Index(); idx.setIdentifier(getIndexName(_discName, table, cols)); return idx; }
/** * Default base name for null indicator columns, or null to the mapping's * built-in name. * @deprecated */ public String getNullIndicatorColumnName() { return getNullIndicatorColumnIdentifier().getName(); }
/** * @deprecated */ public ForeignKey getForeignKey(ValueMapping vm, String name, Table local, Table foreign, boolean inverse) { return getForeignKey(vm, DBIdentifier.newForeignKey(name), local, foreign, inverse); }
/** * Default base name for discriminator columns, or null to the mapping's * built-in name. * @deprecated */ public String getDiscriminatorColumnName() { return getDiscriminatorColumnIdentifier().getName(); }
/** * Default base name for datastore identity columns, or null to the * mapping's built-in name. * @deprecated */ public String getDataStoreIdColumnName() { return getDataStoreIdColumnIdentifier().getName(); }
/** * @deprecated */ public Index getIndex(ValueMapping vm, String name, Table table, Column[] cols) { return getIndex(vm, DBIdentifier.newIndex(name), table, cols); }
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(Version vers, Table table, Column[] cols) { if (!_indexVers) return null; Index idx = new Index(); idx.setIdentifier(getIndexName(_versName, table, cols)); return idx; }
/** * Default base name for null indicator columns, or null to the mapping's * built-in name. * @deprecated */ public String getNullIndicatorColumnName() { return getNullIndicatorColumnIdentifier().getName(); }
/** * @deprecated */ public ForeignKey getForeignKey(ValueMapping vm, String name, Table local, Table foreign, boolean inverse) { return getForeignKey(vm, DBIdentifier.newForeignKey(name), local, foreign, inverse); }
/** * Default base name for discriminator columns, or null to the mapping's * built-in name. * @deprecated */ public String getDiscriminatorColumnName() { return getDiscriminatorColumnIdentifier().getName(); }
/** * Default base name for datastore identity columns, or null to the * mapping's built-in name. * @deprecated */ public String getDataStoreIdColumnName() { return getDataStoreIdColumnIdentifier().getName(); }
/** * @deprecated */ public Index getIndex(ValueMapping vm, String name, Table table, Column[] cols) { return getIndex(vm, DBIdentifier.newIndex(name), table, cols); }
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 void populateColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) { for (int i = 0; i < cols.length; i++) correctName(table, cols[i]); }
public Object getStrategy(ClassMapping cls, boolean adapt) { if (adapt || defaultMissingInfo()) return (cls.getMappedPCSuperclassMapping() == null) ? _baseClassStrategy : _subclassStrategy; return null; }