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 - ErrorExceptionDecimal countAll(ExecutionContext ctx, Type type) throws ErrorException
ctx - type - ErrorExceptionRecordHolder findById(ExecutionContext ctx, Object id, Type type) throws ErrorException
ctx - id - a primary keytype - null if not foundErrorExceptionRecordHolder findById(ExecutionContext ctx, Type type, Object id) throws ErrorException
ctx - type - id - a primary keynull if not foundErrorExceptionRecordHolder findByIdAndRevision(ExecutionContext ctx, Object id, Type type, Decimal auditRevision) throws ErrorException
ctx - id - a primary keytype - auditRevision - null if not foundErrorExceptionRecordHolder findByRevision(ExecutionContext ctx, RecordHolder record, Decimal auditRevision) throws ErrorException
ctx - record - auditRevision - ErrorExceptionListHolder getRevisions(ExecutionContext ctx, Object id, Type type, Date from, Date to) throws ErrorException
ctx - id - type - from - to - ErrorExceptionListHolder getRevisions(ExecutionContext ctx, RecordHolder record, Date from, Date to) throws ErrorException
ctx - record - from - to - ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.