public class Tools extends Object
| Constructor and Description |
|---|
Tools(ApplicationData applicationData,
net.datastream.wsdls.inforws.InforWebServicesPT inforWebServicesToolkitClient,
ExecutorService executorService,
DataSource dataSource,
javax.persistence.EntityManagerFactory entityManagerFactory,
Logger logger) |
public Tools(ApplicationData applicationData, net.datastream.wsdls.inforws.InforWebServicesPT inforWebServicesToolkitClient, ExecutorService executorService, DataSource dataSource, javax.persistence.EntityManagerFactory entityManagerFactory, Logger logger)
public javax.persistence.EntityManager getEntityManager()
public DataSource getDataSource()
public CustomFieldsTools getCustomFieldsTools()
public DataTypeTools getDataTypeTools()
public FieldDescriptionTools getFieldDescriptionsTools()
public GridTools getGridTools()
public InforFieldTools getInforFieldTools()
public org.xmlsoap.schemas.ws._2002._04.secext.Security createSecurityHeader(InforContext context) throws InforException
InforExceptionpublic net.datastream.schemas.mp_functions.SessionType createInforSession(InforContext context)
public net.datastream.schemas.mp_functions.MessageConfigType createMessageConfig()
public net.datastream.schemas.mp_fields.ORGANIZATIONID_Type getOrganization(InforContext inforContext)
public net.datastream.schemas.mp_fields.ORGANIZATIONID_Type getOrganization(InforContext inforContext, String organizationCode)
public String getOrganizationCode(InforContext context, String organizationCode)
public String getOrganizationCode(InforContext inforContext)
public static EntityOrganizationCodePair extractEntityOrganizationCodePair(String code)
public String getTenant(InforContext inforContext)
public static InforException generateFault(String reason)
public static InforException generateFault(String reason, ExceptionInfo[] errors)
public <T> BatchResponse<T> processCallables(List<Callable<T>> mylist)
public void processRunnables(Runnable... runnables) throws InforException
InforExceptionpublic void processRunnables(List<Runnable> mylist) throws InforException
InforExceptionpublic InforContext getInforContext(Credentials credentials, String sessionID)
public InforContext getInforContext(Credentials credentials)
public InforContext getInforContext(String username, String password)
public void closeConnection(Connection connection, Statement statement, ResultSet resultSet)
connection - Connection to be closedstatement - statement to be closedresultSet - Resultset to be closedpublic void demandDatabaseConnection()
throws InforException
InforExceptionpublic boolean isDatabaseConnectionConfigured()
public <A,R> BatchResponse<R> batchOperation(InforContext context, WSHubOperation<A,R> operation, List<A> arguments)
public <A,R,T> Map<T,R> batchOperationToMap(List<A> arguments, BatchResponse<R> results, Map<T,A> map)
public <A,R> R performInforOperation(InforContext context, InforOperation<A,R> operation, A argument) throws InforException
InforExceptionCopyright © 2025 CERN European Organization for Nuclear Research. All rights reserved.