@PermitAll public class QueryFunctionsImpl extends Object implements QueryFunctions
| Constructor and Description |
|---|
QueryFunctionsImpl() |
| 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.
|
public ListHolder findAll(ExecutionContext ctx, Type type) throws ErrorException
QueryFunctionsfindAll in interface QueryFunctionsErrorExceptionpublic Decimal countAll(ExecutionContext ctx, Type type) throws ErrorException
QueryFunctionscountAll in interface QueryFunctionsErrorExceptionpublic RecordHolder findByIdAndRevision(ExecutionContext ctx, Object id, Type type, Decimal auditRevision) throws ErrorException
QueryFunctionsfindByIdAndRevision in interface QueryFunctionsid - a primary keynull if not foundErrorExceptionpublic RecordHolder findByRevision(ExecutionContext ctx, RecordHolder record, Decimal auditRevision) throws ErrorException
QueryFunctionsfindByRevision in interface QueryFunctionsErrorExceptionpublic RecordHolder findById(ExecutionContext ctx, Object id, Type type) throws ErrorException
QueryFunctionsfindById in interface QueryFunctionsid - a primary keynull if not foundErrorExceptionpublic RecordHolder findById(ExecutionContext ctx, Type type, Object id) throws ErrorException
QueryFunctionsfindById in interface QueryFunctionsid - a primary keynull if not foundErrorExceptionpublic ListHolder getRevisions(ExecutionContext ctx, Object id, Type type, Date from, Date to) throws ErrorException
QueryFunctionsgetRevisions in interface QueryFunctionsErrorExceptionpublic ListHolder getRevisions(ExecutionContext ctx, RecordHolder record, Date from, Date to) throws ErrorException
QueryFunctionsgetRevisions in interface QueryFunctionsErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.