Class ClassicConnectorUtil

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClassicConnectorUtil
    extends java.lang.Object
    implements java.io.Serializable
    Utility class for ClassicConnector/RMI functions. This utility methods are moved from the ClassicConnector class to this class to provide the available function to transaction operation Operation.

    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 ClassicConnectorUtil object (aggregation).

    Author:
    buw
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void addAll​(java.util.List<T> source, java.util.Properties dest)
      Generic method to add all elements from source into dest.
      void checkFolderName​(java.lang.String name)
      Check folder name.
      void checkProperties​(SaFieldDescription[] fields, java.util.Map<java.lang.String,​java.lang.Object> nameValuePairs, boolean skipMandatoryCheck, java.lang.String ddcName)  
      void checkProperties​(SaFieldDescription[] fields, java.util.Properties props, boolean skipMandatoryCheck, java.lang.String ddcName)
      Check properties.
      void checkProperties​(Description description, SaFieldDescription[] fields)
      Check properties.
      void checkProperties​(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.
      boolean skipMandatoryCheckForFolder​(java.util.Properties nameValuePairs, java.lang.String nodeType)
      Skip mandatory check for folder.
      boolean validatedQueryString​(java.lang.String hqlQuery)
      Validated query string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassicConnectorUtil

        public ClassicConnectorUtil()
    • Method Detail

      • skipMandatoryCheckForFolder

        public 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
      • checkProperties

        public 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
      • checkFolderName

        public void checkFolderName​(java.lang.String name)
                             throws SaFolderNameException
        Check folder name.
        Parameters:
        name - the name
        Throws:
        SaFolderNameException - the sa folder name exception
      • validatedQueryString

        public boolean validatedQueryString​(java.lang.String hqlQuery)
                                     throws SaSystemException
        Validated query string.
        Parameters:
        hqlQuery - the hql query
        Returns:
        true, if successful
        Throws:
        SaSystemException - the sa system exception
      • addAll

        public final <T> void addAll​(java.util.List<T> source,
                                     java.util.Properties dest)
        Generic method to add all elements from source into dest.