PHP 인터페이스 Doctrine\OrientDB\Query\QueryInterface

파일 보기 프로젝트 열기: doctrine/orientdb-odm 0 사용 예제들

공개 메소드들

메소드 설명
add ( array $updates, string $class, boolean $append ) : Add Adds a relation in a link-list|set.
alter ( string $class, string $attribute, string $value ) : Alter Alters an attribute of a class.
alterProperty ( string $class, string $property, string $attribute, string $value ) : Alter Alters the $property of $class setting $sttribute to $value.
andWhere ( string $condition, mixed $value ) Adds a where condition to the query.
between ( string $key, string $left, string $right ) Converts a "normal" select into an index one.
create ( string $class, string $property ) : mixed Executes a CREATE of a $class, or of the $property in the given $class if $property is specified.
delete ( string $from ) : Delete Executes a DELETE SQL query on the given class (= $from).
drop ( string $class, string $property ) : mixed Drops a $class, or the $property in the given $class if $property is specified.
fields ( array $fields, boolean $append ) : Query Sets the fields to query.
findReferences ( string $rid, array $classes, boolean $append ) : Find Finds documents referencing the document with the given $rid.
from ( array $target, boolean $append ) Adds a from clause to the query.
getRaw ( ) : String Returns the raw SQL query statement.
getTokens ( ) : array Returns the tokens associated to the current query.
grant ( string $permission ) : Grant Converts the query into an GRANT with the given $permission.
in ( array $in, boolean $append ) : mixed Sets the classes in which the query performs is operation.
index ( string $property, string $class, string $type ) : Query Creates a index
indexCount ( string $indexName ) Count the elements of the index $indexName.
indexPut ( string $indexName, string $key, string $rid ) Puts a new entry in the index $indexName with the given $key and $rid.
indexRemove ( string $indexName, string $key, string $rid ) Removes the index $indexName with the given $key/$rid.
insert ( ) : Query Converts the query into an INSERT.
into ( string $target ) : Query Inserts the INTO clause to a query.
limit ( $limit ) Adds a limit to the current query.
link ( string $class, string $property, string $alias, boolean $inverse ) : Link Sets the internal command to a LINK, which is capable to create a reference from the $property of $class, with a given $alias.
on ( string $on ) : Query Sets the ON clause of a query.
orWhere ( string $condition, mixed $value ) Adds an OR clause to the query.
orderBy ( array $order, boolean $append, boolean $first ) Orders the query.
put ( array $values, $class, $append )
remove ( array $updates, string $class, boolean $append ) : Remove Removes a link from a link-set|list.
resetWhere ( ) Resets the WHERE conditions.
revoke ( string $permission ) : Revoke Converts the query into an REVOKE with the given $permission.
select ( array $projections, boolean $append ) Adds an array of fields into the select part of the query.
skip ( $records ) Adds a skip clause to the current query.
to ( string $to ) : Query Adds a subject to the query.
type ( string $type ) : Query Sets the type clause of a query.
unindex ( string $property, string $class ) : Query Removes a index
update ( $class )
values ( array $values, boolean $append ) : Insert Sets the values to be inserted into the current query.
where ( string $condition, mixed $value = null ) Adds the WHERE clause.

메소드 상세

add() 공개 메소드

Adds a relation in a link-list|set.
public add ( array $updates, string $class, boolean $append ) : Add
$updates array
$class string
$append boolean
리턴 Add

alter() 공개 메소드

Alters an attribute of a class.
public alter ( string $class, string $attribute, string $value ) : Alter
$class string
$attribute string
$value string
리턴 Alter

alterProperty() 공개 메소드

Alters the $property of $class setting $sttribute to $value.
public alterProperty ( string $class, string $property, string $attribute, string $value ) : Alter
$class string
$property string
$attribute string
$value string
리턴 Alter

andWhere() 공개 메소드

Adds a where condition to the query.
public andWhere ( string $condition, mixed $value )
$condition string
$value mixed

between() 공개 메소드

You use do a select on an index you can use the between operator.
public between ( string $key, string $left, string $right )
$key string
$left string
$right string

create() 공개 메소드

Executes a CREATE of a $class, or of the $property in the given $class if $property is specified.
public create ( string $class, string $property ) : mixed
$class string
$property string
리턴 mixed

