Zend\Db\TableGateway\Feature\SequenceFeature
Synopsis
class SequenceFeature
extends AbstractFeature
{
- // members
- protected string $primaryKeyField;
- protected string $sequenceName;
- protected int $sequenceValue;
- // Inherited members from AbstractFeature
- protected AbstractTableGateway $tableGateway;
- protected array $sharedData;
- // Inherited members from AbstractTableGateway
- protected bool $isInitialized;
- protected AdapterInterface $adapter;
- protected string $table;
- protected array $columns;
- protected FeatureSet $featureSet;
- protected ResultSetInterface $resultSetPrototype;
- protected Sql $sql;
- protected int $lastInsertValue;
- // methods
- public void __construct()
- public void preInsert()
- public void postInsert()
- public int nextSequenceId()
- public int lastSequenceId()
- // Inherited methods from AbstractFeature
- public void getName()
- public void setTableGateway()
- public void initialize()
- public void getMagicMethodSpecifications()
- // Inherited methods from AbstractTableGateway
- public bool isInitialized()
- public null initialize()
- public string getTable()
- public AdapterInterface getAdapter()
- public array getColumns()
- public FeatureSet getFeatureSet()
- public ResultSet getResultSetPrototype()
- public Sql getSql()
- public ResultSet select()
- public null|ResultSetInterface selectWith()
- protected ResultSet executeSelect()
- public int insert()
- public mixed insertWith()
- protected mixed executeInsert()
- public int update()
- public mixed updateWith()
- protected mixed executeUpdate()
- public int delete()
- public mixed deleteWith()
- protected mixed executeDelete()
- public int getLastInsertValue()
- public mixed __get()
- public mixed __set()
- public mixed __call()
- public void __clone()
Hierarchy
Tasks
Line | Task |
---|---|
280+ | add $columns support |
340+ | add $columns support |
396+ | add $columns support |
Members
protected
- $adapter — Zend\Db\Adapter\AdapterInterface
- $columns — array
- $featureSet — Zend\Db\TableGateway\Feature\FeatureSet
- $isInitialized — Zend\Db\TableGateway\bool
- $lastInsertValue — int
- $primaryKeyField — string
- $resultSetPrototype — Zend\Db\ResultSet\ResultSetInterface
- $sequenceName — string
- $sequenceValue — int
- $sql — Zend\Db\Sql\Sql
- $table — string
- $tableGateway — Zend\Db\TableGateway\AbstractTableGateway
Methods
public
- __construct()
- lastSequenceId() — Return the most recent value from the specified sequence in the database.
- nextSequenceId() — Generate a new value from the specified sequence in the database, and return it.
- postInsert()
- preInsert()
Inherited from Zend\Db\TableGateway\Feature\AbstractFeature
public
Inherited from Zend\Db\TableGateway\AbstractTableGateway
protected
public
- __call()
- __clone() — __clone
- __get() — __get
- __set()
- delete() — Delete
- deleteWith()
- getAdapter() — Get adapter
- getColumns()
- getFeatureSet()
- getLastInsertValue() — Get last insert value
- getResultSetPrototype() — Get select result prototype
- getSql()
- getTable() — Get table name
- initialize() — Initialize
- insert() — Insert
- insertWith()
- isInitialized()
- select() — Select
- selectWith()
- update() — Update
- updateWith()