ERXEC.DefaultFactory Class Reference

Inherits er::extensions::eof::ERXEC::Factory.

Inherited by ERXObjectStoreCoordinatorPool.MultiOSCFactory.

Collaboration diagram for ERXEC.DefaultFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EOEditingContext _newEditingContext (EOObjectStore objectStore, boolean validationEnabled)
EOEditingContext _newEditingContext (EOObjectStore objectStore)
EOEditingContext _newEditingContext (boolean validationEnabled)
EOEditingContext _newEditingContext ()
Object defaultEditingContextDelegate ()
 DefaultFactory ()
Object defaultNoValidationDelegate ()
void setDefaultDelegateOnEditingContext (EOEditingContext ec)
void setDefaultDelegateOnEditingContext (EOEditingContext ec, boolean validation)
void setDefaultEditingContextDelegate (Object delegate)
void setDefaultNoValidationDelegate (Object delegate)
void setUseSharedEditingContext (boolean value)
boolean useSharedEditingContext ()

Static Public Attributes

static final Logger log = Logger.getLogger(DefaultFactory.class)

Protected Member Functions

EOEditingContext _createEditingContext (EOObjectStore parent)

Protected Attributes

Object defaultEditingContextDelegate
Object defaultNoValidationDelegate
Boolean useSharedEditingContext = null


Detailed Description

Default implementation of the Factory interface.

Constructor & Destructor Documentation

DefaultFactory (  ) 


Member Function Documentation

EOEditingContext _createEditingContext ( EOObjectStore  parent  )  [protected]

Actual EC creation bottleneck. Override this to return other subclasses.

EOEditingContext _newEditingContext ( EOObjectStore  objectStore,
boolean  validationEnabled 
)

See static method for documentation.

Implements ERXEC.Factory.

EOEditingContext _newEditingContext ( EOObjectStore  objectStore  ) 

See static method for documentation.

Implements ERXEC.Factory.

EOEditingContext _newEditingContext ( boolean  validationEnabled  ) 

See static method for documentation.

Implements ERXEC.Factory.

Reimplemented in ERXObjectStoreCoordinatorPool.MultiOSCFactory.

EOEditingContext _newEditingContext (  ) 

See static method for documentation.

Implements ERXEC.Factory.

Reimplemented in ERXObjectStoreCoordinatorPool.MultiOSCFactory.

Returns the default editing context delegate. This delegate is used by default for all editing contexts that are created.

Returns:
the default editing context delegate

Implements ERXEC.Factory.

Default delegate that does not perform validation. Not performing validation can be a good thing when using nested editing contexts as sometimes you only want to validate one object, not all the objects.

Returns:
default delegate that doesn't perform validation

Implements ERXEC.Factory.

void setDefaultDelegateOnEditingContext ( EOEditingContext  ec  ) 

Sets the default editing context delegate on the given editing context.

Parameters:
ec editing context to have it's delegate set.

Implements ERXEC.Factory.

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.

Parameters:
ec editing context to have it's delegate set.
validation flag that determines if the editing context should perform validation on objects being saved.

Implements ERXEC.Factory.

void setDefaultEditingContextDelegate ( Object  delegate  ) 

Sets the default editing context delegate to be used for editing context creation.

Parameters:
delegate to be set on every created editing context by default.

Implements ERXEC.Factory.

void setDefaultNoValidationDelegate ( Object  delegate  ) 

Sets the default editing context delegate to be used for editing context creation that does not allow validation.

Parameters:
delegate to be set on every created editing context that doesn't allow validation.

Implements ERXEC.Factory.

void setUseSharedEditingContext ( boolean  value  ) 

Implements ERXEC.Factory.

boolean useSharedEditingContext (  ) 

Implements ERXEC.Factory.


Member Data Documentation

Object defaultEditingContextDelegate [protected]

holds a reference to the default ec delegate

Object defaultNoValidationDelegate [protected]

holds a reference to the default no validation delegate

final Logger log = Logger.getLogger(DefaultFactory.class) [static]

logging support

Boolean useSharedEditingContext = null [protected]

holds whether to newly created instances use the shared editing context.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:08 2012 for Project Wonder by  doxygen 1.5.8