PHP Class AppserverIo\Appserver\Core\Api\Node\DatasourceNode

Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode, implements AppserverIo\Appserver\Core\Api\Node\DatasourceNodeInterface
Show file Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$containerName string The container which can use this datasource
$database DatabaseNode The database connection information.
$name string The unique datasource name.
$type string The type of the datasource.

Public Methods

Method Description
getContainerName ( ) : string Return's the name of the container which can use this datasource
getDatabase ( ) : DatabaseNode Return's the database connection information.
getName ( ) : string | null Return's the unique datasource name.
getType ( ) : string | null Return's the datasource's type.
setContainerName ( string | null $containerName ) : void Set's the name of the container which can use this datasource.

Method Details

getContainerName() public method

Return's the name of the container which can use this datasource
public getContainerName ( ) : string
return string The name of the container

getDatabase() public method

Return's the database connection information.
public getDatabase ( ) : DatabaseNode
return DatabaseNode The database connection information

getName() public method

Return's the unique datasource name.
public getName ( ) : string | null
return string | null The unique datasource name

getType() public method

Return's the datasource's type.
public getType ( ) : string | null
return string | null The datasource type

setContainerName() public method

Set's the name of the container which can use this datasource.
public setContainerName ( string | null $containerName ) : void
$containerName string | null The name of the container
return void

Property Details

$containerName protected property

The container which can use this datasource
protected string $containerName
return string

$database protected property

The database connection information.
protected DatabaseNode,AppserverIo\Appserver\Core\Api\Node $database
return DatabaseNode

$name protected property

The unique datasource name.
protected string $name
return string

$type protected property

The type of the datasource.
protected string $type
return string