public interface TestFunctions
String throwWithoutInterceptor(ExecutionContext ctx) throws ErrorException
ctx
- ErrorException
String throwWithInterceptor(ExecutionContext ctx) throws ErrorException
ctx
- ErrorException
BinaryHolder toBinary(ExecutionContext ctx, String str) throws ErrorException
ctx
- str
- ErrorException
String fromBinaryToString(ExecutionContext ctx, BinaryHolder binaryHolder) throws ErrorException
ctx
- binaryHolder
- ErrorException
SetHolder findAllInSession(ExecutionContext ctx, Type type) throws ErrorException
ctx
- type
- ErrorException
void addIsDirtyListener(ExecutionContext ctx)
ctx
- boolean isDirty(ExecutionContext ctx)
ctx
- void setDirty(ExecutionContext ctx, Boolean isDirty)
ctx
- isDirty
- void setIsTrackingDirty(ExecutionContext ctx, Boolean isTracking)
ctx
- isTracking
- String validationExceptionString(ExecutionContext ctx, Type type)
ctx
- type
- Property getProperty(ExecutionContext ctx, ReferenceHolder ref)
RecordHolder getPropertyRecord(ExecutionContext ctx, ReferenceHolder ref) throws ErrorException
ErrorException
SetHolder getOptimisticLockConflicts(ExecutionContext ctx, ListHolder levels, Boolean resetVersionForUnchanged)
boolean isReferenceChanged(ReferenceHolder ref)
Object getReferencedValue(ExecutionContext ctx, ReferenceHolder ref, String evaluationLevel) throws ErrorException
ErrorException
RecordHolder getReadOnlyRecord(ExecutionContext ctx, RecordHolder holder, String level)
Object getClosureInLevelAndEvaluate(ExecutionContext ctx, Object holder, ListHolder arguments, String level) throws ErrorException
ErrorException
ListHolder dynamicQuery(ExecutionContext ctx, Type recordType, String iterator, String where, ListHolder ordering, Decimal index, Decimal count) throws ErrorException, ValidationException
ErrorException
ValidationException
ListHolder dynamicQuery(ExecutionContext ctx, ClosureHolder closureWithQuery, String iterator, String where, ListHolder ordering, Decimal index, Decimal count) throws ErrorException, ValidationException
ErrorException
ValidationException
ListHolder dynamicAuditQuery(ExecutionContext ctx, Type recordType, String iterator, String where, ListHolder ordering, Decimal index, Decimal count, Decimal revision, ListHolder auditCriteria) throws ErrorException, ValidationException
ErrorException
ValidationException
Decimal dynamicCountQuery(ExecutionContext ctx, Type recordType, String iterator, String where) throws ErrorException, ValidationException
ErrorException
ValidationException
Decimal dynamicCountQuery(ExecutionContext ctx, ClosureHolder closureWithQuery, String iterator, String where) throws ErrorException, ValidationException
ErrorException
ValidationException
void merge(ExecutionContext ctx, String evaluationLevel) throws LspsException
LspsException
void setStringVar(ExecutionContext ctx, String name, String val)
ctx
- name
- val
- void setCompatibilityVersion(ExecutionContext ctx, String version, CollectionHolder moduleIds)
String compareModelInstances(Decimal modelInstanceId1, Decimal modelInstanceId2)
modelInstanceId1
- modelInstanceId2
- Object executeMethod(ExecutionContext ctx, RecordHolder record, String methodName, Object... args) throws ErrorException
ErrorException
Object executeInNewTransaction(ExecutionContext ctx, ClosureHolder closure, ListHolder arguments) throws ErrorException
ErrorException
Object interpret(ExecutionContext ctx, String expression) throws ErrorException
ErrorException
Object interpret(ExecutionContext ctx, String expression, ListHolder arguments) throws ErrorException
ErrorException
MapHolder getTypeMetadata(ExecutionContext ctx, Type type) throws ErrorException
ErrorException
MapHolder getVariableMetadata(ExecutionContext ctx, String name) throws ErrorException
ErrorException
MapHolder getFunctionMetadata(ExecutionContext ctx, String name) throws ErrorException
ErrorException
MapHolder getConstraintMetadata(ExecutionContext ctx, String constraintId) throws ErrorException
ErrorException
MapHolder getConstantMetadata(ExecutionContext ctx, String name) throws ErrorException
ErrorException
Object compileToJavaEndExecute(ExecutionContext ctx, String expStr) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.