PHP 클래스 AppserverIo\Appserver\PersistenceContainer\PersistenceManager

상속: extends AppserverIo\Appserver\Core\AbstractManager, implements AppserverIo\Psr\EnterpriseBeans\PersistenceContextInterface, implements AppserverIo\Appserver\Application\Interfaces\ManagerSettingsAwareInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
getEntityManagers ( ) : AppserverIo\Storage\GenericStackable Returns the storage with the registered entity manager configurations.
getIdentifier ( ) : string Returns the identifier for the entity manager instance.
getManagerSettings ( ) : AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface Return's the bean manager settings.
initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Has been automatically invoked by the container after the application instance has been created.
injectEntityManagers ( AppserverIo\Storage\GenericStackable $entityManagers ) : void Injects the storage for the entity manager configurations.
injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void Injects the bean manager settings.
invoke ( AppserverIo\RemoteMethodInvocation\RemoteMethodInterface $remoteMethod, AppserverIo\Collections\CollectionInterface $sessions ) : mixed Invoke the passed remote method on the described session bean and return the result.
lookup ( string $lookupName ) : object Runs a lookup for the entity manager with the passed class name.
lookupProxy ( string $lookupName, string $sessionId = null ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface This returns a proxy to the requested session bean.
registerEntityManager ( AppserverIo\Psr\Application\ApplicationInterface $application, AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnitNode ) : void Deploys the entity manager described by the passed XML node.
registerEntityManagers ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Registers the entity managers at startup.

메소드 상세

getEntityManagers() 공개 메소드

Returns the storage with the registered entity manager configurations.
public getEntityManagers ( ) : AppserverIo\Storage\GenericStackable
리턴 AppserverIo\Storage\GenericStackable The storage with the entity manager configurations

getIdentifier() 공개 메소드

Returns the identifier for the entity manager instance.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::getIdentifier()
public getIdentifier ( ) : string
리턴 string

getManagerSettings() 공개 메소드

Return's the bean manager settings.
public getManagerSettings ( ) : AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface
리턴 AppserverIo\Appserver\PersistenceContainer\PersistenceContainerSettingsInterface The bean manager settings

initialize() 공개 메소드

Has been automatically invoked by the container after the application instance has been created.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::initialize()
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void

injectEntityManagers() 공개 메소드

Injects the storage for the entity manager configurations.
public injectEntityManagers ( AppserverIo\Storage\GenericStackable $entityManagers ) : void
$entityManagers AppserverIo\Storage\GenericStackable The storage for the entity manager configurations
리턴 void

injectManagerSettings() 공개 메소드

Injects the bean manager settings.
public injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void
$managerSettings AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface The bean manager settings
리턴 void

invoke() 공개 메소드

Invoke the passed remote method on the described session bean and return the result.
public invoke ( AppserverIo\RemoteMethodInvocation\RemoteMethodInterface $remoteMethod, AppserverIo\Collections\CollectionInterface $sessions ) : mixed
$remoteMethod AppserverIo\RemoteMethodInvocation\RemoteMethodInterface The remote method description
$sessions AppserverIo\Collections\CollectionInterface The collection with the sessions
리턴 mixed The result of the remote method invocation

lookup() 공개 메소드

If the passed lookup name is an entity manager the instance will be returned.
public lookup ( string $lookupName ) : object
$lookupName string The name of the requested entity manager
리턴 object The requested entity manager instance

lookupProxy() 공개 메소드

This returns a proxy to the requested session bean.
public lookupProxy ( string $lookupName, string $sessionId = null ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface
$lookupName string The lookup name for the requested session bean
$sessionId string The session-ID if available
리턴 AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The proxy instance

registerEntityManager() 공개 메소드

Deploys the entity manager described by the passed XML node.
public registerEntityManager ( AppserverIo\Psr\Application\ApplicationInterface $application, AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnitNode ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
$persistenceUnitNode AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface The XML node that describes the entity manager
리턴 void

registerEntityManagers() 공개 메소드

Registers the entity managers at startup.
public registerEntityManagers ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void