PHP 클래스 Doctrine\ODM\OrientDB\Mapper\ClusterMap

Creates and caches a map of classes and clusters in the database, which makes it possible to tell the proxy class of an entity just by it's rid.
저자: Tamás Millián ([email protected])
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$binding
$cache
$databaseName
$map

공개 메소드들

메소드 설명
__construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Doctrine\Common\Cache\Cache $cache )
generateMap ( ) Creates the mapping of classes to clusters, it is public so it can be called forcibly which will be handy if it's done in some cache-warmup task.
identifyClass ( Rid $rid ) : string Tries to identify the class of an rid by matching it against the clusters in the database

보호된 메소드들

메소드 설명
getCacheKey ( )
getMap ( ) : array Loads/generates the map in case it's needed.
load ( ) Tries to load the map from cache, otherwise generates it.

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Doctrine\Common\Cache\Cache $cache )
$binding Doctrine\OrientDB\Binding\BindingInterface
$cache Doctrine\Common\Cache\Cache

generateMap() 공개 메소드

Creates the mapping of classes to clusters, it is public so it can be called forcibly which will be handy if it's done in some cache-warmup task.
public generateMap ( )

getCacheKey() 보호된 메소드

protected getCacheKey ( )

getMap() 보호된 메소드

Loads/generates the map in case it's needed.
protected getMap ( ) : array
리턴 array

identifyClass() 공개 메소드

Tries to identify the class of an rid by matching it against the clusters in the database
public identifyClass ( Rid $rid ) : string
$rid Doctrine\ODM\OrientDB\Types\Rid
리턴 string

load() 보호된 메소드

Tries to load the map from cache, otherwise generates it.
protected load ( )

프로퍼티 상세

$binding 보호되어 있는 프로퍼티

protected $binding

$cache 보호되어 있는 프로퍼티

protected $cache

$databaseName 보호되어 있는 프로퍼티

protected $databaseName

$map 보호되어 있는 프로퍼티

protected $map