@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
QueryFunctions
findAll
in interface QueryFunctions
ErrorException
public Decimal countAll(ExecutionContext ctx, Type type) throws ErrorException
QueryFunctions
countAll
in interface QueryFunctions
ErrorException
public RecordHolder findByIdAndRevision(ExecutionContext ctx, Object id, Type type, Decimal auditRevision) throws ErrorException
QueryFunctions
findByIdAndRevision
in interface QueryFunctions
id
- a primary keynull
if not foundErrorException
public RecordHolder findByRevision(ExecutionContext ctx, RecordHolder record, Decimal auditRevision) throws ErrorException
QueryFunctions
findByRevision
in interface QueryFunctions
ErrorException
public RecordHolder findById(ExecutionContext ctx, Object id, Type type) throws ErrorException
QueryFunctions
findById
in interface QueryFunctions
id
- a primary keynull
if not foundErrorException
public RecordHolder findById(ExecutionContext ctx, Type type, Object id) throws ErrorException
QueryFunctions
findById
in interface QueryFunctions
id
- a primary keynull
if not foundErrorException
public ListHolder getRevisions(ExecutionContext ctx, Object id, Type type, Date from, Date to) throws ErrorException
QueryFunctions
getRevisions
in interface QueryFunctions
ErrorException
public ListHolder getRevisions(ExecutionContext ctx, RecordHolder record, Date from, Date to) throws ErrorException
QueryFunctions
getRevisions
in interface QueryFunctions
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.