|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.util.EntityMergeSupport
public class EntityMergeSupport
Implements methods for entity merging.
Field Summary | |
---|---|
protected DataMap |
map
|
protected boolean |
removeMeaningfulFKs
|
Constructor Summary | |
---|---|
EntityMergeSupport(DataMap map)
|
Method Summary | |
---|---|
protected List<DbAttribute> |
getAttributesToAdd(ObjEntity objEntity)
Returns a list of attributes that exist in the DbEntity, but are missing from the ObjEntity. |
DataMap |
getMap()
|
Collection<DbAttribute> |
getMeaningfulFKs(ObjEntity objEntity)
Returns a list of DbAttributes that are mapped to foreign keys. |
protected List<DbRelationship> |
getRelationshipsToAdd(ObjEntity objEntity)
|
boolean |
isRemoveMeaningfulFKs()
|
void |
setMap(DataMap map)
|
void |
setRemoveMeaningfulFKs(boolean removeMeaningfulFKs)
|
boolean |
synchronizeWithDbEntities(Collection<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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataMap map
protected boolean removeMeaningfulFKs
Constructor Detail |
---|
public EntityMergeSupport(DataMap map)
Method Detail |
---|
public boolean synchronizeWithDbEntities(Collection<ObjEntity> objEntities)
public boolean synchronizeWithDbEntity(ObjEntity entity)
public Collection<DbAttribute> getMeaningfulFKs(ObjEntity objEntity)
protected List<DbAttribute> getAttributesToAdd(ObjEntity objEntity)
protected List<DbRelationship> getRelationshipsToAdd(ObjEntity objEntity)
public DataMap getMap()
public void setMap(DataMap map)
public boolean isRemoveMeaningfulFKs()
public void setRemoveMeaningfulFKs(boolean removeMeaningfulFKs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |