• Platform
    • Manager
    • Maestro
    • Exchange
    • Workspaces
    • Analytics
    • Springboard
    • API
Journey SDK

Journey SDK

  • Getting Started
  • Developer Guide
  • References
  • Services Guide

›Classes

com.avoka.tm.func

  • com.avoka.tm.func
  • Classes

    • Class DeliveryFuncResult
    • Class DeliveryFuncResultBuilder
    • Class FormFuncResult
    • Class FuncParam

    Interface

    • Interface IFluentFunction

com.avoka.tm.http

  • com.avoka.tm.http
  • Classes

    • Class DeleteRequest
    • Class GetRequest
    • Class HttpRequest
    • Class HttpRequest.FileParam
    • Class HttpRequest.Param
    • Class HttpResponse
    • Class PatchRequest
    • Class PostRequest
    • Class PutRequest
    • Class RequestBuilder

com.avoka.tm.job

  • com.avoka.tm.job
  • Classes

    • Class ActionResult
    • Class ActionResultBuilder
    • Class Jobs

com.avoka.tm.query

  • com.avoka.tm.query
  • Classes

    • Class JobQuery
    • Class PropertyQuery
    • Class RefDataQuery
    • Class SpaceQuery
    • Class SvcConnQuery
    • Class SvcDefQuery
    • Class TxnHistoryQuery
    • Class TxnQuery
    • Class UserQuery

    Enum

    • Enum TxnHistoryQuery.Time
    • Enum TxnQuery.Time

com.avoka.tm.security

  • com.avoka.tm.security
  • Classes

    • Class Saml2Parser
    • Class Saml2ParserResult
    • Class SsoAuthToken

com.avoka.tm.svc

  • com.avoka.tm.svc
  • Classes

    • Class DeliveryTxnBuilder
    • Class Emailer
    • Class ErrorLogger
    • Class EventLogger
    • Class FluentFuncInvoker
    • Class GroovyServiceInvoker
    • Class JobUpdater
    • Class PropertyBuilder
    • Class ReceiptSvc
    • Class RefDataSvc
    • Class ServiceInvoker
    • Class SvcConnUpdater
    • Class TrackingCodeBuilder
    • Class TxnBuilder
    • Class TxnCheckpointSvc
    • Class TxnUpdater
    • Class UserBuilder

com.avoka.tm.test

  • com.avoka.tm.test
  • Classes

    • Class AbstractJUnitTest
    • Class JUnitTestRunner
    • Class JUnitTestRunner.TestWrapper
    • Class MockRegister
    • Class MockRequest
    • Class MockResponse
    • Class MockServletContext
    • Class MockVoBuilder

    Exception

    • junittestexception

com.avoka.tm.util

  • com.avoka.tm.util
  • Classes

    • Class Contract
    • Class DeliveryResult
    • Class DeliveryResultBuilder
    • Class Logger
    • Class MemCache
    • Class ObjectMapper
    • Class Path
    • Class Security
    • Class Threads
    • Class TxnUrlBuilder
    • Class VelTemplate
    • Class XmlDoc

    Enum

    • Enum ObjectMapper.MappingStrategy

    Exception

    • redirectexception

com.avoka.tm.vo

  • com.avoka.tm.vo
  • Classes

    • Class FileAttach
    • Class Form
    • Class Job
    • Class JobAction
    • Class JobStep
    • Class Space
    • Class SvcConn
    • Class SvcDef
    • Class Txn
    • Class TxnCheckpoint
    • Class TxnDeliveryFunc
    • Class User

Class SpaceQuery

public class SpaceQuery
extends java.lang.Object
Provides a form space query class. Examples Please find the space query examples about list, get first and count below.

Space Query List Example

This Groovy example shows how to list spaces matching certain criteria ordered ascending by name (maximum number of 4 records).
 import com.avoka.tm.query.*
 import com.avoka.tm.vo.*
 List<Space> spaces = new SpaceQuery()
     .setFetchLimit(4)
     .addOrderByAsc("name")
     .listValues()
 // In JSON format
 String spacesJson = new SpaceQuery()
     .setFetchLimit(4)
     .addOrderByAsc("name")
     .listJson() 

