public class EntityMergeSupport extends Object
| Constructor and Description |
|---|
EntityMergeSupport(ObjectNameGenerator nameGenerator,
NameFilter meaningfulPKsFilter,
boolean removingMeaningfulFKs,
boolean usingPrimitives,
boolean usingJava7Types) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityMergeListener(EntityMergeListener listener)
Registers new EntityMergeListener
|
Collection<DbAttribute> |
getMeaningfulFKs(ObjEntity objEntity)
Returns a list of DbAttributes that are mapped to foreign keys.
|
protected List<DbRelationship> |
getRelationshipsToAdd(ObjEntity objEntity) |
boolean |
isRemovingMeaningfulFKs() |
void |
removeEntityMergeListener(EntityMergeListener listener)
Unregisters an EntityMergeListener
|
void |
setNameGenerator(ObjectNameGenerator nameGenerator) |
boolean |
synchronizeOnDbAttributeAdded(ObjEntity entity,
DbAttribute dbAttribute) |
boolean |
synchronizeOnDbRelationshipAdded(ObjEntity entity,
DbRelationship dbRelationship) |
boolean |
synchronizeWithDbEntities(Iterable<ObjEntity> objEntities)
Updates each one of the collection of ObjEntities, adding attributes and
relationships based on the current state of its DbEntity.
|
boolean |
synchronizeWithDbEntity(ObjEntity entity)
Updates ObjEntity attributes and relationships based on the current state
of its DbEntity.
|
public EntityMergeSupport(ObjectNameGenerator nameGenerator, NameFilter meaningfulPKsFilter, boolean removingMeaningfulFKs, boolean usingPrimitives, boolean usingJava7Types)
public boolean isRemovingMeaningfulFKs()
public boolean synchronizeWithDbEntities(Iterable<ObjEntity> objEntities)
public boolean synchronizeWithDbEntity(ObjEntity entity)
public boolean synchronizeOnDbAttributeAdded(ObjEntity entity, DbAttribute dbAttribute)
public boolean synchronizeOnDbRelationshipAdded(ObjEntity entity, DbRelationship dbRelationship)
public Collection<DbAttribute> getMeaningfulFKs(ObjEntity objEntity)
protected List<DbRelationship> getRelationshipsToAdd(ObjEntity objEntity)
public void addEntityMergeListener(EntityMergeListener listener)
public void removeEntityMergeListener(EntityMergeListener listener)
public void setNameGenerator(ObjectNameGenerator nameGenerator)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.