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) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(Connection connection,
Statement statement,
ResultSet resultSet)
Close the connection with the database
|
net.datastream.schemas.mp_functions.SessionType |
createInforSession(InforContext context) |
net.datastream.schemas.mp_functions.MessageConfigType |
createMessageConfig()
Generates MessageConfig element that can be added to the request to tell the
server to omit the InformationAlert and WarningAlert elements from the
response.
|
org.xmlsoap.schemas.ws._2002._04.secext.Security |
createSecurityHeader(InforContext context) |
void |
demandDatabaseConnection() |
InforException |
generateFault(String reason) |
InforException |
generateFault(String reason,
ExceptionInfo[] errors) |
CustomFieldsTools |
getCustomFieldsTools() |
DataSource |
getDataSource() |
DataTypeTools |
getDataTypeTools() |
javax.persistence.EntityManager |
getEntityManager() |
FieldDescriptionTools |
getFieldDescriptionsTools() |
GridTools |
getGridTools() |
InforContext |
getInforContext(Credentials credentials) |
InforContext |
getInforContext(Credentials credentials,
String sessionID) |
net.datastream.schemas.mp_fields.ORGANIZATIONID_Type |
getOrganization(InforContext inforContext) |
String |
getOrganizationCode(InforContext inforContext) |
String |
getTenant(InforContext inforContext) |
UserDefinedFieldsTools |
getUDFTools() |
boolean |
isDatabaseConnectionConfigured() |
void |
log(Level logLevel,
String message) |
<T> BatchResponse<T> |
processCallables(List<Callable<T>> mylist) |
void |
processRunnables(List<Runnable> mylist) |
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 UserDefinedFieldsTools getUDFTools()
public FieldDescriptionTools getFieldDescriptionsTools()
public GridTools getGridTools()
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 String getOrganizationCode(InforContext inforContext)
public String getTenant(InforContext inforContext)
public InforException generateFault(String reason)
public InforException generateFault(String reason, ExceptionInfo[] errors)
public <T> BatchResponse<T> processCallables(List<Callable<T>> mylist)
public void processRunnables(List<Runnable> mylist) throws InforException
InforExceptionpublic InforContext getInforContext(Credentials credentials, String sessionID)
public InforContext getInforContext(Credentials credentials)
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()
Copyright © 2019 CERN European Organization for Nuclear Research. All rights reserved.