|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.tools.importexport.ImportUtilities
public class ImportUtilities
Field Summary | |
---|---|
static int |
MAX_DEFAULT_IMPORT_FILE_SIZE
|
Constructor Summary | |
---|---|
ImportUtilities()
|
Method Summary | |
---|---|
static void |
associateWithExistingEntities(SbiDataSetConfig dataset,
SbiDataSetConfig exportedDataset,
org.hibernate.Session sessionCurrDB,
ImporterMetadata importer,
MetadataAssociations metaAss)
Set into the dataset the datasource associated with the exported dataset. |
static void |
associateWithExistingEntities(SbiDataSource datasource,
SbiDataSource exportedDatasource,
org.hibernate.Session sessionCurrDB,
ImporterMetadata importer,
MetadataAssociations metaAss)
Set into the datasource the dialect type domain associated with the exported datasource. |
static void |
associateWithExistingEntities(SbiLov lov,
SbiLov exportedLov,
org.hibernate.Session sessionCurrDB,
ImporterMetadata importer,
MetadataAssociations metaAss)
Set into the lov the lov type domain associated with the exported lov. |
static void |
associateWithExistingEntities(SbiObjects obj,
SbiObjects exportedObj,
org.hibernate.Session sessionCurrDB,
ImporterMetadata importer,
MetadataAssociations metaAss)
Set into the biobject to the engine/object type/object state/datasource the entities associated with the exported biobject. |
static void |
associateWithExistingEntities(SbiParameters parameter,
SbiParameters exportedParameter,
org.hibernate.Session sessionCurrDB,
ImporterMetadata importer,
MetadataAssociations metaAss)
Set into the parameter to the parameter type domain associated with the exported parameter. |
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 int |
getImportFileMaxSize()
|
static IImportManager |
getImportManagerInstance()
|
static java.lang.String |
getImportTempFolderPath()
|
static SbiBinContents |
makeNewSbiBinContents(SbiBinContents obj)
Make new sbi bin contents. |
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 SbiDataSetConfig |
makeNewSbiDataSet(SbiDataSetConfig dataset)
Make new data set. |
static SbiDataSource |
makeNewSbiDataSource(SbiDataSource ds)
Make new data source. |
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 SbiFuncRole |
makeNewSbiFunctRole(SbiFuncRole functrole,
java.lang.Integer newFunctid,
java.lang.Integer newRoleid)
|
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 SbiObjTemplates |
makeNewSbiObjTemplates(SbiObjTemplates obj)
Make new sbi obj templates. |
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. |
static SbiParuseCk |
makeNewSbiParuseCk(SbiParuseCk paruseck,
java.lang.Integer newParuseid,
java.lang.Integer newCheckid)
|
static SbiParuseDet |
makeNewSbiParuseDet(SbiParuseDet parusedet,
java.lang.Integer newParuseid,
java.lang.Integer newRoleid)
|
static SbiSnapshots |
makeNewSbiSnapshots(SbiSnapshots obj)
Make new sbi snapshots. |
static SbiSubObjects |
makeNewSbiSubObjects(SbiSubObjects obj)
Make new sbi sub objects. |
static SbiDataSetConfig |
modifyExistingSbiDataSet(SbiDataSetConfig exportedDataset,
org.hibernate.Session sessionCurrDB,
java.lang.Integer existingId)
Load an existing dataset and make modifications as per the exported dataset in input |
static SbiDataSource |
modifyExistingSbiDataSource(SbiDataSource dataSource,
org.hibernate.Session sessionCurrDB,
java.lang.Integer existingDatasourceId)
|
static SbiLov |
modifyExistingSbiLov(SbiLov exportedLov,
org.hibernate.Session sessionCurrDB,
java.lang.Integer existingId)
Load an existing lov and make modifications as per the exported lov in input (existing associations with parameters are maintained). |
static SbiObjects |
modifyExistingSbiObject(SbiObjects exportedObj,
org.hibernate.Session sessionCurrDB,
java.lang.Integer existingId)
Load an existing biobject and make modifications as per the exported biobject in input (existing associations with functionalities are maintained, while existing associations with parameters are deleted). |
static SbiParameters |
modifyExistingSbiParameter(SbiParameters exportedParameter,
org.hibernate.Session sessionCurrDB,
java.lang.Integer existingId)
Load an existing parameter and make modifications as per the exported parameter in input (existing associations with biobjects are maintained, while parameter uses are deleted). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_DEFAULT_IMPORT_FILE_SIZE
Constructor Detail |
---|
public ImportUtilities()
Method Detail |
---|
public static void decompressArchive(java.lang.String pathImpTmpFolder, java.lang.String pathArchiveFile) throws it.eng.spago.error.EMFUserError
pathImpTmpFolder
- The path of the import directorypathArchiveFile
- The path of the exported archive
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static org.hibernate.SessionFactory getHibSessionExportDB(java.lang.String pathDBFolder) throws it.eng.spago.error.EMFUserError
pathDBFolder
- The path of the folder which contains the exported database
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role)
role
- old hibernate role object
public static SbiExtRoles makeNewSbiExtRole(SbiExtRoles role, java.lang.Integer id)
role
- old hibernate role objectid
- the id
public static SbiEngines makeNewSbiEngine(SbiEngines engine)
engine
- old hibernate engine object
public static SbiDataSource makeNewSbiDataSource(SbiDataSource ds)
ds
- the ds
public static SbiDataSource modifyExistingSbiDataSource(SbiDataSource dataSource, org.hibernate.Session sessionCurrDB, java.lang.Integer existingDatasourceId)
public static SbiDataSetConfig makeNewSbiDataSet(SbiDataSetConfig dataset)
dataProxy
- the ds
public static SbiEngines makeNewSbiEngine(SbiEngines engine, java.lang.Integer id)
engine
- old hibernate engine objectid
- the id
public static SbiFunctions makeNewSbiFunction(SbiFunctions funct)
funct
- the funct
public static SbiFunctions makeNewSbiFunction(SbiFunctions funct, java.lang.Integer id)
funct
- the functid
- the id
public static SbiLov makeNewSbiLov(SbiLov lov)
lov
- old hibernate lov object
public static SbiLov makeNewSbiLov(SbiLov lov, java.lang.Integer id)
lov
- old hibernate lov objectid
- the id
public static SbiChecks makeNewSbiCheck(SbiChecks check)
check
- old hibernate check object
public static SbiChecks makeNewSbiCheck(SbiChecks check, java.lang.Integer id)
check
- old hibernate check objectid
- the id
public static SbiParameters makeNewSbiParameter(SbiParameters param)
param
- the param
public static SbiParameters makeNewSbiParameter(SbiParameters param, java.lang.Integer id)
param
- the paramid
- the id
public static SbiParuse makeNewSbiParuse(SbiParuse paruse)
paruse
- the paruse
public static SbiParuse makeNewSbiParuse(SbiParuse paruse, java.lang.Integer id)
paruse
- the paruseid
- the id
public static SbiObjects makeNewSbiObject(SbiObjects obj)
obj
- old hibernate biobject
public static SbiSnapshots makeNewSbiSnapshots(SbiSnapshots obj)
obj
- the obj
public static SbiSubObjects makeNewSbiSubObjects(SbiSubObjects obj)
obj
- the obj
public static SbiObjTemplates makeNewSbiObjTemplates(SbiObjTemplates obj)
obj
- the obj
public static SbiBinContents makeNewSbiBinContents(SbiBinContents obj)
obj
- the obj
public static SbiObjects makeNewSbiObject(SbiObjects obj, java.lang.Integer id)
obj
- old hibernate biobjectid
- the id
public static SbiObjects modifyExistingSbiObject(SbiObjects exportedObj, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId) throws it.eng.spago.error.EMFUserError
exportedObj
- the exported objsessionCurrDB
- the session curr dbexistingId
- the existing id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static SbiParameters modifyExistingSbiParameter(SbiParameters exportedParameter, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId) throws it.eng.spago.error.EMFUserError
exportedParameter
- the exported parametersessionCurrDB
- the session curr dbexistingId
- the existing id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar)
objpar
- the objpar
public static SbiObjPar makeNewSbiObjpar(SbiObjPar objpar, java.lang.Integer id)
objpar
- the objparid
- the id
public static void associateWithExistingEntities(SbiObjects obj, SbiObjects exportedObj, org.hibernate.Session sessionCurrDB, ImporterMetadata importer, MetadataAssociations metaAss) throws it.eng.spago.error.EMFUserError
obj
- the objexportedObj
- the exported objsessionCurrDB
- the session curr dbimporter
- the importermetaAss
- the meta ass
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static void associateWithExistingEntities(SbiParameters parameter, SbiParameters exportedParameter, org.hibernate.Session sessionCurrDB, ImporterMetadata importer, MetadataAssociations metaAss) throws it.eng.spago.error.EMFUserError
parameter
- the parameterexportedParameter
- the exported parametersessionCurrDB
- the session curr dbimporter
- the importermetaAss
- the meta ass
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static SbiDataSetConfig modifyExistingSbiDataSet(SbiDataSetConfig exportedDataset, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId)
exportedDataset
- the exported datasetsessionCurrDB
- the session curr dbexistingId
- the existing id
it.eng.spago.error.EMFUserError
public static SbiLov modifyExistingSbiLov(SbiLov exportedLov, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId)
exportedLov
- the exported lovsessionCurrDB
- the session curr dbexistingId
- the existing id
it.eng.spago.error.EMFUserError
public static void associateWithExistingEntities(SbiLov lov, SbiLov exportedLov, org.hibernate.Session sessionCurrDB, ImporterMetadata importer, MetadataAssociations metaAss) throws it.eng.spago.error.EMFUserError
lov
- the lovexportedLov
- the exported lovsessionCurrDB
- the session curr dbimporter
- the importermetaAss
- the meta ass
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static void associateWithExistingEntities(SbiDataSource datasource, SbiDataSource exportedDatasource, org.hibernate.Session sessionCurrDB, ImporterMetadata importer, MetadataAssociations metaAss) throws it.eng.spago.error.EMFUserError
datasource
- the datasourceexportedDatasource
- the exported lovsessionCurrDB
- the session curr dbimporter
- the importermetaAss
- the meta ass
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static void associateWithExistingEntities(SbiDataSetConfig dataset, SbiDataSetConfig exportedDataset, org.hibernate.Session sessionCurrDB, ImporterMetadata importer, MetadataAssociations metaAss) throws it.eng.spago.error.EMFUserError
dataset
- the datasetexportedDataset
- the exported datasetsessionCurrDB
- the session curr dbimporter
- the importermetaAss
- the meta ass
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static SbiParuseDet makeNewSbiParuseDet(SbiParuseDet parusedet, java.lang.Integer newParuseid, java.lang.Integer newRoleid)
public static SbiParuseCk makeNewSbiParuseCk(SbiParuseCk paruseck, java.lang.Integer newParuseid, java.lang.Integer newCheckid)
public static SbiFuncRole makeNewSbiFunctRole(SbiFuncRole functrole, java.lang.Integer newFunctid, java.lang.Integer newRoleid)
public static int getImportFileMaxSize()
public static java.lang.String getImportTempFolderPath()
public static IImportManager getImportManagerInstance() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |