Package com.saperion.util
Class ClassicConnectorUtil
- java.lang.Object
- 
- com.saperion.util.ClassicConnectorUtil
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ClassicConnectorUtil extends java.lang.Object implements java.io.SerializableUtility class for ClassicConnector/RMI functions. This utility methods are moved from the ClassicConnector class to this class to provide the available function to transaction operationOperation.Used on both side, Client Side (ClassicConnector) and Service Side Operation.No static methods are used here to avoid multithreading problems in the CC context. Each CC should use one ClassicConnectorUtilobject (aggregation).- Author:
- buw
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ClassicConnectorUtil()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddAll(java.util.List<T> source, java.util.Properties dest)Generic method to add all elements from source into dest.voidcheckFolderName(java.lang.String name)Check folder name.voidcheckProperties(SaFieldDescription[] fields, java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, boolean skipMandatoryCheck, java.lang.String ddcName)voidcheckProperties(SaFieldDescription[] fields, java.util.Properties props, boolean skipMandatoryCheck, java.lang.String ddcName)Check properties.voidcheckProperties(Description description, SaFieldDescription[] fields)Check properties.voidcheckProperties(java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, java.lang.String ddcName, SaFieldDescription[] fields)Check properties.java.util.List<SaPropertyValue>getSAPropertyValues(java.lang.String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, java.util.Properties namevaluePair)Returns the SaPropertyValue Array for the given ddcname and properties.booleanskipMandatoryCheckForFolder(java.util.Properties nameValuePairs, java.lang.String nodeType)Skip mandatory check for folder.booleanvalidatedQueryString(java.lang.String hqlQuery)Validated query string.
 
- 
- 
- 
Method Detail- 
skipMandatoryCheckForFolderpublic boolean skipMandatoryCheckForFolder(java.util.Properties nameValuePairs, java.lang.String nodeType)Skip mandatory check for folder.- Parameters:
- nameValuePairs- the name value pairs
- nodeType- the node type
- Returns:
- true, if successful
 
 - 
getSAPropertyValuespublic java.util.List<SaPropertyValue> getSAPropertyValues(java.lang.String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, java.util.Properties namevaluePair) throws SaperionDataType.DataTypeConversionException Returns the SaPropertyValue Array for the given ddcname and properties.- Parameters:
- ddcname- the ddcname
- saJNIFieldDescriptionArray- the sa jni field description array
- namevaluePair- the namevalue pair
- Returns:
- SaPropertyValue[]
- Throws:
- SaperionDataType.DataTypeConversionException- the data type conversion exception
 
 - 
checkPropertiespublic void checkProperties(SaFieldDescription[] fields, java.util.Properties props, boolean skipMandatoryCheck, java.lang.String ddcName) throws SaSystemException Check properties.- Parameters:
- fields- the fields
- props- the props
- skipMandatoryCheck- the skip mandatory check
- ddcName- the ddc name
- Throws:
- SaSystemException- the sa system exception
 
 - 
checkPropertiespublic void checkProperties(Description description, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException Check properties.- Parameters:
- description- the description
- fields- the fields
- Throws:
- SaSystemException- the sa system exception
- SaAuthenticationException- the sa authentication exception
 
 - 
checkPropertiespublic void checkProperties(java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, java.lang.String ddcName, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationExceptionCheck properties.- Parameters:
- nameValuePairs- metadata
- fields- the fields
- ddcName- name of the ddc
- Throws:
- SaSystemException- the sa system exception
- SaAuthenticationException- the sa authentication exception
 
 - 
checkPropertiespublic void checkProperties(SaFieldDescription[] fields, java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, boolean skipMandatoryCheck, java.lang.String ddcName) throws SaSystemException - Throws:
- SaSystemException
 
 - 
checkFolderNamepublic void checkFolderName(java.lang.String name) throws SaFolderNameExceptionCheck folder name.- Parameters:
- name- the name
- Throws:
- SaFolderNameException- the sa folder name exception
 
 - 
validatedQueryStringpublic boolean validatedQueryString(java.lang.String hqlQuery) throws SaSystemExceptionValidated query string.- Parameters:
- hqlQuery- the hql query
- Returns:
- true, if successful
- Throws:
- SaSystemException- the sa system exception
 
 - 
addAllpublic final <T> void addAll(java.util.List<T> source, java.util.Properties dest)Generic method to add all elements from source into dest.
 
- 
 
-