Space Query First Example

This Groovy example shows how to get first space matching certain criteria ordered descending by id.
 import com.avoka.tm.query.*
 import com.avoka.tm.vo.*
 Space space = new SpaceQuery()
     .setName(spaceName)
     .firstValue()
 // In JSON format
 String spaceJson = new SpaceQuery()
     .setName(spaceName)
     .firstJson()  

Space Query Count Example

This Groovy example shows how to count all spaces matching certain criteria.
 import com.avoka.tm.query.*
 int spaceWithCtxPathCount = new SpaceQuery()
     .setContextPath(ctxPath)
     .count() 
Since:
5.0.0
See Also:
Space

Constructor Summary

Constructors
Constructor Description
SpaceQuery()

Method Summary

All Methods Instance Methods Concrete Methods
Modifier and Type Method Description
SpaceQuery addOrderByAsc​(java.lang.String orderProperty) Add the sort order by ascending to the query.
SpaceQuery addOrderByDesc​(java.lang.String orderProperty) Add the sort order by descending to the query.
int count() Execute a select count query and return the total number of records selected by the query.
java.lang.String firstJson() Execute the query and return the first space JSON value.
Space firstValue() Execute the query and return the first space value object for the query.
java.lang.String listJson() Execute the query and return a space JSON array list.
java.util.List<Space> listValues() Execute the space query and return a list of Space value objects.
SpaceQuery setContextPath​(java.lang.String contextPath) Set the space context path parameter.
SpaceQuery setFetchLimit​(int fetchLimit) Set the query fetch limit to limit the maximum number of records returned.
SpaceQuery setId​(java.lang.Long id) Set the space id (PK) query parameter.
SpaceQuery setName​(java.lang.String name) Set the space name query parameter.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SpaceQuery

public SpaceQuery()

Method Detail

setId

public SpaceQuery setId​(java.lang.Long id) Set the space id (PK) query parameter.
Parameters:
id - the space id (PK) query parameter
Returns:
the space query

setName

public SpaceQuery setName​(java.lang.String name) Set the space name query parameter.
Parameters:
name - the space name query parameter
Returns:
the space query

setContextPath

public SpaceQuery setContextPath​(java.lang.String contextPath) Set the space context path parameter.
Parameters:
contextPath - the space content path parameter
Returns:
the space query

setFetchLimit

public SpaceQuery setFetchLimit​(int fetchLimit) Set the query fetch limit to limit the maximum number of records returned. The default query fetch limit is 100 records.
Parameters:
fetchLimit - the query fetch limit
Returns:
the space query

addOrderByAsc

public SpaceQuery addOrderByAsc​(java.lang.String orderProperty) Add the sort order by ascending to the query.
Parameters:
orderProperty - the property to sort by (required)
Returns:
the space query

addOrderByDesc

public SpaceQuery addOrderByDesc​(java.lang.String orderProperty) Add the sort order by descending to the query.
Parameters:
orderProperty - the property to sort by (required)
Returns:
the space query

count

public int count() Execute a select count query and return the total number of records selected by the query.
Returns:
the total number of records selected by the query

listValues

public java.util.List<Space> listValues() Execute the space query and return a list of Space value objects.
Returns:
execute the space query and return a list of Space value objects

listJson

public java.lang.String listJson() Execute the query and return a space JSON array list.
Returns:
execute the query and return a space JSON array list

firstValue

public Space firstValue() Execute the query and return the first space value object for the query.
Returns:
execute the query and return the first space value object for the query

firstJson

public java.lang.String firstJson() Execute the query and return the first space JSON value.
Returns:
execute the query and return the first space JSON value
← Class RefDataQueryClass SvcConnQuery →

Terms & Conditions

Privacy Policy

Cookie Policy

Copyright © 2003-2022 Temenos Headquarters SA