psdi.dm.util

Class DMManifest

  • java.lang.Object
    • psdi.dm.util.DMManifest
    • Field Detail

      • dbPlatform

        protected static int dbPlatform
      • tsEnabled

        protected static boolean tsEnabled
    • Constructor Detail

      • DMManifest

        public DMManifest()
    • Method Detail

      • getManifestStreamForPkg

        public static void getManifestStreamForPkg(java.sql.Connection con,
                                                   MboRemote pkgMbo,
                                                   java.io.OutputStream xmlOut)
                                            throws java.lang.Exception
        Create manifest from package table entry
        Parameters:
        con -
        pkgMbo -
        xmlOut -
        Throws:
        MXException
        java.lang.Exception
      • isTextSearchSupported

        public static java.lang.String isTextSearchSupported(java.sql.Connection con)
                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • hasCmpSrc

        public static boolean hasCmpSrc(byte[] manifest)
                                 throws MXException
        Given the stream of manifest, return true if the package has compiled sources.
        Parameters:
        manifest -
        Returns:
        Throws:
        MXException
      • getManifestElement

        public static java.lang.String getManifestElement(byte[] manifest,
                                                          java.lang.String elementName)
                                                   throws MXException
        Given the manifest stream, return the element value.
        Parameters:
        manifest -
        element - name
        Returns:
        element value
        Throws:
        MXException
      • getSourceVersinInfo

        public static java.util.Map getSourceVersinInfo(byte[] manifest)
                                                 throws MXException
        Throws:
        MXException
      • getSourceVersinInfoString

        public static java.lang.String getSourceVersinInfoString(byte[] manifest)
                                                          throws MXException
        Returns the source version information in a string.
        Parameters:
        manifest -
        Returns:
        Throws:
        MXException
      • getDMObjectList

        public static java.util.List getDMObjectList(byte[] manifest)
                                              throws MXException
        Get the object list from the manifest
        Parameters:
        manifest -
        Returns:
        List
        Throws:
        MXException
      • getPreviewInfo

        public static java.util.HashMap getPreviewInfo(byte[] manifest)
                                                throws MXException
        Get preview information from the manifest
        Parameters:
        manifest -
        Returns:
        HashMap
        Throws:
        MXException
      • findSourceDBType

        public static void findSourceDBType(byte[] manifest)
                                     throws MXException
        find the database type of inbound package.
        Parameters:
        manifest -
        Throws:
        java.lang.Exception
        MXException
      • getSourceDBType

        public static int getSourceDBType()
        Return the database type of inbound package.
        Returns:
        database type
      • findTextSearchEnabledInSource

        public static void findTextSearchEnabledInSource(byte[] manifest)
                                                  throws MXException
        find the text search enabled of inbound package.
        Parameters:
        manifest -
        Throws:
        java.lang.Exception
        MXException
      • textSearchEnabledInSource

        public static boolean textSearchEnabledInSource()
        Flag to indicate is source database has text search enabled or not.
        Returns: