PHP Class AppserverIo\Appserver\Core\Api\DatasourceService

Inheritance: extends AbstractService
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Méthodes publiques

Méthode Description
findAll ( ) : array<\AppserverIo\Appserver\Core\Api\Node\DatasourceNode> Returns all deployed applications.
findAllByName ( string $name ) : array Returns an array with the datasources with the passed name.
findByName ( string $name ) : DatasourceNode Returns the datasource with the passed name.
load ( string $uuid ) : DatasourceNode Returns the datasource with the passed UUID.
persist ( AppserverIo\Configuration\Interfaces\NodeInterface $datasourceNode ) : void Persists the passed datasource.

Method Details

findAll() public méthode

Returns all deployed applications.
See also: AppserverIo\Appserver\Core\Api\ServiceInterface::findAll()
public findAll ( ) : array<\AppserverIo\Appserver\Core\Api\Node\DatasourceNode>
Résultat array<\AppserverIo\Appserver\Core\Api\Node\DatasourceNode>

findAllByName() public méthode

Returns an array with the datasources with the passed name.
public findAllByName ( string $name ) : array
$name string Name of the datasource to return
Résultat array The datasources with the name passed as parameter

findByName() public méthode

Returns the datasource with the passed name.
public findByName ( string $name ) : DatasourceNode
$name string Name of the datasource to return
Résultat AppserverIo\Appserver\Core\Api\Node\DatasourceNode The datasource with the name passed as parameter

load() public méthode

Returns the datasource with the passed UUID.
See also: AppserverIo\Appserver\Core\Api\ServiceInterface::load()
public load ( string $uuid ) : DatasourceNode
$uuid string UUID of the datasource to return
Résultat AppserverIo\Appserver\Core\Api\Node\DatasourceNode The datasource with the UUID passed as parameter

persist() public méthode

Persists the passed datasource.
public persist ( AppserverIo\Configuration\Interfaces\NodeInterface $datasourceNode ) : void
$datasourceNode AppserverIo\Configuration\Interfaces\NodeInterface The datasource to persist
Résultat void