PHP 클래스 Nextras\Orm\Mapper\Dbal\DbalMapper

상속: extends Nextras\Orm\Mapper\BaseMapper
파일 보기 프로젝트 열기: nextras/orm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Nette\Caching\Cache
$connection Nextras\Dbal\Connection

공개 메소드들

메소드 설명
__construct ( Nextras\Dbal\Connection $connection, Cache $cache )
beginTransaction ( ) == Transactions API =============================================================================================
builder ( ) : Nextras\Dbal\QueryBuilder\QueryBuilder
createCollectionManyHasMany ( Nextras\Orm\Mapper\IMapper $mapperTwo, PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
createCollectionManyHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) == Relationship mappers =========================================================================================
createCollectionOneHasMany ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
createCollectionOneHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
findAll ( )
flush ( )
getAutoupdateReselectExpression ( )
getManyHasManyParameters ( PropertyMetadata $sourceProperty, Nextras\Orm\Mapper\IMapper $targetMapper )
getStorageReflection ( ) : Nextras\Orm\Mapper\Dbal\StorageReflection\IStorageReflection
persist ( Nextras\Orm\Entity\IEntity $entity ) == Persistence API ==============================================================================================
remove ( Nextras\Orm\Entity\IEntity $entity )
rollback ( )
toCollection ( $data )

보호된 메소드들

메소드 설명
createRelationshipMapper ( $type, PropertyMetadata $metadata, Nextras\Orm\Mapper\IMapper $otherMapper = null )
createStorageReflection ( )
entityToArray ( Nextras\Orm\Entity\IEntity $entity )
getRelationshipMapper ( $type, PropertyMetadata $metadata, Nextras\Orm\Mapper\IMapper $otherMapper = null )
processAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
processInsert ( Nextras\Orm\Entity\IEntity $entity, $data )
processMySQLAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
processPostgreAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
processRemove ( Nextras\Orm\Entity\IEntity $entity, $primary )
processUpdate ( Nextras\Orm\Entity\IEntity $entity, $data, $primary )

메소드 상세

__construct() 공개 메소드

public __construct ( Nextras\Dbal\Connection $connection, Cache $cache )
$connection Nextras\Dbal\Connection
$cache Nette\Caching\Cache

beginTransaction() 공개 메소드

== Transactions API =============================================================================================
public beginTransaction ( )

builder() 공개 메소드

public builder ( ) : Nextras\Dbal\QueryBuilder\QueryBuilder
리턴 Nextras\Dbal\QueryBuilder\QueryBuilder

createCollectionManyHasMany() 공개 메소드

public createCollectionManyHasMany ( Nextras\Orm\Mapper\IMapper $mapperTwo, PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
$mapperTwo Nextras\Orm\Mapper\IMapper
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity

createCollectionManyHasOne() 공개 메소드

== Relationship mappers =========================================================================================
public createCollectionManyHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity

createCollectionOneHasMany() 공개 메소드

public createCollectionOneHasMany ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity

createCollectionOneHasOne() 공개 메소드

public createCollectionOneHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity

createRelationshipMapper() 보호된 메소드

protected createRelationshipMapper ( $type, PropertyMetadata $metadata, Nextras\Orm\Mapper\IMapper $otherMapper = null )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$otherMapper Nextras\Orm\Mapper\IMapper

createStorageReflection() 보호된 메소드

protected createStorageReflection ( )

entityToArray() 보호된 메소드

protected entityToArray ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

findAll() 공개 메소드

public findAll ( )

flush() 공개 메소드

public flush ( )

getAutoupdateReselectExpression() 공개 메소드

getManyHasManyParameters() 공개 메소드

public getManyHasManyParameters ( PropertyMetadata $sourceProperty, Nextras\Orm\Mapper\IMapper $targetMapper )
$sourceProperty Nextras\Orm\Entity\Reflection\PropertyMetadata
$targetMapper Nextras\Orm\Mapper\IMapper

getRelationshipMapper() 보호된 메소드

protected getRelationshipMapper ( $type, PropertyMetadata $metadata, Nextras\Orm\Mapper\IMapper $otherMapper = null )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$otherMapper Nextras\Orm\Mapper\IMapper

getStorageReflection() 공개 메소드

public getStorageReflection ( ) : Nextras\Orm\Mapper\Dbal\StorageReflection\IStorageReflection
리턴 Nextras\Orm\Mapper\Dbal\StorageReflection\IStorageReflection

persist() 공개 메소드

== Persistence API ==============================================================================================
public persist ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

processAutoupdate() 보호된 메소드

protected processAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
$entity Nextras\Orm\Entity\IEntity
$args array

processInsert() 보호된 메소드

protected processInsert ( Nextras\Orm\Entity\IEntity $entity, $data )
$entity Nextras\Orm\Entity\IEntity

processMySQLAutoupdate() 보호된 메소드

protected processMySQLAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
$entity Nextras\Orm\Entity\IEntity
$args array

processPostgreAutoupdate() 보호된 메소드

protected processPostgreAutoupdate ( Nextras\Orm\Entity\IEntity $entity, array $args )
$entity Nextras\Orm\Entity\IEntity
$args array

processRemove() 보호된 메소드

protected processRemove ( Nextras\Orm\Entity\IEntity $entity, $primary )
$entity Nextras\Orm\Entity\IEntity

processUpdate() 보호된 메소드

protected processUpdate ( Nextras\Orm\Entity\IEntity $entity, $data, $primary )
$entity Nextras\Orm\Entity\IEntity

remove() 공개 메소드

public remove ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

rollback() 공개 메소드

public rollback ( )

toCollection() 공개 메소드

public toCollection ( $data )

프로퍼티 상세

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

protected Cache,Nette\Caching $cache
리턴 Nette\Caching\Cache

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

protected Connection,Nextras\Dbal $connection
리턴 Nextras\Dbal\Connection