public static class ERXEC.DefaultFactory extends Object implements ERXEC.Factory
Modifier and Type | Field and Description |
---|---|
protected Object |
defaultEditingContextDelegate
holds a reference to the default ec delegate
|
protected Object |
defaultNoValidationDelegate
holds a reference to the default no validation delegate
|
protected Boolean |
useSharedEditingContext
holds whether to newly created instances use the shared editing
context.
|
Constructor and Description |
---|
DefaultFactory() |
Modifier and Type | Method and Description |
---|---|
protected EOEditingContext |
_createEditingContext(EOObjectStore parent)
Actual EC creation bottleneck.
|
EOEditingContext |
_newEditingContext()
See static method for documentation.
|
EOEditingContext |
_newEditingContext(boolean validationEnabled)
See static method for documentation.
|
EOEditingContext |
_newEditingContext(EOObjectStore objectStore)
See static method for documentation.
|
EOEditingContext |
_newEditingContext(EOObjectStore objectStore,
boolean validationEnabled)
See static method for documentation.
|
Object |
defaultEditingContextDelegate()
Returns the default editing context delegate.
|
Object |
defaultNoValidationDelegate()
Default delegate that does not perform validation.
|
protected Constructor |
editingContextConstructor() |
void |
setDefaultDelegateOnEditingContext(EOEditingContext ec)
Sets the default editing context delegate on the given editing
context.
|
void |
setDefaultDelegateOnEditingContext(EOEditingContext ec,
boolean validation)
Sets either the default editing context delegate that does or does
not allow validation based on the validation flag passed in on the
given editing context.
|
void |
setDefaultEditingContextDelegate(Object delegate)
Sets the default editing context delegate to be used for editing
context creation.
|
void |
setDefaultNoValidationDelegate(Object delegate)
Sets the default editing context delegate to be used for editing
context creation that does not allow validation.
|
void |
setUseSharedEditingContext(boolean value) |
boolean |
useSharedEditingContext() |
protected Object defaultEditingContextDelegate
protected Object defaultNoValidationDelegate
protected Boolean useSharedEditingContext
public Object defaultEditingContextDelegate()
defaultEditingContextDelegate
in interface ERXEC.Factory
public void setDefaultEditingContextDelegate(Object delegate)
setDefaultEditingContextDelegate
in interface ERXEC.Factory
delegate
- to be set on every created editing context by default.public Object defaultNoValidationDelegate()
defaultNoValidationDelegate
in interface ERXEC.Factory
public void setDefaultNoValidationDelegate(Object delegate)
setDefaultNoValidationDelegate
in interface ERXEC.Factory
delegate
- to be set on every created editing context that doesn't
allow validation.public void setDefaultDelegateOnEditingContext(EOEditingContext ec, boolean validation)
setDefaultDelegateOnEditingContext
in interface ERXEC.Factory
ec
- editing context to have it's delegate set.validation
- flag that determines if the editing context should perform
validation on objects being saved.public void setDefaultDelegateOnEditingContext(EOEditingContext ec)
setDefaultDelegateOnEditingContext
in interface ERXEC.Factory
ec
- editing context to have it's delegate set.public EOEditingContext _newEditingContext()
_newEditingContext
in interface ERXEC.Factory
public EOEditingContext _newEditingContext(boolean validationEnabled)
_newEditingContext
in interface ERXEC.Factory
public EOEditingContext _newEditingContext(EOObjectStore objectStore)
_newEditingContext
in interface ERXEC.Factory
public EOEditingContext _newEditingContext(EOObjectStore objectStore, boolean validationEnabled)
_newEditingContext
in interface ERXEC.Factory
protected Constructor editingContextConstructor()
protected EOEditingContext _createEditingContext(EOObjectStore parent)
er.extensions.ERXEC.editingContextClassName
property to
specify the name of your editing context class to be instantiated and returned by this method.parent
- The parent EOObjectStore for the editing context created and returned by this methodpublic boolean useSharedEditingContext()
useSharedEditingContext
in interface ERXEC.Factory
public void setUseSharedEditingContext(boolean value)
setUseSharedEditingContext
in interface ERXEC.Factory
Copyright © 2002 – 2024 Project Wonder.