public final class ProviderOperator
extends java.lang.Object
| Constructor and Description | 
|---|
ProviderOperator(DBObjectProvider pro)
Creates a new operator for making changes in the given provider. 
 | 
ProviderOperator(DBObjectProvider pro, Context context)
Creates a new operator for making changes in the given provider. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
createObjects(SystemObject[] objs)
Creates the given objects in the provider. 
 | 
Difference | 
difference(SystemObject[] orig, SystemObject[] upd)
Diffs the two sets of objects using the provider's DiffEngine. 
 | 
static java.lang.String | 
getTitle(DBEditorConfig config)
Gets a default generic title appropriate for the given editor config. 
 | 
boolean | 
updateObjects(DBEditorConfig config)
Creates or updates the object in the given editor config using the CascadeConfirmDialog. 
 | 
boolean | 
updateObjects(SystemObject[] old, SystemObject[] updateObjs)
Updates the given objects in the provider. 
 | 
public ProviderOperator(DBObjectProvider pro)
pro - the provider the operations will be performed inpublic ProviderOperator(DBObjectProvider pro, Context context)
pro - the provider the operations will be performed incontext - the IDE context we're working withinpublic Difference difference(SystemObject[] orig, SystemObject[] upd)
public boolean createObjects(SystemObject[] objs)
the - objects to createDBObjectProvider.createObjects(SystemObject[],boolean)public boolean updateObjects(SystemObject[] old, SystemObject[] updateObjs)
public boolean updateObjects(DBEditorConfig config)
config - contains provider, new object and (when editing) original object to update with.public static java.lang.String getTitle(DBEditorConfig config)