delete() 공개 메소드

Executes a DELETE SQL query on the given class (= $from).
public delete ( string $from ) : Delete
$from string
리턴 Delete

drop() 공개 메소드

Drops a $class, or the $property in the given $class if $property is specified.
public drop ( string $class, string $property ) : mixed
$class string
$property string
리턴 mixed

fields() 공개 메소드

Sets the fields to query.
public fields ( array $fields, boolean $append ) : Query
$fields array
$append boolean
리턴 Query

findReferences() 공개 메소드

You can specify to look for only certain $classes, that can be appended.
public findReferences ( string $rid, array $classes, boolean $append ) : Find
$rid string
$classes array
$append boolean
리턴 Find

from() 공개 메소드

Adds a from clause to the query.
public from ( array $target, boolean $append )
$target array
$append boolean

getRaw() 공개 메소드

Returns the raw SQL query statement.
public getRaw ( ) : String
리턴 String

getTokens() 공개 메소드

Returns the tokens associated to the current query.
public getTokens ( ) : array
리턴 array

grant() 공개 메소드

Converts the query into an GRANT with the given $permission.
public grant ( string $permission ) : Grant
$permission string
리턴 Grant

in() 공개 메소드

For example a FIND REFERENCES uses the IN in order to find documents referencing to a given document in N classes.
public in ( array $in, boolean $append ) : mixed
$in array
$append boolean
리턴 mixed

index() 공개 메소드

Creates a index
public index ( string $property, string $class, string $type ) : Query
$property string
$class string
$type string
리턴 Query

indexCount() 공개 메소드

Count the elements of the index $indexName.
public indexCount ( string $indexName )
$indexName string

indexPut() 공개 메소드

Puts a new entry in the index $indexName with the given $key and $rid.
public indexPut ( string $indexName, string $key, string $rid )
$indexName string
$key string
$rid string

indexRemove() 공개 메소드

Removes the index $indexName with the given $key/$rid.
public indexRemove ( string $indexName, string $key, string $rid )
$indexName string
$key string
$rid string

insert() 공개 메소드

Converts the query into an INSERT.
public insert ( ) : Query
리턴 Query

into() 공개 메소드

Inserts the INTO clause to a query.
public into ( string $target ) : Query
$target string
리턴 Query

limit() 공개 메소드

Adds a limit to the current query.
public limit ( $limit )

on() 공개 메소드

Sets the ON clause of a query.
public on ( string $on ) : Query
$on string
리턴 Query

orWhere() 공개 메소드

Adds an OR clause to the query.
public orWhere ( string $condition, mixed $value )
$condition string
$value mixed

orderBy() 공개 메소드

Orders the query.
public orderBy ( array $order, boolean $append, boolean $first )
$order array
$append boolean
$first boolean

put() 공개 메소드

public put ( array $values, $class, $append )
$values array

remove() 공개 메소드

Removes a link from a link-set|list.
public remove ( array $updates, string $class, boolean $append ) : Remove
$updates array
$class string
$append boolean
리턴 Remove

resetWhere() 공개 메소드

Resets the WHERE conditions.
public resetWhere ( )

revoke() 공개 메소드

Converts the query into an REVOKE with the given $permission.
public revoke ( string $permission ) : Revoke
$permission string
리턴 Revoke

select() 공개 메소드

Adds an array of fields into the select part of the query.
public select ( array $projections, boolean $append )
$projections array
$append boolean

skip() 공개 메소드

Adds a skip clause to the current query.
public skip ( $records )

to() 공개 메소드

Adds a subject to the query.
public to ( string $to ) : Query
$to string
리턴 Query

type() 공개 메소드

Sets the type clause of a query.
public type ( string $type ) : Query
$type string
리턴 Query

unindex() 공개 메소드

Removes a index
public unindex ( string $property, string $class ) : Query
$property string
$class string
리턴 Query

update() 공개 메소드

public update ( $class )

values() 공개 메소드

Sets the values to be inserted into the current query.
public values ( array $values, boolean $append ) : Insert
$values array
$append boolean
리턴 Insert

where() 공개 메소드

Adds the WHERE clause.
public where ( string $condition, mixed $value = null )
$condition string
$value mixed