Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
SequenceFeature Class Reference

Public Member Functions

 __construct ($primaryKeyField, $sequenceName)
 
 preInsert (Insert $insert)
 
 postInsert (StatementInterface $statement, ResultInterface $result)
 
 nextSequenceId ()
 Generate a new value from the specified sequence in the database, and return it.
 
 lastSequenceId ()
 Return the most recent value from the specified sequence in the database.
 
- Public Member Functions inherited from AbstractFeature
 getName ()
 
 setTableGateway (AbstractTableGateway $tableGateway)
 
 initialize ()
 
 getMagicMethodSpecifications ()
 
- Public Member Functions inherited from AbstractTableGateway
 isInitialized ()
 
 initialize ()
 Initialize.
 
 getTable ()
 Get table name.
 
 getAdapter ()
 Get adapter.
 
 getColumns ()
 
 getFeatureSet ()
 
 getResultSetPrototype ()
 Get select result prototype.
 
 getSql ()
 
 select ($where=null)
 Select.
 
 selectWith (Select $select)
 
 insert ($set)
 Insert.
 
 insertWith (Insert $insert)
 
 update ($set, $where=null, array $joins=null)
 Update.
 
 updateWith (Update $update)
 
 delete ($where)
 Delete.
 
 deleteWith (Delete $delete)
 
 getLastInsertValue ()
 Get last insert value.
 
 __get ($property)
 __get
 
 __set ($property, $value)
 
 __call ($method, $arguments)
 
 __clone ()
 __clone
 
- Public Member Functions inherited from TableGatewayInterface
 update ($set, $where=null)
 

Protected Attributes

 $primaryKeyField
 
 $sequenceName
 
 $sequenceValue
 
- Protected Attributes inherited from AbstractFeature
 $tableGateway = null
 
 $sharedData = []
 
- Protected Attributes inherited from AbstractTableGateway
 $isInitialized = false
 
 $adapter = null
 
 $table = null
 
 $columns = []
 
 $featureSet = null
 
 $resultSetPrototype = null
 
 $sql = null
 
 $lastInsertValue = null
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractTableGateway
 executeSelect (Select $select)
 
 executeInsert (Insert $insert)
 
 executeUpdate (Update $update)
 
 executeDelete (Delete $delete)
 

Constructor & Destructor Documentation

__construct (   $primaryKeyField,
  $sequenceName 
)
Parameters
string$primaryKeyField
string$sequenceName

Member Function Documentation

lastSequenceId ( )

Return the most recent value from the specified sequence in the database.

Returns
int
nextSequenceId ( )

Generate a new value from the specified sequence in the database, and return it.

Returns
int
postInsert ( StatementInterface  $statement,
ResultInterface  $result 
)
Parameters
StatementInterface$statement
ResultInterface$result
preInsert ( Insert  $insert)
Parameters
Insert$insert
Returns
Insert

Member Data Documentation

$primaryKeyField
protected
$sequenceName
protected
$sequenceValue
protected