PHP Class AppserverIo\Appserver\Core\Api\DatasourceService

Inheritance: extends AbstractService
Show file Open project: appserver-io/appserver Class Usage Examples

Public Methods

Method 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 method

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

findAllByName() public method

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

findByName() public method

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

load() public method

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
return AppserverIo\Appserver\Core\Api\Node\DatasourceNode The datasource with the UUID passed as parameter

persist() public method

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