Open Data Catalog v2.0.0
Drupal\datastore\Storage\DatabaseTable Class Reference
Inheritance diagram for Drupal\datastore\Storage\DatabaseTable:
Drupal\common\Storage\AbstractDatabaseTable Drupal\common\Storage\DatabaseTableInterface

Public Member Functions

 __construct (Connection $connection, Resource $resource)
 
 getSummary ()
 
 jsonSerialize ()
 
 getTableName ()
 
 setSchema ($schema)
 
- Public Member Functions inherited from Drupal\common\Storage\AbstractDatabaseTable
 __construct (Connection $connection)
 
 retrieveAll ()
 
 store ($data, string $id=NULL)
 
 storeMultiple (array $data)
 
 remove (string $id)
 
 count ()
 
 query (Query $query, string $alias='t')
 
 destroy ()
 
- Public Member Functions inherited from Drupal\common\Storage\DatabaseTableInterface
 query (Query $query)
 

Static Public Member Functions

static hydrate (string $json)
 

Protected Member Functions

 prepareData (string $data, string $id=NULL)
 
 primaryKey ()
 
 getNonSerialFields ()
 

Additional Inherited Members

- Protected Attributes inherited from Drupal\common\Storage\AbstractDatabaseTable
 $connection
 

Detailed Description

Database storage object.

See also
\Dkan\Datastore\Storage\StorageInterface

Definition at line 15 of file DatabaseTable.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\datastore\Storage\DatabaseTable::__construct ( Connection  $connection,
Resource  $resource 
)

Constructor method.

Parameters
\Drupal\Core\Database\Connection$connectionDrupal database connection object.
\Dkan\Datastore\Resource$resourceA resource.

Definition at line 34 of file DatabaseTable.php.

Member Function Documentation

◆ getNonSerialFields()

Drupal\datastore\Storage\DatabaseTable::getNonSerialFields ( )
protected

Protected.

Reimplemented from Drupal\common\Storage\AbstractDatabaseTable.

Definition at line 117 of file DatabaseTable.php.

◆ getSummary()

Drupal\datastore\Storage\DatabaseTable::getSummary ( )

Get summary.

Definition at line 44 of file DatabaseTable.php.

◆ getTableName()

Drupal\datastore\Storage\DatabaseTable::getTableName ( )

Get the full name of datastore db table.

Returns
string Table name.

Reimplemented from Drupal\common\Storage\AbstractDatabaseTable.

Definition at line 76 of file DatabaseTable.php.

◆ hydrate()

static Drupal\datastore\Storage\DatabaseTable::hydrate ( string  $json)
static

Hydrate.

Definition at line 63 of file DatabaseTable.php.

◆ jsonSerialize()

Drupal\datastore\Storage\DatabaseTable::jsonSerialize ( )

Inherited.

{}

Definition at line 56 of file DatabaseTable.php.

◆ prepareData()

Drupal\datastore\Storage\DatabaseTable::prepareData ( string  $data,
string  $id = NULL 
)
protected

Protected.

Reimplemented from Drupal\common\Storage\AbstractDatabaseTable.

Definition at line 86 of file DatabaseTable.php.

◆ primaryKey()

Drupal\datastore\Storage\DatabaseTable::primaryKey ( )
protected

Protected.

Reimplemented from Drupal\common\Storage\AbstractDatabaseTable.

Definition at line 110 of file DatabaseTable.php.

◆ setSchema()

Drupal\datastore\Storage\DatabaseTable::setSchema (   $schema)

Overriden.

Definition at line 129 of file DatabaseTable.php.