public static class ERXJDBCUtilities.CopyTask extends Object
Modifier and Type | Field and Description |
---|---|
protected Connection |
_dest |
protected NSDictionary |
_destDictionary |
protected NSMutableArray<EOEntity> |
_entities |
protected boolean |
_quoteDestination |
protected boolean |
_quoteSource |
protected Connection |
_source |
protected NSDictionary |
_sourceDictionary |
Constructor and Description |
---|
CopyTask() |
CopyTask(EOEntity anEntity) |
CopyTask(EOModel aModel) |
CopyTask(EOModelGroup aModelGroup) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntitiesFromModel(EOModel model) |
protected void |
addEntitiesFromModelGroup(EOModelGroup group) |
void |
addEntity(EOEntity entity) |
protected EOAttribute[] |
attributesArray(NSArray<EOAttribute> array) |
protected String[] |
columnsFromAttributes(EOAttribute[] attributes,
boolean quoteNames) |
protected NSArray<String> |
columnsFromAttributesAsArray(EOAttribute[] attributes,
boolean quoteNames) |
void |
commit() |
void |
connect(NSDictionary aSourceConnectionDict,
NSDictionary aDestConnectionDict) |
void |
connect(String sourcePrefix,
String destPrefix) |
protected Connection |
connectionWithDictionary(NSDictionary dict) |
protected void |
copyEntity(EOEntity entity) |
void |
run() |
void |
run(boolean commitAtEnd) |
protected NSDictionary _sourceDictionary
protected NSDictionary _destDictionary
protected Connection _source
protected Connection _dest
protected boolean _quoteSource
protected boolean _quoteDestination
protected NSMutableArray<EOEntity> _entities
public CopyTask(EOModelGroup aModelGroup)
public CopyTask(EOModel aModel)
public CopyTask(EOEntity anEntity)
public CopyTask()
public void connect(NSDictionary aSourceConnectionDict, NSDictionary aDestConnectionDict) throws SQLException
SQLException
public void connect(String sourcePrefix, String destPrefix) throws SQLException
SQLException
protected void addEntitiesFromModelGroup(EOModelGroup group)
protected void addEntitiesFromModel(EOModel model)
public void addEntity(EOEntity entity)
public void run() throws SQLException
SQLException
public void run(boolean commitAtEnd) throws SQLException
SQLException
public void commit() throws SQLException
SQLException
protected Connection connectionWithDictionary(NSDictionary dict) throws SQLException
SQLException
protected String[] columnsFromAttributes(EOAttribute[] attributes, boolean quoteNames)
protected NSArray<String> columnsFromAttributesAsArray(EOAttribute[] attributes, boolean quoteNames)
protected EOAttribute[] attributesArray(NSArray<EOAttribute> array)
protected void copyEntity(EOEntity entity) throws SQLException
SQLException
Copyright © 2002 – 2024 Project Wonder.