Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed typo

...

Class 

Anchor
AndQueryCondition
AndQueryCondition

AttributeTypeDescriptionAllowed Values
AndQueryConditionconditionTypeconditionsType String

Type of the condition.

conjunction Marks the condition as conjunction (and) of simple queries (default and not changeable).
conditionArray of QueryCondition

List of simple queries that are related by and

Anchor
AttributeSortConditon
AttributeSortConditon


AttributeSortConditon




nameString


Name of the persistent state attribute to sort by.

Anchor
ClassAttributeMetadata
ClassAttributeMetadata
a valid persistent state attribute name with stereotype <<SearchKey>>
directionString

Sort direction as defined on SortCondition.

Anchor
ObjectEntry
ObjectEntry

ASCAscending sorting (default).
DESC

Descending sorting.

ClassAttributeMetadata

nameStringName of the persistent state attribute.
typeString

Type of the persistent state attribute, e.g. 

  • String (for base types)
  • UML class id of the type, urn:Services.PurchaseOrderService.Classes.Item

ClassCountersnameStringName of the persistent state class.
countIntegerObject count.
stalledCountIntegerCount of objects that are stalled.
statesArray of StateCountersList of states including count of objects in this state.
ClassInfonameStringName of the persistent state class.
countIntegerObject count.
ClassMetadatanameStringName of the persistent state class.
attributesArray of ClassAttributeMetadataList of class attributes and their metadata.
primaryKeysArray of String

List of attributes that are marked as primary key with stereotype <<PrimaryKey>>.

Multiexcerpt include
MultiExcerptNameprimary_keys
PageWithExcerpt@self


searchKeysArray of String

List of attributes that are marked as search key with stereotype <<SearchKey>>.

Anchor
MetaAttributeSortCondition
MetaAttributeSortCondition


MetaAttributeSortCondition

nameString

Name of the persistent state meta attribute to sort by.creationSort by creation date.
updateSort by update date.
directionString

Sort direction as defined on SortCondition.

Anchor
ObjectEntry
ObjectEntry

ASCAscending sorting (default).
DESC

Descending sorting.

ObjectEntryidStringUnique identifier of the persistent state object.
nameStringName of the persistent state object.
creationDateTimeCreation date of the object.
lastUpdateDateTimeDate object has been last updated.
statesArray of StringList of states the object is in.
objectAny

Copy of the persistent state object.

object contains the same content as would be returned by getObjectCopy of the Persistent State Adapter. 

Anchor
OrQueryCondition
OrQueryCondition


OrQueryConditionconditionTypeconditionsType String Type of the condition. disjunction Marks the condition as disjunction (or) of simple queries (default and not changeable).
conditionArray of QueryConditionList of simple queries that are related by or.
Owner

idStringOwner id.
For more information on how to manage ownership of persistent state objects, refer to Persistent State Ownership.

compositeNameStringComposite name from the xUML model.
hostStringName of the host that runs the owner.
lastStartupDateTime

Last recorded service startup.


lastShutdownDateTimeLast recorded service shutdown.
ownedObjectsIntegerCount of owned objects.
isSelfBooleanTrue, if the current service is the owner.trueThe current service is the owner.
false

The current service is not the owner.

Anchor
QueryCondition
QueryCondition

QueryCondition

Parent abstract class of SimpleQueryCondition, AndQueryCondition, or OrQueryCondition

Anchor
SimpleQueryCondition
SimpleQueryCondition


SimpleQueryConditionconditionTypeconditionsType String

Type of the condition.

simple Marks the condition as simple query condition (default and not changeable).
attributeString

Name of the search key attribute to use for comparison.

valid name of an existent persistent state class attribute that has stereotype <<SearchKey>>
operatorString

Operator for the comparison of attribute and value.

Multiexcerpt include
MultiExcerptNameoperators
PageWithExcerpt@self

=Equal.
!=Not equal.
<Less than.
<=Less or equal.
>Greater than.
>=Greater or equal.
~Like (SQL).
!~Not like (SQL).
nullNull.
!nullNot null.
valueAny

Value to compare the attribute against.

Only base types allowed. The value must match the type of the specified attribute

Anchor
SelectObjectsQuery
SelectObjectsQuery

SelectObjectsQuery


classifierStringName of the persistent state class to query.
creationFromDateTimeCreation date from.
creationToDateTimeCreation date to.
sortByCreationString

Sort by creation date (ASC/DESC). Relates to sortByUpdate.

Multiexcerpt
MultiExcerptNamesortBy
  • If sortByCreation and sortByUpdate are both NULL, the resulting order is unspecified.
  • If both, sortByCreation and sortByUpdate are set, the result is sorted update first, creation second.
  • If you provide an invalid value, the Runtime will throw an exception.


ASCSort by creation date in ascending order.
DESCSort by creation date in descending order.
updateFromDateTimeUpdate date from.
updateToDateTimeUpdate date to.
sortByUpdateString

Sort by update date (ASC/DESC). Relates to sortByCreation.

Multiexcerpt include
MultiExcerptNamesortBy
PageWithExcerpt@self

ASCSort by date of last update in ascending order.
DESCSort by date of last update in descending order.
limitIntegerLimit the count of returned objects. Default is 1000.Default is 1000 objects.
stateArray of String

List of states.

A persistent state object must be in one of the states to be part of the result set (disjunction).


conditionQueryConditionQuery condition as described further above (see Querying Persistent State Objects of a Given Class).
skipInteger

Skip the number of objects provided with skip. Together with limit, this allows to implement pagination.

Info

When using this feature with Oracle or SQL Server databases, you need at least the following database versions:

  • Oracle 12c
  • SQL Server 2012



orderByArray of SortCondition

Provide sort conditions (list of persistent state attributes and direction). This array is translated into an ORDER BY clause and added to the related query statement.

Info

If orderBy is used, specified sortByCreation and sortByUpdate are completely disregarded. Instead use the provided meta attributes creation and update.

Anchor
SortCondition
SortCondition


SortCondition

directionString

Sort direction.ASCAscending sorting (default).
DESC

Descending sorting.

Anchor
StateCounters
StateCounters

StateCounters

nameStringName of the state.
countIntegerCount of objects in this state.
stalledCountIntegerCount of stalled objects in this state.

...