org.datanucleus.store
Interface ExecutionContext

All Known Implementing Classes:
ExecutionContextImpl

public interface ExecutionContext

Context of execution for persistence operations


Method Summary
 void deleteObjectInternal(java.lang.Object pc)
           
 ObjectProvider findObjectProvider(java.lang.Object object)
           
 ObjectProvider findObjectProvider(java.lang.Object object, boolean persist)
           
 ObjectProvider findObjectProviderForEmbedded(java.lang.Object value, ObjectProvider owner, AbstractMemberMetaData mmd)
           
 java.lang.Object findObjectUsingAID(Type pcClass, FieldValues2 fv, boolean ignoreCache, boolean checkInheritance)
          TODO this is temporary.
 ApiAdapter getApiAdapter()
           
 ClassLoaderResolver getClassLoaderResolver()
          Accessor for the ClassLoader resolver to use in class loading issues.
 MetaDataManager getMetaDataManager()
          Accessor for the MetaData Manager.
 Transaction getTransaction()
          Accessor for the current transaction for this ExecutionContext.
 TypeManager getTypeManager()
          TODO should we keep this here? this is api/language dependent
 boolean isClosed()
           
 ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd)
           
 ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd, AbstractClassMetaData effectiveTypeCmd)
           
 ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd, Type effectiveType)
           
 java.lang.Object persistObjectInternal(java.lang.Object pc, ObjectProvider ownerSM, int ownerFieldNum, int objectType)
          Method to persist the passed object (internally).
 

Method Detail

findObjectUsingAID

java.lang.Object findObjectUsingAID(Type pcClass,
                                    FieldValues2 fv,
                                    boolean ignoreCache,
                                    boolean checkInheritance)
TODO this is temporary. should be replaced when supporting any API/language


getMetaDataManager

MetaDataManager getMetaDataManager()
Accessor for the MetaData Manager.

Returns:
The MetaData Manager

getTransaction

Transaction getTransaction()
Accessor for the current transaction for this ExecutionContext.

Returns:
The current transaction

getClassLoaderResolver

ClassLoaderResolver getClassLoaderResolver()
Accessor for the ClassLoader resolver to use in class loading issues.

Returns:
The ClassLoader resolver

getTypeManager

TypeManager getTypeManager()
TODO should we keep this here? this is api/language dependent

Returns:

findObjectProvider

ObjectProvider findObjectProvider(java.lang.Object object)

findObjectProvider

ObjectProvider findObjectProvider(java.lang.Object object,
                                  boolean persist)

getApiAdapter

ApiAdapter getApiAdapter()

findObjectProviderForEmbedded

ObjectProvider findObjectProviderForEmbedded(java.lang.Object value,
                                             ObjectProvider owner,
                                             AbstractMemberMetaData mmd)

newObjectProviderForMember

ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd)

newObjectProviderForMember

ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd,
                                          Type effectiveType)

newObjectProviderForMember

ObjectProvider newObjectProviderForMember(AbstractMemberMetaData mmd,
                                          AbstractClassMetaData effectiveTypeCmd)

deleteObjectInternal

void deleteObjectInternal(java.lang.Object pc)

persistObjectInternal

java.lang.Object persistObjectInternal(java.lang.Object pc,
                                       ObjectProvider ownerSM,
                                       int ownerFieldNum,
                                       int objectType)
Method to persist the passed object (internally).

Parameters:
pc - The object
ownerSM - StateManager of the owner when embedded
ownerFieldNum - Field number in the owner where this is embedded (or -1 if not embedded)
objectType - Type of object (see org.datanucleus.StateManager, e.g StateManager.PC)
Returns:
The persisted object

isClosed

boolean isClosed()


Copyright © 2010. All Rights Reserved.