public interface QueryFunctions
Modifier and Type | Method and Description |
---|---|
Decimal |
countAll(ExecutionContext ctx,
Type type)
Counts all shared records of a given type.
|
ListHolder |
findAll(ExecutionContext ctx,
Type type)
Finds all shared records of a given type.
|
RecordHolder |
findById(ExecutionContext ctx,
Object id,
Type type)
Finds a shared record of a given type with a given primary key.
|
RecordHolder |
findById(ExecutionContext ctx,
Type type,
Object id)
Finds a shared record of a given type with a given primary key.
|
RecordHolder |
findByIdAndRevision(ExecutionContext ctx,
Object id,
Type type,
Decimal auditRevision)
Finds a shared record of a given type with a given primary key for specified audit revision.
|
RecordHolder |
findByRevision(ExecutionContext ctx,
RecordHolder record,
Decimal auditRevision)
Returns the audited record in the given revision.
|
ListHolder |
getRevisions(ExecutionContext ctx,
Object id,
Type type,
Date from,
Date to)
Returns audit revisions for the entity.
|
ListHolder |
getRevisions(ExecutionContext ctx,
RecordHolder record,
Date from,
Date to)
Returns a list of revision identifiers in which the shared record was modified during the period defined by
the from and to parameters.
|
ListHolder findAll(ExecutionContext ctx, Type type) throws ErrorException
ctx
- type
- ErrorException
Decimal countAll(ExecutionContext ctx, Type type) throws ErrorException
ctx
- type
- ErrorException
RecordHolder findById(ExecutionContext ctx, Object id, Type type) throws ErrorException
ctx
- id
- a primary keytype
- null
if not foundErrorException
RecordHolder findById(ExecutionContext ctx, Type type, Object id) throws ErrorException
ctx
- type
- id
- a primary keynull
if not foundErrorException
RecordHolder findByIdAndRevision(ExecutionContext ctx, Object id, Type type, Decimal auditRevision) throws ErrorException
ctx
- id
- a primary keytype
- auditRevision
- null
if not foundErrorException
RecordHolder findByRevision(ExecutionContext ctx, RecordHolder record, Decimal auditRevision) throws ErrorException
ctx
- record
- auditRevision
- ErrorException
ListHolder getRevisions(ExecutionContext ctx, Object id, Type type, Date from, Date to) throws ErrorException
ctx
- id
- type
- from
- to
- ErrorException
ListHolder getRevisions(ExecutionContext ctx, RecordHolder record, Date from, Date to) throws ErrorException
ctx
- record
- from
- to
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.