|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.merge.DbMerger
public class DbMerger
Traverse a DataNode
and a DataMap
and create a group of
MergerToken
s to alter the DataNode
data store to match the
DataMap
.
Constructor Summary | |
---|---|
DbMerger()
|
Method Summary | |
---|---|
List<MergerToken> |
createMergeTokens(DataNode dataNode,
DataMap dataMap)
Create and return a List of MergerToken s to alter the given
DataNode to match the given DataMap |
List<MergerToken> |
createMergeTokens(DbAdapter adapter,
DataSource dataSource,
DataMap dataMap)
Create and return a List of MergerToken s to alter the given
DataNode to match the given DataMap |
boolean |
includeTableName(String tableName)
A method that return true if the given table name should be included. |
void |
setValueForNullProvider(ValueForNullProvider valueProvider)
Set a ValueForNullProvider that will be used to set value for null on not
null columns |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbMerger()
Method Detail |
---|
public void setValueForNullProvider(ValueForNullProvider valueProvider)
ValueForNullProvider
that will be used to set value for null on not
null columns
public boolean includeTableName(String tableName)
public List<MergerToken> createMergeTokens(DataNode dataNode, DataMap dataMap)
List
of MergerToken
s to alter the given
DataNode
to match the given DataMap
public List<MergerToken> createMergeTokens(DbAdapter adapter, DataSource dataSource, DataMap dataMap)
List
of MergerToken
s to alter the given
DataNode
to match the given DataMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |