/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _cols = Schemas.EMPTY_COLUMNS; _fk = null; _table = null; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _cols = Schemas.EMPTY_COLUMNS; _fk = null; _table = null; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _cols = Schemas.EMPTY_COLUMNS; _fk = null; _table = null; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _cols = Schemas.EMPTY_COLUMNS; _fk = null; _table = null; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _cols = Schemas.EMPTY_COLUMNS; _fk = null; _table = null; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (getEmbeddingMetaData() == null) _info.syncWith(this); else { _info.clear(); FieldMapping[] fields = getFieldMappings(); for (int i = 0; i < fields.length; i++) fields[i].syncMappingInfo(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (getEmbeddingMetaData() == null) _info.syncWith(this); else { _info.clear(); FieldMapping[] fields = getFieldMappings(); for (int i = 0; i < fields.length; i++) fields[i].syncMappingInfo(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (getEmbeddingMetaData() == null) _info.syncWith(this); else { _info.clear(); FieldMapping[] fields = getFieldMappings(); for (int i = 0; i < fields.length; i++) fields[i].syncMappingInfo(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (getEmbeddingMetaData() == null) _info.syncWith(this); else { _info.clear(); FieldMapping[] fields = getFieldMappings(); for (int i = 0; i < fields.length; i++) fields[i].syncMappingInfo(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (getEmbeddingMetaData() == null) _info.syncWith(this); else { _info.clear(); FieldMapping[] fields = getFieldMappings(); for (int i = 0; i < fields.length; i++) fields[i].syncMappingInfo(); } }
/** * Synchronize internal information with the mapping data for the given * class. */ public void syncWith(ClassMapping cls) { clear(false); ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (cls.getTable() != null && (sup == null || sup.getTable() != cls.getTable())) _tableName = cls.getMappingRepository().getDBDictionary(). getFullIdentifier(cls.getTable(), true); // set io before syncing cols setColumnIO(cls.getColumnIO()); if (cls.getJoinForeignKey() != null && sup != null && sup.getTable() != null) syncForeignKey(cls, cls.getJoinForeignKey(), cls.getTable(), sup.getTable()); else if (cls.getIdentityType() == ClassMapping.ID_DATASTORE) syncColumns(cls, cls.getPrimaryKeyColumns(), false); // record inheritance strategy if class does not use default strategy // for base classes, and for all subclasses so we can be sure subsequent // mapping runs don't think subclass is unmapped String strat = (cls.getStrategy() == null) ? null : cls.getStrategy().getAlias(); if (strat != null && (cls.getPCSuperclass() != null || !FullClassStrategy.ALIAS.equals(strat))) setStrategy(strat); }
/** * Synchronize internal information with the mapping data for the given * class. */ public void syncWith(ClassMapping cls) { clear(false); ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (cls.getTable() != null && (sup == null || sup.getTable() != cls.getTable())) _tableName = cls.getMappingRepository().getDBDictionary(). getFullIdentifier(cls.getTable(), true); // set io before syncing cols setColumnIO(cls.getColumnIO()); if (cls.getJoinForeignKey() != null && sup != null && sup.getTable() != null) syncForeignKey(cls, cls.getJoinForeignKey(), cls.getTable(), sup.getTable()); else if (cls.getIdentityType() == ClassMapping.ID_DATASTORE) syncColumns(cls, cls.getPrimaryKeyColumns(), false); // record inheritance strategy if class does not use default strategy // for base classes, and for all subclasses so we can be sure subsequent // mapping runs don't think subclass is unmapped String strat = (cls.getStrategy() == null) ? null : cls.getStrategy().getAlias(); if (strat != null && (cls.getPCSuperclass() != null || !FullClassStrategy.ALIAS.equals(strat))) setStrategy(strat); }
/** * Synchronize internal information with the mapping data for the given * class. */ public void syncWith(ClassMapping cls) { clear(false); ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (cls.getTable() != null && (sup == null || sup.getTable() != cls.getTable())) _tableName = cls.getMappingRepository().getDBDictionary(). getFullIdentifier(cls.getTable(), true); // set io before syncing cols setColumnIO(cls.getColumnIO()); if (cls.getJoinForeignKey() != null && sup != null && sup.getTable() != null) syncForeignKey(cls, cls.getJoinForeignKey(), cls.getTable(), sup.getTable()); else if (cls.getIdentityType() == ClassMapping.ID_DATASTORE) syncColumns(cls, cls.getPrimaryKeyColumns(), false); // record inheritance strategy if class does not use default strategy // for base classes, and for all subclasses so we can be sure subsequent // mapping runs don't think subclass is unmapped String strat = (cls.getStrategy() == null) ? null : cls.getStrategy().getAlias(); if (strat != null && (cls.getPCSuperclass() != null || !FullClassStrategy.ALIAS.equals(strat))) setStrategy(strat); }
/** * Synchronize internal information with the mapping data for the given * class. */ public void syncWith(ClassMapping cls) { clear(false); ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (cls.getTable() != null && (sup == null || sup.getTable() != cls.getTable())) _tableName = cls.getMappingRepository().getDBDictionary(). getFullIdentifier(cls.getTable(), true); // set io before syncing cols setColumnIO(cls.getColumnIO()); if (cls.getJoinForeignKey() != null && sup != null && sup.getTable() != null) syncForeignKey(cls, cls.getJoinForeignKey(), cls.getTable(), sup.getTable()); else if (cls.getIdentityType() == ClassMapping.ID_DATASTORE) syncColumns(cls, cls.getPrimaryKeyColumns(), false); // record inheritance strategy if class does not use default strategy // for base classes, and for all subclasses so we can be sure subsequent // mapping runs don't think subclass is unmapped String strat = (cls.getStrategy() == null) ? null : cls.getStrategy().getAlias(); if (strat != null && (cls.getPCSuperclass() != null || !FullClassStrategy.ALIAS.equals(strat))) setStrategy(strat); }
/** * Synchronize internal information with the mapping data for the given * class. */ public void syncWith(ClassMapping cls) { clear(false); ClassMapping sup = cls.getMappedPCSuperclassMapping(); if (cls.getTable() != null && (sup == null || sup.getTable() != cls.getTable())) _tableName = cls.getMappingRepository().getDBDictionary(). getFullName(cls.getTable(), true); // set io before syncing cols setColumnIO(cls.getColumnIO()); if (cls.getJoinForeignKey() != null && sup != null && sup.getTable() != null) syncForeignKey(cls, cls.getJoinForeignKey(), cls.getTable(), sup.getTable()); else if (cls.getIdentityType() == ClassMapping.ID_DATASTORE) syncColumns(cls, cls.getPrimaryKeyColumns(), false); // record inheritance strategy if class does not use default strategy // for base classes, and for all subclasses so we can be sure subsequent // mapping runs don't think subclass is unmapped String strat = (cls.getStrategy() == null) ? null : cls.getStrategy().getAlias(); if (strat != null && (cls.getPCSuperclass() != null || !FullClassStrategy.ALIAS.equals(strat))) setStrategy(strat); }