|
||||||||||
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 |
getAttributesToAdd(ObjEntity objEntity)
Returns a list of attributes that exist in the DbEntity, but are missing from the ObjEntity. |
DataMap |
getMap()
|
Collection |
getMeaningfulFKs(ObjEntity objEntity)
Returns a list of ObjAttributes that are mapped to foreign keys. |
protected List |
getRelationshipsToAdd(ObjEntity objEntity)
|
boolean |
isRemoveMeaningfulFKs()
|
void |
setMap(DataMap map)
|
void |
setRemoveMeaningfulFKs(boolean removeMeaningfulFKs)
|
boolean |
synchronizeWithDbEntities(Collection 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 objEntities)
public boolean synchronizeWithDbEntity(ObjEntity entity)
public Collection getMeaningfulFKs(ObjEntity objEntity)
protected List getAttributesToAdd(ObjEntity objEntity)
protected List 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 |