Transactd PHP ORM 1.5.0
  • Namespace
  • Class

Namespaces

  • None
  • Transactd
    • boot
      • Laravel

Classes

  • AggregateFunction
  • CachedQueryExecuter
  • Collection
  • CollectionIterator
  • DatabaseManager
  • Model
  • QueryAdapter
  • QueryExecuter
  • Relation
  • TableForwordIterator
  • TableIterator
  • TableReverseIterator

Traits

  • JsonSerializable

Exceptions

  • IOException
  • ModelNotFoundException
  • ModelUserCancelException

Class TableIterator

Abstract base class of server cursor

Transactd\TableIterator implements Iterator

Direct known subclasses

Transactd\TableForwordIterator, Transactd\TableReverseIterator

Abstract
Namespace: Transactd
Located at TableIterator.php

Methods summary

public
# __construct( BizStation\Transactd\Table $table, $lockBias )
public
# rewind( )

Implementation of

Iterator::rewind()
public BizStation\Transactd\Record|object
# current( )

Get current Record or Model.

Get current Record or Model.

Returns

BizStation\Transactd\Record|object

Implementation of

Iterator::current()
public integer
# key( )

Returns

integer

Implementation of

Iterator::key()
public boolean
# valid( )

Returns the previous operation status.

Returns the previous operation status.

Returns

boolean

Implementation of

Iterator::valid()
public
# validOrFail( )

Checks the previous operation status and throw the IOException.

Checks the previous operation status and throw the IOException.

Throws

Transactd\IOException
abstract public
# prev( )

Move to previous record.

Move to previous record.

abstract public
# next( )

Move to next record.

Move to next record.

Implementation of

Iterator::next()
public
# update( Transactd\Model $model, $updateType = Transactd\Nstable::changeCurrentNcc )

Update current record with $model.

Update current record with $model.

Parameters

$model
$updateType

Throws

Transactd\IOException
public
# insert( Transactd\Model $model, $ncc = true )

Insert the $model and move the current record.

Insert the $model and move the current record.

Parameters

$model
$ncc

Throws

Transactd\IOException
public
# delete( )

Delete the current record.

Delete the current record.

Throws

Transactd\IOException
public
# setTimestampMode( integer $mode )

Parameters

$mode
Transactd::TIMESTAMP_ALWAYS | Transactd::TIMESTAMP_VALUE_CONTROL

Properties summary

protected integer $pos
# 0
protected $lockBias
#
protected $cPtr
#
Transactd PHP ORM 1.5.0 API documentation generated by ApiGen