psdi.iface.intertables

Class CreateTable

  • java.lang.Object
    • psdi.iface.intertables.CreateTable


  • public class CreateTable
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      CreateTable() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      boolean checkTbExistance(java.sql.Connection conn, java.lang.String tbname)
      This method is called from outside of this class (from Field validation of Craete Table GUI - End point field)
      java.lang.String createChosenInterfaceTables(UserInfo userInfo, java.util.List ifaceTbNames, java.util.List chosenEndPoints, java.util.List chosenBackup)
      Deprecated. 
      Create interface tables per list at specified destinations (end points)
      java.lang.String createChosenInterfaceTables(UserInfo userInfo, java.util.List ifaceTbNames, java.util.List chosenEndPoints, java.util.List chosenBackup, MboSetRemote mboSetRemote)
      Create interface tables per list at specified destinations (end points)
      static CreateTable getInstance()
      Get Instance of this singleton object
      • Methods inherited from class java.lang.Object

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

      • CreateTable

        public CreateTable()
    • Method Detail

      • getInstance

        public static CreateTable getInstance()
        Get Instance of this singleton object
        Returns:
        The singleton instance
      • createChosenInterfaceTables

        public java.lang.String createChosenInterfaceTables(UserInfo userInfo,
                                                            java.util.List ifaceTbNames,
                                                            java.util.List chosenEndPoints,
                                                            java.util.List chosenBackup,
                                                            MboSetRemote mboSetRemote)
                                                     throws java.lang.Exception
        Create interface tables per list at specified destinations (end points)
        Parameters:
        userInfo - User Information (typically coming in that of UI user)
        ifaceTbNames - List of interface tables to be created
        chosenEndPoints - End points or Destinations for table creation
        chosenBackup - back up (rename) option before creating already existing table
        Returns:
        Error message if any
        Throws:
        java.lang.Exception
      • checkTbExistance

        public boolean checkTbExistance(java.sql.Connection conn,
                                        java.lang.String tbname)
                                 throws java.lang.Exception
        This method is called from outside of this class (from Field validation of Craete Table GUI - End point field)
        Parameters:
        conn - Connection to the database on which table needs to get checked
        tbname - table name to be checked
        Returns:
        true if exists or false if does not exist
        Throws:
        java.lang.Exception
      • createChosenInterfaceTables

        public java.lang.String createChosenInterfaceTables(UserInfo userInfo,
                                                            java.util.List ifaceTbNames,
                                                            java.util.List chosenEndPoints,
                                                            java.util.List chosenBackup)
                                                     throws java.lang.Exception
        Deprecated. Create interface tables per list at specified destinations (end points)
        Parameters:
        userInfo - User Information (typically coming in that of UI user)
        ifaceTbNames - List of interface tables to be created
        chosenEndPoints - End points or Destinations for table creation
        chosenBackup - back up (rename) option before creating already existing table
        Returns:
        Error message if any
        Throws:
        java.lang.Exception