Issue Details (XML | Word | Printable)

Key: NUCCORE-645
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

Change BackedSCO to be enabled by an interface on the StoreManager

Created: 15/Feb/11 10:49 AM   Updated: 07/Mar/11 05:34 PM   Resolved: 15/Feb/11 11:23 AM
Component/s: Java Types
Affects Version/s: None
Fix Version/s: 3.0.0.m2

 Description  « Hide
Currently to signal that a store manager supports backed SCOs we have a method on the StoreManager "supportedOptions" and have some option in there, and we also need to implement a method on StoreManager. Better way is just to have the StoreManager implement an interface like

public interface BackedSCOStoreManager
     * Accessor for the backing store for the specified field/property.
     * @param clr ClassLoader resolver
     * @param mmd MetaData for the field/property
     * @param type Type of the member
     * @return Backing store
     * @throws IncompatibleFieldTypeException raises the exception if the field is not compatible if the store
    Store getBackingStoreForField(ClassLoaderResolver clr, AbstractMemberMetaData mmd, Class type);

Andy Jefferson added a comment - 15/Feb/11 11:23 AM
SVN trunk now provides this interface (implemented by RDBMSStoreManager currently).

Andy Jefferson made changes - 15/Feb/11 11:23 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 07/Mar/11 05:34 PM
Status Resolved [ 5 ] Closed [ 6 ]