/**
  * Set the transaction and statements to use
  *
  * @param Client $client
  * @param Transaction $transaction
  * @param array $statements
  * @param boolean $commit
  */
 public function __construct(Client $client, Transaction $transaction, $statements = array(), $commit = false)
 {
     parent::__construct($client);
     $this->transaction = $transaction;
     $this->statements = $statements;
     $this->commit = $commit;
 }
Exemplo n.º 2
0
 /**
  * Set the parameters to search
  *
  * @param Client $client
  * @param Label  $label
  * @param string $propertyName
  * @param mixed  $propertyValue
  */
 public function __construct(Client $client, Label $label, $propertyName = null, $propertyValue = null)
 {
     parent::__construct($client);
     $this->label = $label;
     $this->propertyName = $propertyName;
     $this->propertyValue = $propertyValue;
 }
Exemplo n.º 3
0
 /**
  * Set the traversal to execute
  *
  * @param Client $client
  * @param Traversal $traversal
  * @param Node $node
  * @param string $returnType
  */
 public function __construct(Client $client, Traversal $traversal, Node $node, $returnType)
 {
     parent::__construct($client);
     $this->traversal = $traversal;
     $this->node = $node;
     $this->returnType = $returnType;
 }
Exemplo n.º 4
0
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param string $key
  * @param string $value
  */
 public function __construct(Client $client, Index $index, $key, $value)
 {
     parent::__construct($client);
     $this->index = $index;
     $this->key = $key;
     $this->value = $value;
 }
Exemplo n.º 5
0
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param PropertyContainer $entity
  * @param string $key
  * @param string $value
  */
 public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value)
 {
     parent::__construct($client);
     $this->index = $index;
     $this->entity = $entity;
     $this->key = $key;
     $this->value = $value;
 }
Exemplo n.º 6
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param SingleCommand $base
  * @param integer $opId
  */
 public function __construct(Client $client, SingleCommand $base, $opId)
 {
     parent::__construct($client);
     $this->base = $base;
     $this->opId = $opId;
 }
Exemplo n.º 7
0
 /**
  * Set the node to drive the command
  *
  * @param Client $client
  * @param Node $node
  */
 public function __construct(Client $client, Classes $node)
 {
     parent::__construct($client);
     $this->node = $node;
 }
Exemplo n.º 8
0
 /**
  * Set the relationship to drive the command
  *
  * @param Client $client
  * @param Relationship $rel
  */
 public function __construct(Client $client, Relationship $rel)
 {
     parent::__construct($client);
     $this->rel = $rel;
 }
Exemplo n.º 9
0
 /**
  * Set the query to execute
  *
  * @param Client $client
  * @param Query $query
  */
 public function __construct(Client $client, Query $query)
 {
     parent::__construct($client);
     $this->query = $query;
 }
Exemplo n.º 10
0
 /**
  * Set the type of index to retrieve
  *
  * @param Client $client
  * @param string $type
  */
 public function __construct(Client $client, $type)
 {
     parent::__construct($client);
     $this->type = $type;
 }
Exemplo n.º 11
0
 /**
  * Optionally provide a node to limit to
  *
  * @param Client $client
  * @param Node   $node
  */
 public function __construct(Client $client, Node $node = null)
 {
     parent::__construct($client);
     $this->node = $node;
 }
Exemplo n.º 12
0
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  */
 public function __construct(Client $client, Index $index)
 {
     parent::__construct($client);
     $this->index = $index;
 }
Exemplo n.º 13
0
 /**
  * Set the parameters to search
  *
  * @param Client     $client
  * @param PathFinder $finder
  */
 public function __construct(Client $client, PathFinder $finder)
 {
     parent::__construct($client);
     $this->finder = $finder;
 }
Exemplo n.º 14
0
 /**
  * Set the classes to drive the command
  *
  * @param Client $client
  * @param Node $classes
  */
 public function __construct(Client $client, Classes $classes)
 {
     parent::__construct($client);
     $this->classes = $classes;
 }
Exemplo n.º 15
0
 /**
  * Set the transaction to rollback
  *
  * @param Client $client
  * @param Transaction $transaction
  */
 public function __construct(Client $client, Transaction $transaction)
 {
     parent::__construct($client);
     $this->transaction = $transaction;
 }