Entity persister interface Define the behavior that should be implemented by all entity persisters.
| Methods | ||
|---|---|---|
public
|
getClassMetadata(): ClassMetadata
|
# |
public
|
getResultSetMapping(): ResultSetMapping
|
# |
public
|
getInserts(): object[]
|
# |
public
|
getInsertSQL(): string
|
# |
public
|
getSelectSQL(
mixed[]|Criteria $criteria,
AssociationMapping|null $assoc = null,
LockMode::*|null $lockMode = null,
int|null $limit = null,
int|null $offset = null,
mixed[]|null $orderBy = null,
): string
|
# |
public
|
getCountSQL(mixed[]|Criteria $criteria = []): string
|
# |
public
|
expandParameters(string[] $criteria)
|
# |
public
|
expandCriteriaParameters(Criteria $criteria)
|
# |
public
|
getSelectConditionStatementSQL(
string $field,
mixed $value,
AssociationMapping|null $assoc = null,
string|null $comparison = null,
): string
|
# |
public
|
addInsert(object $entity): void
|
# |
public
|
executeInserts()
|
# |
public
|
update(object $entity): void
|
# |
public
|
delete(object $entity): bool
|
# |
public
|
count(mixed[]|Criteria $criteria = []): int
|
# |
public
|
getOwningTable(string $fieldName): string
|
# |
public
|
load(
array<string, mixed> $criteria,
object|null $entity = null,
AssociationMapping|null $assoc = null,
array<string, mixed> $hints = [],
LockMode::*|null $lockMode = null,
int|null $limit = null,
array<string, string>|null $orderBy = null,
): object|null
|
# |
public
|
loadById(array<string, mixed> $identifier, object|null $entity = null): object|null
|
# |
public
|
loadOneToOneEntity(AssociationMapping $assoc, object $sourceEntity, array<string, mixed> $identifier = []): object
|
# |
public
|
refresh(array<string, mixed> $id, object $entity, LockMode::*|null $lockMode = null): void
|
# |
public
|
loadCriteria(Criteria $criteria): mixed[]
|
# |
public
|
loadAll(
array<string, mixed> $criteria = [],
array<string, string>|null $orderBy = null,
int|null $limit = null,
int|null $offset = null,
)
|
# |
public
|
getManyToManyCollection(
AssociationMapping $assoc,
object $sourceEntity,
int|null $offset = null,
int|null $limit = null,
): mixed[]
|
# |
public
|
loadManyToManyCollection(AssociationMapping $assoc, object $sourceEntity, PersistentCollection $collection): mixed[]
|
# |
public
|
loadOneToManyCollection(AssociationMapping $assoc, object $sourceEntity, PersistentCollection $collection): mixed
|
# |
public
|
lock(array<string, mixed> $criteria, LockMode::* $lockMode): void
|
# |
public
|
getOneToManyCollection(
AssociationMapping $assoc,
object $sourceEntity,
int|null $offset = null,
int|null $limit = null,
): mixed[]
|
# |
public
|
exists(object $entity, ?Criteria $extraConditions = null): bool
|
# |