it.eng.spagobi.importexport
Class ImportUtilities

java.lang.Object
  extended by it.eng.spagobi.importexport.ImportUtilities

public class ImportUtilities
extends java.lang.Object


Constructor Summary
ImportUtilities()
           
 
Method Summary
static void decompressArchive(java.lang.String pathImpTmpFolder, java.lang.String pathArchiveFile)
          Decompress the export compress file
static org.hibernate.SessionFactory getHibSessionExportDB(java.lang.String pathDBFolder)
          Creates an Hibernate session factory for the exported database
static SbiChecks makeNewSbiCheck(SbiChecks check)
          Creates a new hibernate check object
static SbiChecks makeNewSbiCheck(SbiChecks check, java.lang.Integer id)
          Creates a new hibernate check object
static SbiEngines makeNewSbiEngine(SbiEngines engine)
          Creates a new hibernate engine object
static SbiEngines makeNewSbiEngine(SbiEngines engine, java.lang.Integer id)
          Creates a new hibernate engine object
static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role)
          Creates a new hibernate role object
static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role, java.lang.Integer id)
          Creates a new hibernate role object
static SbiFunctions makeNewSbiFunction(SbiFunctions funct)
          Creates a new hibernate functionality object
static SbiFunctions makeNewSbiFunction(SbiFunctions funct, java.lang.Integer id)
          Creates a new hibernate functionality object
static SbiLov makeNewSbiLov(SbiLov lov)
          Creates a new hibernate lov object
static SbiLov makeNewSbiLov(SbiLov lov, java.lang.Integer id)
          Creates a new hibernate lov object
static SbiObjects makeNewSbiObject(SbiObjects obj)
          Creates a new hibernate biobject
static SbiObjects makeNewSbiObject(SbiObjects obj, java.lang.Integer id)
          Creates a new hibernate biobject
static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar)
          Creates a new hibernate biobject parameter object
static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar, java.lang.Integer id)
          Creates a new hibernate biobject parameter object
static SbiParameters makeNewSbiParameter(SbiParameters param)
          Creates a new hibernate parameter object
static SbiParameters makeNewSbiParameter(SbiParameters param, java.lang.Integer id)
          Creates a new hibernate parameter object
static SbiParuse makeNewSbiParuse(SbiParuse paruse)
          Creates a new hibernate parameter use object
static SbiParuse makeNewSbiParuse(SbiParuse paruse, java.lang.Integer id)
          Creates a new hibernate parameter use object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportUtilities

public ImportUtilities()
Method Detail

decompressArchive

public static void decompressArchive(java.lang.String pathImpTmpFolder,
                                     java.lang.String pathArchiveFile)
                              throws EMFUserError
Decompress the export compress file

Parameters:
pathImpTmpFolder - The path of the import directory
pathArchiveFile - The path of the exported archive
Throws:
EMFUserError

getHibSessionExportDB

public static org.hibernate.SessionFactory getHibSessionExportDB(java.lang.String pathDBFolder)
                                                          throws EMFUserError
Creates an Hibernate session factory for the exported database

Parameters:
pathDBFolder - The path of the folder which contains the exported database
Returns:
The Hibernate session factory
Throws:
EMFUserError

makeNewSbiExtRole

public static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role)
Creates a new hibernate role object

Parameters:
role - old hibernate role object
Returns:
the new hibernate role object

makeNewSbiExtRole

public static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role,
                                            java.lang.Integer id)
Creates a new hibernate role object

Parameters:
role - old hibernate role object
the - id to assign to the new created role
Returns:
the new hibernate role object

makeNewSbiEngine

public static SbiEngines makeNewSbiEngine(SbiEngines engine)
Creates a new hibernate engine object

Parameters:
engine - old hibernate engine object
Returns:
the new hibernate engine object

makeNewSbiEngine

public static SbiEngines makeNewSbiEngine(SbiEngines engine,
                                          java.lang.Integer id)
Creates a new hibernate engine object

Parameters:
engine - old hibernate engine object
the - id to assign to the new created engine
Returns:
the new hibernate engine object

makeNewSbiFunction

public static SbiFunctions makeNewSbiFunction(SbiFunctions funct)
Creates a new hibernate functionality object

Parameters:
functionality - old hibernate functionality object
Returns:
the new hibernate functionality object

makeNewSbiFunction

public static SbiFunctions makeNewSbiFunction(SbiFunctions funct,
                                              java.lang.Integer id)
Creates a new hibernate functionality object

Parameters:
functionality - old hibernate functionality object
the - id to assign to the new created functionality
Returns:
the new hibernate functionality object

makeNewSbiLov

public static SbiLov makeNewSbiLov(SbiLov lov)
Creates a new hibernate lov object

Parameters:
lov - old hibernate lov object
Returns:
the new hibernate lov object

makeNewSbiLov

public static SbiLov makeNewSbiLov(SbiLov lov,
                                   java.lang.Integer id)
Creates a new hibernate lov object

Parameters:
lov - old hibernate lov object
the - id to assign to the new created lov
Returns:
the new hibernate lov object

makeNewSbiCheck

public static SbiChecks makeNewSbiCheck(SbiChecks check)
Creates a new hibernate check object

Parameters:
check - old hibernate check object
Returns:
the new hibernate check object

makeNewSbiCheck

public static SbiChecks makeNewSbiCheck(SbiChecks check,
                                        java.lang.Integer id)
Creates a new hibernate check object

Parameters:
check - old hibernate check object
the - id to assign to the new created check
Returns:
the new hibernate check object

makeNewSbiParameter

public static SbiParameters makeNewSbiParameter(SbiParameters param)
Creates a new hibernate parameter object

Parameters:
parameter - old hibernate parameter object
Returns:
the new hibernate parameter object

makeNewSbiParameter

public static SbiParameters makeNewSbiParameter(SbiParameters param,
                                                java.lang.Integer id)
Creates a new hibernate parameter object

Parameters:
parameter - old hibernate parameter object
the - id to assign to the new created parameter
Returns:
the new hibernate parameter object

makeNewSbiParuse

public static SbiParuse makeNewSbiParuse(SbiParuse paruse)
Creates a new hibernate parameter use object

Parameters:
parameter - use old hibernate parameter use object
Returns:
the new hibernate parameter use object

makeNewSbiParuse

public static SbiParuse makeNewSbiParuse(SbiParuse paruse,
                                         java.lang.Integer id)
Creates a new hibernate parameter use object

Parameters:
parameter - use old hibernate parameter use object
the - id to assign to the new created parameter use
Returns:
the new hibernate parameter use object

makeNewSbiObject

public static SbiObjects makeNewSbiObject(SbiObjects obj)
Creates a new hibernate biobject

Parameters:
obj - old hibernate biobject
Returns:
the new hibernate biobject

makeNewSbiObject

public static SbiObjects makeNewSbiObject(SbiObjects obj,
                                          java.lang.Integer id)
Creates a new hibernate biobject

Parameters:
obj - old hibernate biobject
the - id to assign to the new created biobject
Returns:
the new hibernate biobject

makeNewSbiObjpar

public static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar)
Creates a new hibernate biobject parameter object


makeNewSbiObjpar

public static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar,
                                         java.lang.Integer id)
Creates a new hibernate biobject parameter object