/** * The given table name. * @deprecated */ public String getTableName() { return getTableIdentifier().getName(); }
/** * The given table name. * @deprecated */ public String getTableName() { return getTableIdentifier().getName(); }
/** * The given table name. * @deprecated */ public String getTableName() { return getTableIdentifier().getName(); }
/** * The given table name. * @deprecated */ public String getTableName() { return getTableIdentifier().getName(); }
public void copy(MappingInfo info) { super.copy(info); if (!(info instanceof ClassMappingInfo)) return; ClassMappingInfo cinfo = (ClassMappingInfo) info; if (DBIdentifier.isNull(_tableName)) _tableName = cinfo.getTableIdentifier(); if (_subStrat == null) _subStrat = cinfo.getHierarchyStrategy(); if (cinfo._seconds != null) { if (_seconds == null) _seconds = new HashMap<DBIdentifier, List<Column>>(); DBIdentifier key; for (Iterator<DBIdentifier> itr = cinfo._seconds.keySet().iterator(); itr.hasNext();) { key = itr.next(); if (!_seconds.containsKey(key)) _seconds.put(key, cinfo._seconds.get(key)); } } if (cinfo._uniques != null) { if (_uniques == null) _uniques = new HashMap<DBIdentifier, List<Unique>>(); for (Entry<DBIdentifier, List<Unique>> entry : cinfo._uniques.entrySet()) if (!_uniques.containsKey(entry.getKey())) _uniques.put(entry.getKey(), entry.getValue()); } }
public void copy(MappingInfo info) { super.copy(info); if (!(info instanceof ClassMappingInfo)) return; ClassMappingInfo cinfo = (ClassMappingInfo) info; if (DBIdentifier.isNull(_tableName)) _tableName = cinfo.getTableIdentifier(); if (_subStrat == null) _subStrat = cinfo.getHierarchyStrategy(); if (cinfo._seconds != null) { if (_seconds == null) _seconds = new HashMap<DBIdentifier, List<Column>>(); DBIdentifier key; for (Iterator<DBIdentifier> itr = cinfo._seconds.keySet().iterator(); itr.hasNext();) { key = itr.next(); if (!_seconds.containsKey(key)) _seconds.put(key, cinfo._seconds.get(key)); } } if (cinfo._uniques != null) { if (_uniques == null) _uniques = new HashMap<DBIdentifier, List<Unique>>(); for (Entry<DBIdentifier, List<Unique>> entry : cinfo._uniques.entrySet()) if (!_uniques.containsKey(entry.getKey())) _uniques.put(entry.getKey(), entry.getValue()); } }
public void copy(MappingInfo info) { super.copy(info); if (!(info instanceof ClassMappingInfo)) return; ClassMappingInfo cinfo = (ClassMappingInfo) info; if (DBIdentifier.isNull(_tableName)) _tableName = cinfo.getTableIdentifier(); if (_subStrat == null) _subStrat = cinfo.getHierarchyStrategy(); if (cinfo._seconds != null) { if (_seconds == null) _seconds = new HashMap<DBIdentifier, List<Column>>(); DBIdentifier key; for (Iterator<DBIdentifier> itr = cinfo._seconds.keySet().iterator(); itr.hasNext();) { key = itr.next(); if (!_seconds.containsKey(key)) _seconds.put(key, cinfo._seconds.get(key)); } } if (cinfo._uniques != null) { if (_uniques == null) _uniques = new HashMap<DBIdentifier, List<Unique>>(); for (Entry<DBIdentifier, List<Unique>> entry : cinfo._uniques.entrySet()) if (!_uniques.containsKey(entry.getKey())) _uniques.put(entry.getKey(), entry.getValue()); } }
public void copy(MappingInfo info) { super.copy(info); if (!(info instanceof ClassMappingInfo)) return; ClassMappingInfo cinfo = (ClassMappingInfo) info; if (DBIdentifier.isNull(_tableName)) _tableName = cinfo.getTableIdentifier(); if (_subStrat == null) _subStrat = cinfo.getHierarchyStrategy(); if (cinfo._seconds != null) { if (_seconds == null) _seconds = new HashMap<DBIdentifier, List<Column>>(); DBIdentifier key; for (Iterator<DBIdentifier> itr = cinfo._seconds.keySet().iterator(); itr.hasNext();) { key = itr.next(); if (!_seconds.containsKey(key)) _seconds.put(key, cinfo._seconds.get(key)); } } if (cinfo._uniques != null) { if (_uniques == null) _uniques = new HashMap<DBIdentifier, List<Unique>>(); for (Entry<DBIdentifier, List<Unique>> entry : cinfo._uniques.entrySet()) if (!_uniques.containsKey(entry.getKey())) _uniques.put(entry.getKey(), entry.getValue()); } }
public void map(boolean adapt) { ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (sup == null || cls.getEmbeddingMetaData() != null) throw new MetaDataException(_loc.get("not-sub", cls)); ClassMappingInfo info = cls.getMappingInfo(); info.assertNoSchemaComponents(cls, true); if (!DBIdentifier.isNull(info.getTableIdentifier())) { Table table = info.createTable(cls, null, info.getSchemaIdentifier(), info.getTableIdentifier(), false); if (table != sup.getTable()) throw new MetaDataException(_loc.get("flat-table", cls, table.getFullName(), sup.getTable().getFullName())); } cls.setTable(sup.getTable()); cls.setPrimaryKeyColumns(sup.getPrimaryKeyColumns()); cls.setColumnIO(sup.getColumnIO()); }
public void map(boolean adapt) { ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (sup == null || cls.getEmbeddingMetaData() != null) throw new MetaDataException(_loc.get("not-sub", cls)); ClassMappingInfo info = cls.getMappingInfo(); info.assertNoSchemaComponents(cls, true); if (!DBIdentifier.isNull(info.getTableIdentifier())) { Table table = info.createTable(cls, null, info.getSchemaIdentifier(), info.getTableIdentifier(), false); if (table != sup.getTable()) throw new MetaDataException(_loc.get("flat-table", cls, table.getFullName(), sup.getTable().getFullName())); } cls.setTable(sup.getTable()); cls.setPrimaryKeyColumns(sup.getPrimaryKeyColumns()); cls.setColumnIO(sup.getColumnIO()); }
public void map(boolean adapt) { ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (sup == null || cls.getEmbeddingMetaData() != null) throw new MetaDataException(_loc.get("not-sub", cls)); ClassMappingInfo info = cls.getMappingInfo(); info.assertNoSchemaComponents(cls, true); if (!DBIdentifier.isNull(info.getTableIdentifier())) { Table table = info.createTable(cls, null, info.getSchemaIdentifier(), info.getTableIdentifier(), false); if (table != sup.getTable()) throw new MetaDataException(_loc.get("flat-table", cls, table.getFullName(), sup.getTable().getFullName())); } cls.setTable(sup.getTable()); cls.setPrimaryKeyColumns(sup.getPrimaryKeyColumns()); cls.setColumnIO(sup.getColumnIO()); }
public void map(boolean adapt) { ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (sup == null || cls.getEmbeddingMetaData() != null) throw new MetaDataException(_loc.get("not-sub", cls)); ClassMappingInfo info = cls.getMappingInfo(); info.assertNoSchemaComponents(cls, true); if (!DBIdentifier.isNull(info.getTableIdentifier())) { Table table = info.createTable(cls, null, info.getSchemaIdentifier(), info.getTableIdentifier(), false); if (table != sup.getTable()) throw new MetaDataException(_loc.get("flat-table", cls, table.getFullName(), sup.getTable().getFullName())); } cls.setTable(sup.getTable()); cls.setPrimaryKeyColumns(sup.getPrimaryKeyColumns()); cls.setColumnIO(sup.getColumnIO()); }
ClassMappingInfo info = ((ClassMapping) ctx).getMappingInfo(); tableName = (_secondaryTable == null) ? info.getTableIdentifier() : DBIdentifier.newTable(_secondaryTable, delimit()); info.addUnique(tableName, unique); } else if (ctx instanceof FieldMapping) {// JoinTable
ClassMappingInfo info = ((ClassMapping) ctx).getMappingInfo(); tableName = (_secondaryTable == null) ? info.getTableIdentifier() : DBIdentifier.newTable(_secondaryTable, delimit()); info.addUnique(tableName, unique); } else if (ctx instanceof FieldMapping) {// JoinTable
ClassMappingInfo info = ((ClassMapping) ctx).getMappingInfo(); tableName = (_secondaryTable == null) ? info.getTableIdentifier() : DBIdentifier.newTable(_secondaryTable, delimit()); info.addUnique(tableName, unique); } else if (ctx instanceof FieldMapping) {// JoinTable