PHP Класс AppserverIo\Appserver\Core\Api\DatasourceService

Автор: Tim Wagner ([email protected])
Наследование: extends AbstractService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

findAll() публичный метод

Returns all deployed applications.
См. также: AppserverIo\Appserver\Core\Api\ServiceInterface::findAll()
public findAll ( ) : array<\AppserverIo\Appserver\Core\Api\Node\DatasourceNode>
Результат array<\AppserverIo\Appserver\Core\Api\Node\DatasourceNode>

findAllByName() публичный метод

Returns an array with the datasources with the passed name.
public findAllByName ( string $name ) : array
$name string Name of the datasource to return
Результат array The datasources with the name passed as parameter

findByName() публичный метод

Returns the datasource with the passed name.
public findByName ( string $name ) : DatasourceNode
$name string Name of the datasource to return
Результат AppserverIo\Appserver\Core\Api\Node\DatasourceNode The datasource with the name passed as parameter

load() публичный метод

Returns the datasource with the passed UUID.
См. также: AppserverIo\Appserver\Core\Api\ServiceInterface::load()
public load ( string $uuid ) : DatasourceNode
$uuid string UUID of the datasource to return
Результат AppserverIo\Appserver\Core\Api\Node\DatasourceNode The datasource with the UUID passed as parameter

persist() публичный метод

Persists the passed datasource.
public persist ( AppserverIo\Configuration\Interfaces\NodeInterface $datasourceNode ) : void
$datasourceNode AppserverIo\Configuration\Interfaces\NodeInterface The datasource to persist
Результат void