• 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 SvcConnQuery

public class SvcConnQuery
extends java.lang.Object
Provides a service connection value object query class. Examples Please find the service connection query examples about list and first and count below.

Service Connection Query List Example

This Groovy example shows how to list "AWS S3" type connections ordered by name.
 import com.avoka.tm.query.*
 import com.avoka.tm.vo.*
 List<SvcConn> svcConns = new SvcConnQuery()
     .setType("AWS S3")
     .addOrderByAsc("name")
     .listValues() 

Service Connection Query First Example

This Groovy example shows how to query a service connection by name.
 import com.avoka.tm.query.*
 import com.avoka.tm.vo.*
 SvcConn svcConn = new SvcConnQuery()
     .setName("History Publish")
     .setClientCode("clientCode")
     .firstValue(); 

Service Connection Query Count Example

This Groovy example shows how to count service connection with given name.
 import com.avoka.tm.query.*
 import com.avoka.tm.vo.*
 int count = new SvcConnQuery()
     .setName("IDV Conn")
     .count(); 
Since:
5.1.0

Constructor Summary

Constructors
Constructor Description
SvcConnQuery()

Method Summary

All Methods Instance Methods Concrete Methods
Modifier and Type Method Description
SvcConnQuery addOrderByAsc​(java.lang.String orderProperty) Add the sort order by ascending to the query.
SvcConnQuery 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 JSON value.
SvcConn firstValue() Execute the query and return the first value object for the query.
java.lang.String listJson() Execute the query and return JSON array list.
java.util.List<SvcConn> listValues() Execute the query and return a list of value objects.
SvcConnQuery setClientCode​(java.lang.String clientCode) Set the service connection client code query parameter.
SvcConnQuery setFetchLimit​(int fetchLimit) Set the query fetch limit to limit the maximum number of records returned.
SvcConnQuery setId​(java.lang.Long id) Set the service connection id (PK) query parameter.
SvcConnQuery setName​(java.lang.String name) Set the service connection name query parameter.
SvcConnQuery setType​(java.lang.String type) Set the service connection type query parameter.

Methods inherited from class java.lang.Object

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

Constructor Detail

SvcConnQuery

public SvcConnQuery()

Method Detail

setClientCode

public SvcConnQuery setClientCode​(java.lang.String clientCode) Set the service connection client code query parameter.
Parameters:
clientCode - the service connection client code query parameter
Returns:
the query object

setId

public SvcConnQuery setId​(java.lang.Long id) Set the service connection id (PK) query parameter.
Parameters:
id - the service connection (PK) query parameter
Returns:
the query object

setName

public SvcConnQuery setName​(java.lang.String name) Set the service connection name query parameter.
Parameters:
name - the service connection name query parameter
Returns:
the query object

setType

public SvcConnQuery setType​(java.lang.String type) Set the service connection type query parameter.
Parameters:
type - the service connection type query parameter
Returns:
the query object

setFetchLimit

public SvcConnQuery 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 query object

addOrderByAsc

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

addOrderByDesc

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

count

public int count() Execute a select count query and return the total number of records selected by the query. Note: Generally, TM does not support configurations where service connections with the same name exist on both the global and the organization specific level. This query will always count matching global service connections, and will also count matching organization-specific connections (depending on organization filters set on the query and organization restrictions on the security context).
Returns:
the total number of records selected by the query

listValues

public java.util.List<SvcConn> listValues() Execute the query and return a list of value objects. Note: Generally, TM does not support configurations where service connections with the same name exist on both the global and the organization specific level. This query will always return matching global service connections, and will also return matching organization-specific connections (depending on organization filters set on the query and organization restrictions on the security context). It is the caller's responsibility to handle multiple result rows (e.g. multiple connections with the same name belonging to different organizations).
Returns:
execute the query and return a list of value objects

listJson

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

firstValue

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

firstJson

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

Terms & Conditions

Privacy Policy

Cookie Policy

Copyright © 2003-2022 Temenos Headquarters SA