it.eng.spagobi.tools.importexport
Class ImportUtilities

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

public class ImportUtilities
extends java.lang.Object


Field Summary
static int MAX_DEFAULT_IMPORT_FILE_SIZE
           
 
Constructor Summary
ImportUtilities()
           
 
Method Summary
static void associateNewSbiDataSethistory(SbiDataSetConfig dataset, SbiDataSetConfig exportedDataset, org.hibernate.Session sessionCurrDB, org.hibernate.Session sessionExpDB, ImporterMetadata importer, MetadataAssociations metaAss, it.eng.spago.base.SessionContainer session)
          associate the new History 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 void entitiesAssociationsOuGrant(SbiOrgUnitGrant exportedGrant, SbiOrgUnitGrant existingGrant, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SbiOrgUnitGrant search new Ids
static void entitiesAssociationsOuGrantNode(SbiOrgUnitGrantNodesId id, SbiOrgUnitGrantNodes exportedGrantNode, SbiOrgUnitGrantNodes existingGrantNode, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SbiOrgUnitGrantNodes search new Ids
static void entitiesAssociationsSbiAlarmContacts(SbiAlarmContact exportedAlarm, SbiAlarmContact existingAlarm, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For Alarm Contacts search new Ids
static void entitiesAssociationsSbiAlarms(SbiAlarm exportedAlarm, SbiAlarm existingAlarm, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For Alarm search new Ids
static void entitiesAssociationsSbiKpi(SbiKpi exportedKpi, SbiKpi existingKpi, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          For Kpi search new Ids
static void entitiesAssociationsSbiKpiInstance(SbiKpiInstance exportedKpiInst, SbiKpiInstance existingKpiInst, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          For Kpi Instamce search new Ids
static void entitiesAssociationsSbiKpiInstPeriod(SbiKpiInstPeriod exportedKpiInstPeriod, SbiKpiInstPeriod existingKpiInstPeriod, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For KpiInstPeriod search new Ids
static void entitiesAssociationsSbiKpiRel(SbiKpiRel exportedKpiRel, SbiKpiRel existingKpiRel, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SbiKpiRel search new Ids
static void entitiesAssociationsSbiModel(SbiKpiModel exportedMod, SbiKpiModel existingMod, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          For Model search new Ids
static void entitiesAssociationsSbiModelInstance(SbiKpiModelInst exportedModInst, SbiKpiModelInst existingModInst, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          For Model Instance search new Ids
static void entitiesAssociationsSbiModelResources(SbiKpiModelResources exportedModRes, SbiKpiModelResources existingModResources, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For Model Resources search new Ids
static void entitiesAssociationsSbiObjMetacontents(SbiObjMetacontents exportedMetacontents, SbiObjMetacontents existingMetacontents, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SBiObjMetacontents search new Ids
static void entitiesAssociationsSbiObjMetadata(SbiObjMetadata exportedObjMetadata, SbiObjMetadata existingObjMetadata, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For ObjMetadata search new Ids
static void entitiesAssociationsSbiPeriodicity(SbiKpiPeriodicity exportedPer, SbiKpiPeriodicity existingPer, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For Periodicity search new Ids
static void entitiesAssociationsSbiResources(SbiResources exportedRes, SbiResources existingResources, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For Resources search new Ids
static void entitiesAssociationsSbiThreshold(SbiThreshold exportedTh, SbiThreshold existingTh, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          For Threshold search new Ids
static void entitiesAssociationsSbiThresholdValues(SbiThresholdValue exportedThValue, SbiThresholdValue existingThvalue, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For ThresholdValues search new Ids
static void entitiesAssociationsSbiUdp(SbiUdp exportedSbiUdp, SbiUdp existingSbiUdp, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SbiUdp search new Ids
static void entitiesAssociationsSbiUdpValue(SbiUdpValue exportedSbiUdpValue, SbiUdpValue existingSbiUdpValue, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          For SbiUdpValue search new Ids
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 SbiOrgUnitGrant makeNewOuGrant(SbiOrgUnitGrant grant, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiOrgUnitGrant grant object.
static SbiOrgUnitGrantNodes makeNewOuGrantNode(SbiOrgUnitGrantNodes grantNode, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiOrgUnitGrantNodes grant node object.
static SbiAlarmContact makeNewSbiAlarmContacts(SbiAlarmContact alarmContact, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiAlarmContact object.
static SbiAlarm makeNewSbiAlarms(SbiAlarm alarm, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiAlarm object.
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, it.eng.spago.base.SessionContainer session)
          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 SbiKpi makeNewSbiKpi(SbiKpi kpi, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          Creates a new hibernate kpi object.
static SbiKpiInstance makeNewSbiKpiInstance(SbiKpiInstance kpiInst, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          Creates a new hibernate kpi instance object.
static SbiKpiInstPeriod makeNewSbiKpiInstPeriod(SbiKpiInstPeriod kpiInstPeriod, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate th value object.
static SbiKpiRel makeNewSbiKpiRel(SbiKpiRel kpirel, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiKpiRel object.
static SbiLov makeNewSbiLov(SbiLov lov, java.util.HashMap<java.lang.String,java.lang.String> dsExportUser)
          Creates a new hibernate lov object.
static SbiLov makeNewSbiLov(SbiLov lov, java.lang.Integer id, java.util.Map user)
          Creates a new hibernate lov object.
static SbiKpiModel makeNewSbiModel(SbiKpiModel model, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          Creates a new hibernate model object.
static SbiKpiModelInst makeNewSbiModelInstance(SbiKpiModelInst modelInst, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          Creates a new hibernate model instance object.
static SbiKpiModelResources makeNewSbiModelResource(SbiKpiModelResources modRes, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate th value 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 SbiObjMetacontents makeNewSbiObjMetacontent(SbiObjMetacontents metacontents, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiObjMetacontent object.
static SbiObjMetadata makeNewSbiObjMetadata(SbiObjMetadata objMetadata, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate ObjMetadata.
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 SbiKpiPeriodicity makeNewSbiPeriodicity(SbiKpiPeriodicity periodicity, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate th value object.
static SbiResources makeNewSbiResources(SbiResources resource, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiResource object.
static SbiSnapshots makeNewSbiSnapshots(SbiSnapshots obj)
          Make new sbi snapshots.
static SbiSubObjects makeNewSbiSubObjects(SbiSubObjects obj)
          Make new sbi sub objects.
static SbiThreshold makeNewSbiThreshold(SbiThreshold threshold, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss)
          Creates a new hibernate th object.
static SbiThresholdValue makeNewSbiThresholdValue(SbiThresholdValue thresholdValue, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate th value object.
static SbiUdp makeNewSbiUdp(SbiUdp udp, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiUdp udp object.
static SbiUdpValue makeNewSbiUdpValue(SbiUdpValue udpValue, org.hibernate.Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer)
          Creates a new hibernate SbiUdpValue udp value object.
static SbiKpiRel modifyExistingKpiRel(SbiKpiRel exportedKpiRel, org.hibernate.Session sessionCurrDB, java.lang.Integer existingKpiRelId)
          Load an existing Kpi Relation and make modifications as per the exported udp in input
static SbiOrgUnitGrant modifyExistingOuGrant(SbiOrgUnitGrant exportedGrant, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId)
          Load an existing grant and make modifications as per the exported grant in input
static SbiOrgUnitGrantNodes modifyExistingOuGrantNode(SbiOrgUnitGrantNodes exportedGrantNode, org.hibernate.Session sessionCurrDB, SbiOrgUnitGrantNodesId existingId)
          Load an existing grant node and make modifications as per the exported grant node in input
static SbiAlarmContact modifyExistingSbiAlarmContacts(SbiAlarmContact exportedAlarmContact, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing Alarm Contact and make modifications as per the exported Alarm Contact in input
static SbiAlarm modifyExistingSbiAlarms(SbiAlarm exportedAlarm, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing Alarm and make modifications as per the exported Alarm in input
static SbiDataSetConfig modifyExistingSbiDataSet(SbiDataSetConfig exportedDataset, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, org.hibernate.Session sessionExpDB, it.eng.spago.base.SessionContainer session)
          Load an existing dataset and make modifications as per the exported dataset in input For what concern the history keep track of the previous one and insert the new one
static SbiDataSource modifyExistingSbiDataSource(SbiDataSource dataSource, org.hibernate.Session sessionCurrDB, java.lang.Integer existingDatasourceId)
           
static SbiKpi modifyExistingSbiKpi(SbiKpi exportedKpi, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss)
          Load an existing kpi and make modifications as per the exported kpi in input
static SbiKpiInstance modifyExistingSbiKpiInstance(SbiKpiInstance exportedKpiInst, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss)
          Load an existing kpi instance and make modifications as per the exported kpi instance in input
static SbiKpiInstPeriod modifyExistingSbiKpiInstPeriod(SbiKpiInstPeriod exportedKpiInstPeriod, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing KpiInstPeriod and make modifications as per the exported KpiInstPeriod in input
static SbiLov modifyExistingSbiLov(SbiLov exportedLov, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, java.util.HashMap<java.lang.String,java.lang.String> dsExportUser)
          Load an existing lov and make modifications as per the exported lov in input (existing associations with parameters are maintained).
static SbiKpiModel modifyExistingSbiModel(SbiKpiModel exportedMod, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss)
          Load an existing Model and make modifications
static SbiKpiModelInst modifyExistingSbiModelInstance(SbiKpiModelInst exportedModInst, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss)
          Load an existing Model Inst and make modifications
static SbiKpiModelResources modifyExistingSbiModelResources(SbiKpiModelResources exportedModRes, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing Model resource and make modifications as per the exported Model resource in input
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 SbiObjMetacontents modifyExistingSbiObjMetacontents(SbiObjMetacontents exportedMetacontents, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing ObjMetacontents and make modifications as per the exported ObjMetacontents in input
static SbiObjMetadata modifyExistingSbiObjMetadata(SbiObjMetadata exportedObjMetadata, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing ObjMetadata and make modifications as per the exported ObjMetadata in input
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).
static SbiKpiPeriodicity modifyExistingSbiPeriodicity(SbiKpiPeriodicity exportedPer, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing resource and make modifications as per the exported periodicity in input
static SbiResources modifyExistingSbiResources(SbiResources exportedRes, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing resource and make modifications as per the exported resource in input
static SbiThreshold modifyExistingSbiThreshold(SbiThreshold exportedTh, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss)
          Load an existing threshold and make modifications as per the exported thValue in input
static SbiThresholdValue modifyExistingSbiThresholdValue(SbiThresholdValue exportedThValue, org.hibernate.Session sessionCurrDB, java.lang.Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer)
          Load an existing threshold Values and make modifications as per the exported thValue in input
static SbiUdpValue modifyExistingSbiUdpValue(SbiUdpValue exportedUdpValue, org.hibernate.Session sessionCurrDB, java.lang.Integer existingUdpValueId)
          Load an existing Udp value and make modifications as per the exported udp in input
static SbiUdp modifyExistingUdp(SbiUdp exportedUdp, org.hibernate.Session sessionCurrDB, java.lang.Integer existingUdpId)
          Load an existing Udp and make modifications as per the exported udp in input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DEFAULT_IMPORT_FILE_SIZE

public static final int MAX_DEFAULT_IMPORT_FILE_SIZE
See Also:
Constant Field Values
Constructor Detail

ImportUtilities

public ImportUtilities()
Method Detail

decompressArchive

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

Parameters:
pathImpTmpFolder - The path of the import directory
pathArchiveFile - The path of the exported archive
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getHibSessionExportDB

public static org.hibernate.SessionFactory getHibSessionExportDB(java.lang.String pathDBFolder)
                                                          throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - the EMF user error

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
id - the id
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

makeNewSbiDataSource

public static SbiDataSource makeNewSbiDataSource(SbiDataSource ds)
Make new data source.

Parameters:
ds - the ds
Returns:
the sbi data source

modifyExistingSbiDataSource

public static SbiDataSource modifyExistingSbiDataSource(SbiDataSource dataSource,
                                                        org.hibernate.Session sessionCurrDB,
                                                        java.lang.Integer existingDatasourceId)

makeNewSbiEngine

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

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

makeNewSbiFunction

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

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

makeNewSbiFunction

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

Parameters:
funct - the funct
id - the id
Returns:
the new hibernate functionality object

makeNewSbiLov

public static SbiLov makeNewSbiLov(SbiLov lov,
                                   java.util.HashMap<java.lang.String,java.lang.String> dsExportUser)
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,
                                   java.util.Map user)
Creates a new hibernate lov object.

Parameters:
lov - old hibernate lov object
id - the id
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
id - the id
Returns:
the new hibernate check object

makeNewSbiParameter

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

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

makeNewSbiParameter

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

Parameters:
param - the param
id - the id
Returns:
the new hibernate parameter object

makeNewSbiParuse

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

Parameters:
paruse - the paruse
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:
paruse - the paruse
id - the id
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

makeNewSbiSnapshots

public static SbiSnapshots makeNewSbiSnapshots(SbiSnapshots obj)
Make new sbi snapshots.

Parameters:
obj - the obj
Returns:
the sbi snapshots

makeNewSbiSubObjects

public static SbiSubObjects makeNewSbiSubObjects(SbiSubObjects obj)
Make new sbi sub objects.

Parameters:
obj - the obj
Returns:
the sbi sub objects

makeNewSbiObjTemplates

public static SbiObjTemplates makeNewSbiObjTemplates(SbiObjTemplates obj)
Make new sbi obj templates.

Parameters:
obj - the obj
Returns:
the sbi obj templates

makeNewSbiBinContents

public static SbiBinContents makeNewSbiBinContents(SbiBinContents obj)
Make new sbi bin contents.

Parameters:
obj - the obj
Returns:
the sbi bin contents

makeNewSbiObject

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

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

modifyExistingSbiObject

public static SbiObjects modifyExistingSbiObject(SbiObjects exportedObj,
                                                 org.hibernate.Session sessionCurrDB,
                                                 java.lang.Integer existingId)
                                          throws it.eng.spago.error.EMFUserError
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).

Parameters:
exportedObj - the exported obj
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing biobject modified as per the exported biobject in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingSbiParameter

public static SbiParameters modifyExistingSbiParameter(SbiParameters exportedParameter,
                                                       org.hibernate.Session sessionCurrDB,
                                                       java.lang.Integer existingId)
                                                throws it.eng.spago.error.EMFUserError
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).

Parameters:
exportedParameter - the exported parameter
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing parameter modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiObjpar

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

Parameters:
objpar - the objpar
Returns:
the sbi obj par

makeNewSbiObjpar

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

Parameters:
objpar - the objpar
id - the id
Returns:
the sbi obj par

associateWithExistingEntities

public static void associateWithExistingEntities(SbiObjects obj,
                                                 SbiObjects exportedObj,
                                                 org.hibernate.Session sessionCurrDB,
                                                 ImporterMetadata importer,
                                                 MetadataAssociations metaAss)
                                          throws it.eng.spago.error.EMFUserError
Set into the biobject to the engine/object type/object state/datasource the entities associated with the exported biobject.

Parameters:
obj - the obj
exportedObj - the exported obj
sessionCurrDB - the session curr db
importer - the importer
metaAss - the meta ass
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

associateWithExistingEntities

public static void associateWithExistingEntities(SbiParameters parameter,
                                                 SbiParameters exportedParameter,
                                                 org.hibernate.Session sessionCurrDB,
                                                 ImporterMetadata importer,
                                                 MetadataAssociations metaAss)
                                          throws it.eng.spago.error.EMFUserError
Set into the parameter to the parameter type domain associated with the exported parameter.

Parameters:
parameter - the parameter
exportedParameter - the exported parameter
sessionCurrDB - the session curr db
importer - the importer
metaAss - the meta ass
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiDataSet

public static SbiDataSetConfig makeNewSbiDataSet(SbiDataSetConfig dataset,
                                                 it.eng.spago.base.SessionContainer session)
Make new data set.

Parameters:
dataProxy - the ds
Returns:
the sbi data set

modifyExistingSbiDataSet

public static SbiDataSetConfig modifyExistingSbiDataSet(SbiDataSetConfig exportedDataset,
                                                        org.hibernate.Session sessionCurrDB,
                                                        java.lang.Integer existingId,
                                                        org.hibernate.Session sessionExpDB,
                                                        it.eng.spago.base.SessionContainer session)
Load an existing dataset and make modifications as per the exported dataset in input For what concern the history keep track of the previous one and insert the new one

Parameters:
exportedDataset - the exported dataset
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing dataset modified as per the exported dataset in input
Throws:
it.eng.spago.error.EMFUserError

associateNewSbiDataSethistory

public static void associateNewSbiDataSethistory(SbiDataSetConfig dataset,
                                                 SbiDataSetConfig exportedDataset,
                                                 org.hibernate.Session sessionCurrDB,
                                                 org.hibernate.Session sessionExpDB,
                                                 ImporterMetadata importer,
                                                 MetadataAssociations metaAss,
                                                 it.eng.spago.base.SessionContainer session)
associate the new History associated with the exported dataset.

Parameters:
dataset - the dataset
exportedDataset - the exported dataset
sessionCurrDB - the session curr db
importer - the importer
metaAss - the meta ass
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingSbiLov

public static SbiLov modifyExistingSbiLov(SbiLov exportedLov,
                                          org.hibernate.Session sessionCurrDB,
                                          java.lang.Integer existingId,
                                          java.util.HashMap<java.lang.String,java.lang.String> dsExportUser)
Load an existing lov and make modifications as per the exported lov in input (existing associations with parameters are maintained).

Parameters:
exportedLov - the exported lov
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing lov modified as per the exported lov in input
Throws:
it.eng.spago.error.EMFUserError

associateWithExistingEntities

public static void associateWithExistingEntities(SbiLov lov,
                                                 SbiLov exportedLov,
                                                 org.hibernate.Session sessionCurrDB,
                                                 ImporterMetadata importer,
                                                 MetadataAssociations metaAss)
                                          throws it.eng.spago.error.EMFUserError
Set into the lov the lov type domain associated with the exported lov.

Parameters:
lov - the lov
exportedLov - the exported lov
sessionCurrDB - the session curr db
importer - the importer
metaAss - the meta ass
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

associateWithExistingEntities

public static void associateWithExistingEntities(SbiDataSource datasource,
                                                 SbiDataSource exportedDatasource,
                                                 org.hibernate.Session sessionCurrDB,
                                                 ImporterMetadata importer,
                                                 MetadataAssociations metaAss)
                                          throws it.eng.spago.error.EMFUserError
Set into the datasource the dialect type domain associated with the exported datasource.

Parameters:
datasource - the datasource
exportedDatasource - the exported lov
sessionCurrDB - the session curr db
importer - the importer
metaAss - the meta ass
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiParuseDet

public static SbiParuseDet makeNewSbiParuseDet(SbiParuseDet parusedet,
                                               java.lang.Integer newParuseid,
                                               java.lang.Integer newRoleid)

makeNewSbiParuseCk

public static SbiParuseCk makeNewSbiParuseCk(SbiParuseCk paruseck,
                                             java.lang.Integer newParuseid,
                                             java.lang.Integer newCheckid)

makeNewSbiFunctRole

public static SbiFuncRole makeNewSbiFunctRole(SbiFuncRole functrole,
                                              java.lang.Integer newFunctid,
                                              java.lang.Integer newRoleid)

getImportFileMaxSize

public static int getImportFileMaxSize()

getImportTempFolderPath

public static java.lang.String getImportTempFolderPath()

getImportManagerInstance

public static IImportManager getImportManagerInstance()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

makeNewSbiKpi

public static SbiKpi makeNewSbiKpi(SbiKpi kpi,
                                   org.hibernate.Session sessionCurrDB,
                                   MetadataAssociations metaAss)
Creates a new hibernate kpi object.

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

modifyExistingSbiKpi

public static SbiKpi modifyExistingSbiKpi(SbiKpi exportedKpi,
                                          org.hibernate.Session sessionCurrDB,
                                          java.lang.Integer existingId,
                                          MetadataAssociations metaAss)
                                   throws it.eng.spago.error.EMFUserError
Load an existing kpi and make modifications as per the exported kpi in input

Parameters:
exportedKpi - the exported Kpi
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Kpi modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiKpi

public static void entitiesAssociationsSbiKpi(SbiKpi exportedKpi,
                                              SbiKpi existingKpi,
                                              org.hibernate.Session sessionCurrDB,
                                              MetadataAssociations metaAss)
                                       throws it.eng.spago.error.EMFUserError
For Kpi search new Ids

Parameters:
exportedKpi - the exported Kpi
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiKpiInstance

public static SbiKpiInstance makeNewSbiKpiInstance(SbiKpiInstance kpiInst,
                                                   org.hibernate.Session sessionCurrDB,
                                                   MetadataAssociations metaAss)
Creates a new hibernate kpi instance object.

Parameters:
SbiKpiInstance - kpiInst
Returns:
the new hibernate parameter object

modifyExistingSbiKpiInstance

public static SbiKpiInstance modifyExistingSbiKpiInstance(SbiKpiInstance exportedKpiInst,
                                                          org.hibernate.Session sessionCurrDB,
                                                          java.lang.Integer existingId,
                                                          MetadataAssociations metaAss)
                                                   throws it.eng.spago.error.EMFUserError
Load an existing kpi instance and make modifications as per the exported kpi instance in input

Parameters:
exportedKpiInst - the exported Kpi Instance
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Kpi modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiKpiInstance

public static void entitiesAssociationsSbiKpiInstance(SbiKpiInstance exportedKpiInst,
                                                      SbiKpiInstance existingKpiInst,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss)
                                               throws it.eng.spago.error.EMFUserError
For Kpi Instamce search new Ids

Parameters:
exportedKpiInstance - the exported Kpi Instance
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiThresholdValue

public static SbiThresholdValue makeNewSbiThresholdValue(SbiThresholdValue thresholdValue,
                                                         org.hibernate.Session sessionCurrDB,
                                                         MetadataAssociations metaAss,
                                                         ImporterMetadata importer)
Creates a new hibernate th value object.

Parameters:
ThreasholdValue - thValue
Returns:
the new hibernate parameter object

modifyExistingSbiThresholdValue

public static SbiThresholdValue modifyExistingSbiThresholdValue(SbiThresholdValue exportedThValue,
                                                                org.hibernate.Session sessionCurrDB,
                                                                java.lang.Integer existingId,
                                                                MetadataAssociations metaAss,
                                                                ImporterMetadata importer)
                                                         throws it.eng.spago.error.EMFUserError
Load an existing threshold Values and make modifications as per the exported thValue in input

Parameters:
exportedThValue - the exported Th value
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Threshold Value modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiThresholdValues

public static void entitiesAssociationsSbiThresholdValues(SbiThresholdValue exportedThValue,
                                                          SbiThresholdValue existingThvalue,
                                                          org.hibernate.Session sessionCurrDB,
                                                          MetadataAssociations metaAss,
                                                          ImporterMetadata importer)
                                                   throws it.eng.spago.error.EMFUserError
For ThresholdValues search new Ids

Parameters:
exportedKpi - the exported Kpi
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiThreshold

public static SbiThreshold makeNewSbiThreshold(SbiThreshold threshold,
                                               org.hibernate.Session sessionCurrDB,
                                               MetadataAssociations metaAss)
Creates a new hibernate th object.

Parameters:
Threashold - thresdold
Returns:
the new hibernate parameter object

modifyExistingSbiThreshold

public static SbiThreshold modifyExistingSbiThreshold(SbiThreshold exportedTh,
                                                      org.hibernate.Session sessionCurrDB,
                                                      java.lang.Integer existingId,
                                                      MetadataAssociations metaAss)
                                               throws it.eng.spago.error.EMFUserError
Load an existing threshold and make modifications as per the exported thValue in input

Parameters:
exportedThValue - the exported Th
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Threshold modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiThreshold

public static void entitiesAssociationsSbiThreshold(SbiThreshold exportedTh,
                                                    SbiThreshold existingTh,
                                                    org.hibernate.Session sessionCurrDB,
                                                    MetadataAssociations metaAss)
                                             throws it.eng.spago.error.EMFUserError
For Threshold search new Ids

Parameters:
exportedKpi - the exported Kpi
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiModel

public static SbiKpiModel makeNewSbiModel(SbiKpiModel model,
                                          org.hibernate.Session sessionCurrDB,
                                          MetadataAssociations metaAss)
Creates a new hibernate model object.

Parameters:
Model - model
Returns:
the new hibernate parameter object

modifyExistingSbiModel

public static SbiKpiModel modifyExistingSbiModel(SbiKpiModel exportedMod,
                                                 org.hibernate.Session sessionCurrDB,
                                                 java.lang.Integer existingId,
                                                 MetadataAssociations metaAss)
                                          throws it.eng.spago.error.EMFUserError
Load an existing Model and make modifications

Parameters:
exportedModel - the exported Model
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Model modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiModel

public static void entitiesAssociationsSbiModel(SbiKpiModel exportedMod,
                                                SbiKpiModel existingMod,
                                                org.hibernate.Session sessionCurrDB,
                                                MetadataAssociations metaAss)
                                         throws it.eng.spago.error.EMFUserError
For Model search new Ids

Parameters:
exportedModel - the exported Model
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiModelInstance

public static SbiKpiModelInst makeNewSbiModelInstance(SbiKpiModelInst modelInst,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss)
Creates a new hibernate model instance object.

Parameters:
ModelInst - model instance
Returns:
the new hibernate parameter object

modifyExistingSbiModelInstance

public static SbiKpiModelInst modifyExistingSbiModelInstance(SbiKpiModelInst exportedModInst,
                                                             org.hibernate.Session sessionCurrDB,
                                                             java.lang.Integer existingId,
                                                             MetadataAssociations metaAss)
                                                      throws it.eng.spago.error.EMFUserError
Load an existing Model Inst and make modifications

Parameters:
exportedModelInst - the exported Model Instance
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Model INSTANCE modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiModelInstance

public static void entitiesAssociationsSbiModelInstance(SbiKpiModelInst exportedModInst,
                                                        SbiKpiModelInst existingModInst,
                                                        org.hibernate.Session sessionCurrDB,
                                                        MetadataAssociations metaAss)
                                                 throws it.eng.spago.error.EMFUserError
For Model Instance search new Ids

Parameters:
exportedModelInst - the exported Model Instance
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiResources

public static SbiResources makeNewSbiResources(SbiResources resource,
                                               org.hibernate.Session sessionCurrDB,
                                               MetadataAssociations metaAss,
                                               ImporterMetadata importer)
Creates a new hibernate SbiResource object.

Parameters:
Resource - resource
Returns:
the new hibernate parameter object

modifyExistingSbiResources

public static SbiResources modifyExistingSbiResources(SbiResources exportedRes,
                                                      org.hibernate.Session sessionCurrDB,
                                                      java.lang.Integer existingId,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
                                               throws it.eng.spago.error.EMFUserError
Load an existing resource and make modifications as per the exported resource in input

Parameters:
exportedResource - the exported resource
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Threshold Value modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiResources

public static void entitiesAssociationsSbiResources(SbiResources exportedRes,
                                                    SbiResources existingResources,
                                                    org.hibernate.Session sessionCurrDB,
                                                    MetadataAssociations metaAss,
                                                    ImporterMetadata importer)
                                             throws it.eng.spago.error.EMFUserError
For Resources search new Ids

Parameters:
exportedRes - the exported Resource
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiModelResource

public static SbiKpiModelResources makeNewSbiModelResource(SbiKpiModelResources modRes,
                                                           org.hibernate.Session sessionCurrDB,
                                                           MetadataAssociations metaAss,
                                                           ImporterMetadata importer)
Creates a new hibernate th value object.

Parameters:
Model - Resource modRes
Returns:
the new hibernate parameter object

modifyExistingSbiModelResources

public static SbiKpiModelResources modifyExistingSbiModelResources(SbiKpiModelResources exportedModRes,
                                                                   org.hibernate.Session sessionCurrDB,
                                                                   java.lang.Integer existingId,
                                                                   MetadataAssociations metaAss,
                                                                   ImporterMetadata importer)
                                                            throws it.eng.spago.error.EMFUserError
Load an existing Model resource and make modifications as per the exported Model resource in input

Parameters:
exported - mOdel Resource the exported resource
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Threshold Value modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiModelResources

public static void entitiesAssociationsSbiModelResources(SbiKpiModelResources exportedModRes,
                                                         SbiKpiModelResources existingModResources,
                                                         org.hibernate.Session sessionCurrDB,
                                                         MetadataAssociations metaAss,
                                                         ImporterMetadata importer)
                                                  throws it.eng.spago.error.EMFUserError
For Model Resources search new Ids

Parameters:
exported - Model Res the exported Resource
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiPeriodicity

public static SbiKpiPeriodicity makeNewSbiPeriodicity(SbiKpiPeriodicity periodicity,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
Creates a new hibernate th value object.

Parameters:
Periodicity - per
Returns:
the new hibernate parameter object

modifyExistingSbiPeriodicity

public static SbiKpiPeriodicity modifyExistingSbiPeriodicity(SbiKpiPeriodicity exportedPer,
                                                             org.hibernate.Session sessionCurrDB,
                                                             java.lang.Integer existingId,
                                                             MetadataAssociations metaAss,
                                                             ImporterMetadata importer)
                                                      throws it.eng.spago.error.EMFUserError
Load an existing resource and make modifications as per the exported periodicity in input

Parameters:
exportedPeriodicity - the exported periodicity
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Periodicity modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiPeriodicity

public static void entitiesAssociationsSbiPeriodicity(SbiKpiPeriodicity exportedPer,
                                                      SbiKpiPeriodicity existingPer,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
                                               throws it.eng.spago.error.EMFUserError
For Periodicity search new Ids

Parameters:
exportedRes - the exported Periodicity
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiKpiInstPeriod

public static SbiKpiInstPeriod makeNewSbiKpiInstPeriod(SbiKpiInstPeriod kpiInstPeriod,
                                                       org.hibernate.Session sessionCurrDB,
                                                       MetadataAssociations metaAss,
                                                       ImporterMetadata importer)
Creates a new hibernate th value object.

Parameters:
KpiInstPeriod - kpiInstPeriod
Returns:
the new hibernate parameter object

modifyExistingSbiKpiInstPeriod

public static SbiKpiInstPeriod modifyExistingSbiKpiInstPeriod(SbiKpiInstPeriod exportedKpiInstPeriod,
                                                              org.hibernate.Session sessionCurrDB,
                                                              java.lang.Integer existingId,
                                                              MetadataAssociations metaAss,
                                                              ImporterMetadata importer)
                                                       throws it.eng.spago.error.EMFUserError
Load an existing KpiInstPeriod and make modifications as per the exported KpiInstPeriod in input

Parameters:
exported - mKpiInstPeriod the exported resource
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing KpiInstPeriod modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiKpiInstPeriod

public static void entitiesAssociationsSbiKpiInstPeriod(SbiKpiInstPeriod exportedKpiInstPeriod,
                                                        SbiKpiInstPeriod existingKpiInstPeriod,
                                                        org.hibernate.Session sessionCurrDB,
                                                        MetadataAssociations metaAss,
                                                        ImporterMetadata importer)
                                                 throws it.eng.spago.error.EMFUserError
For KpiInstPeriod search new Ids

Parameters:
exported - KpiInstPeriod the exported KpiInstPeriod
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiAlarms

public static SbiAlarm makeNewSbiAlarms(SbiAlarm alarm,
                                        org.hibernate.Session sessionCurrDB,
                                        MetadataAssociations metaAss,
                                        ImporterMetadata importer)
Creates a new hibernate SbiAlarm object.

Parameters:
Alarm - alarm
Returns:
the new hibernate parameter object

modifyExistingSbiAlarms

public static SbiAlarm modifyExistingSbiAlarms(SbiAlarm exportedAlarm,
                                               org.hibernate.Session sessionCurrDB,
                                               java.lang.Integer existingId,
                                               MetadataAssociations metaAss,
                                               ImporterMetadata importer)
                                        throws it.eng.spago.error.EMFUserError
Load an existing Alarm and make modifications as per the exported Alarm in input

Parameters:
exportedAlarm - the exported Alarm
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Alarm modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiAlarms

public static void entitiesAssociationsSbiAlarms(SbiAlarm exportedAlarm,
                                                 SbiAlarm existingAlarm,
                                                 org.hibernate.Session sessionCurrDB,
                                                 MetadataAssociations metaAss,
                                                 ImporterMetadata importer)
                                          throws it.eng.spago.error.EMFUserError
For Alarm search new Ids

Parameters:
exportedAlarm - the exported Alarm
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiAlarmContacts

public static SbiAlarmContact makeNewSbiAlarmContacts(SbiAlarmContact alarmContact,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
Creates a new hibernate SbiAlarmContact object.

Parameters:
AlarmContact - alarmContact
Returns:
the new hibernate parameter object

modifyExistingSbiAlarmContacts

public static SbiAlarmContact modifyExistingSbiAlarmContacts(SbiAlarmContact exportedAlarmContact,
                                                             org.hibernate.Session sessionCurrDB,
                                                             java.lang.Integer existingId,
                                                             MetadataAssociations metaAss,
                                                             ImporterMetadata importer)
                                                      throws it.eng.spago.error.EMFUserError
Load an existing Alarm Contact and make modifications as per the exported Alarm Contact in input

Parameters:
exportedAlarm - the exported Alarm Contact
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing Alarm Contactmodified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiAlarmContacts

public static void entitiesAssociationsSbiAlarmContacts(SbiAlarmContact exportedAlarm,
                                                        SbiAlarmContact existingAlarm,
                                                        org.hibernate.Session sessionCurrDB,
                                                        MetadataAssociations metaAss,
                                                        ImporterMetadata importer)
                                                 throws it.eng.spago.error.EMFUserError
For Alarm Contacts search new Ids

Parameters:
exportedAlarm - the exported Alarm Contacts
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiObjMetadata

public static SbiObjMetadata makeNewSbiObjMetadata(SbiObjMetadata objMetadata,
                                                   org.hibernate.Session sessionCurrDB,
                                                   MetadataAssociations metaAss,
                                                   ImporterMetadata importer)
Creates a new hibernate ObjMetadata.

Parameters:
ObjMetadata - objMetadata
Returns:
the new hibernate parameter object

modifyExistingSbiObjMetadata

public static SbiObjMetadata modifyExistingSbiObjMetadata(SbiObjMetadata exportedObjMetadata,
                                                          org.hibernate.Session sessionCurrDB,
                                                          java.lang.Integer existingId,
                                                          MetadataAssociations metaAss,
                                                          ImporterMetadata importer)
                                                   throws it.eng.spago.error.EMFUserError
Load an existing ObjMetadata and make modifications as per the exported ObjMetadata in input

Parameters:
ObjMetadata - objMetadata
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing ObjMetadata modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiObjMetadata

public static void entitiesAssociationsSbiObjMetadata(SbiObjMetadata exportedObjMetadata,
                                                      SbiObjMetadata existingObjMetadata,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
                                               throws it.eng.spago.error.EMFUserError
For ObjMetadata search new Ids

Parameters:
exported - metadata ObjMetadata
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiObjMetacontent

public static SbiObjMetacontents makeNewSbiObjMetacontent(SbiObjMetacontents metacontents,
                                                          org.hibernate.Session sessionCurrDB,
                                                          MetadataAssociations metaAss,
                                                          ImporterMetadata importer)
Creates a new hibernate SbiObjMetacontent object.

Parameters:
SbiObjectMetacontent - metcontent
Returns:
the new hibernate parameter object

modifyExistingSbiObjMetacontents

public static SbiObjMetacontents modifyExistingSbiObjMetacontents(SbiObjMetacontents exportedMetacontents,
                                                                  org.hibernate.Session sessionCurrDB,
                                                                  java.lang.Integer existingId,
                                                                  MetadataAssociations metaAss,
                                                                  ImporterMetadata importer)
                                                           throws it.eng.spago.error.EMFUserError
Load an existing ObjMetacontents and make modifications as per the exported ObjMetacontents in input

Parameters:
exportedObjMetacontents - the exported ObjMetacontents
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing ObjMetacontents modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

entitiesAssociationsSbiObjMetacontents

public static void entitiesAssociationsSbiObjMetacontents(SbiObjMetacontents exportedMetacontents,
                                                          SbiObjMetacontents existingMetacontents,
                                                          org.hibernate.Session sessionCurrDB,
                                                          MetadataAssociations metaAss,
                                                          ImporterMetadata importer)
                                                   throws it.eng.spago.error.EMFUserError
For SBiObjMetacontents search new Ids

Parameters:
exportedMetacontent - the exported SbiObjMetacontent
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiKpiRel

public static SbiKpiRel makeNewSbiKpiRel(SbiKpiRel kpirel,
                                         org.hibernate.Session sessionCurrDB,
                                         MetadataAssociations metaAss,
                                         ImporterMetadata importer)
Creates a new hibernate SbiKpiRel object.

Parameters:
SbiKpiRel - relation
Returns:
the new hibernate parameter object

entitiesAssociationsSbiKpiRel

public static void entitiesAssociationsSbiKpiRel(SbiKpiRel exportedKpiRel,
                                                 SbiKpiRel existingKpiRel,
                                                 org.hibernate.Session sessionCurrDB,
                                                 MetadataAssociations metaAss,
                                                 ImporterMetadata importer)
                                          throws it.eng.spago.error.EMFUserError
For SbiKpiRel search new Ids

Parameters:
exportedKpiRel - the exported SbiKpiRel
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiUdp

public static SbiUdp makeNewSbiUdp(SbiUdp udp,
                                   org.hibernate.Session sessionCurrDB,
                                   MetadataAssociations metaAss,
                                   ImporterMetadata importer)
Creates a new hibernate SbiUdp udp object.

Parameters:
SbiUdp - udp
Returns:
the new hibernate parameter object

entitiesAssociationsSbiUdp

public static void entitiesAssociationsSbiUdp(SbiUdp exportedSbiUdp,
                                              SbiUdp existingSbiUdp,
                                              org.hibernate.Session sessionCurrDB,
                                              MetadataAssociations metaAss,
                                              ImporterMetadata importer)
                                       throws it.eng.spago.error.EMFUserError
For SbiUdp search new Ids

Parameters:
exportedSbiUdp - the exported SbiUdp
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingUdp

public static SbiUdp modifyExistingUdp(SbiUdp exportedUdp,
                                       org.hibernate.Session sessionCurrDB,
                                       java.lang.Integer existingUdpId)
                                throws it.eng.spago.error.EMFUserError
Load an existing Udp and make modifications as per the exported udp in input

Parameters:
exportedUdp - the exported SbiUdp
sessionCurrDB - the session curr db
existingUdpid - the existing id
Returns:
the existing Udp modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingKpiRel

public static SbiKpiRel modifyExistingKpiRel(SbiKpiRel exportedKpiRel,
                                             org.hibernate.Session sessionCurrDB,
                                             java.lang.Integer existingKpiRelId)
                                      throws it.eng.spago.error.EMFUserError
Load an existing Kpi Relation and make modifications as per the exported udp in input

Parameters:
exportedKpiRel - the exported SbiKpiRel
sessionCurrDB - the session curr db
existingKpiRelId - the existing id
Returns:
the existing SbiKpiRel modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewSbiUdpValue

public static SbiUdpValue makeNewSbiUdpValue(SbiUdpValue udpValue,
                                             org.hibernate.Session sessionCurrDB,
                                             MetadataAssociations metaAss,
                                             ImporterMetadata importer)
Creates a new hibernate SbiUdpValue udp value object.

Parameters:
SbiUdpValue - udp value
Returns:
the new hibernate parameter object

entitiesAssociationsSbiUdpValue

public static void entitiesAssociationsSbiUdpValue(SbiUdpValue exportedSbiUdpValue,
                                                   SbiUdpValue existingSbiUdpValue,
                                                   org.hibernate.Session sessionCurrDB,
                                                   MetadataAssociations metaAss,
                                                   ImporterMetadata importer)
                                            throws it.eng.spago.error.EMFUserError
For SbiUdpValue search new Ids

Parameters:
exportedSbiUdpValue - the exported SbiUdpValue
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingSbiUdpValue

public static SbiUdpValue modifyExistingSbiUdpValue(SbiUdpValue exportedUdpValue,
                                                    org.hibernate.Session sessionCurrDB,
                                                    java.lang.Integer existingUdpValueId)
                                             throws it.eng.spago.error.EMFUserError
Load an existing Udp value and make modifications as per the exported udp in input

Parameters:
exportedUdp - the exported SbiUdp
sessionCurrDB - the session curr db
existingUdpid - the existing id
Returns:
the existing SbiUdpValue modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewOuGrant

public static SbiOrgUnitGrant makeNewOuGrant(SbiOrgUnitGrant grant,
                                             org.hibernate.Session sessionCurrDB,
                                             MetadataAssociations metaAss,
                                             ImporterMetadata importer)
Creates a new hibernate SbiOrgUnitGrant grant object.

Parameters:
SbiOrgUnitGrant - grant
Returns:
the new hibernate parameter object

entitiesAssociationsOuGrant

public static void entitiesAssociationsOuGrant(SbiOrgUnitGrant exportedGrant,
                                               SbiOrgUnitGrant existingGrant,
                                               org.hibernate.Session sessionCurrDB,
                                               MetadataAssociations metaAss,
                                               ImporterMetadata importer)
                                        throws it.eng.spago.error.EMFUserError
For SbiOrgUnitGrant search new Ids

Parameters:
exportedSbiUdpValue - the exported SbiOrgUnitGrant
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingOuGrant

public static SbiOrgUnitGrant modifyExistingOuGrant(SbiOrgUnitGrant exportedGrant,
                                                    org.hibernate.Session sessionCurrDB,
                                                    java.lang.Integer existingId)
                                             throws it.eng.spago.error.EMFUserError
Load an existing grant and make modifications as per the exported grant in input

Parameters:
exportedGrant - the exported grant
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing grant modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

makeNewOuGrantNode

public static SbiOrgUnitGrantNodes makeNewOuGrantNode(SbiOrgUnitGrantNodes grantNode,
                                                      org.hibernate.Session sessionCurrDB,
                                                      MetadataAssociations metaAss,
                                                      ImporterMetadata importer)
Creates a new hibernate SbiOrgUnitGrantNodes grant node object.

Parameters:
SbiOrgUnitGrantNodes - grant node
Returns:
the new hibernate parameter object

entitiesAssociationsOuGrantNode

public static void entitiesAssociationsOuGrantNode(SbiOrgUnitGrantNodesId id,
                                                   SbiOrgUnitGrantNodes exportedGrantNode,
                                                   SbiOrgUnitGrantNodes existingGrantNode,
                                                   org.hibernate.Session sessionCurrDB,
                                                   MetadataAssociations metaAss,
                                                   ImporterMetadata importer)
                                            throws it.eng.spago.error.EMFUserError
For SbiOrgUnitGrantNodes search new Ids

Parameters:
exportedGrantNode - the exported SbiOrgUnitGrantNodes
sessionCurrDB - the session curr db
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifyExistingOuGrantNode

public static SbiOrgUnitGrantNodes modifyExistingOuGrantNode(SbiOrgUnitGrantNodes exportedGrantNode,
                                                             org.hibernate.Session sessionCurrDB,
                                                             SbiOrgUnitGrantNodesId existingId)
                                                      throws it.eng.spago.error.EMFUserError
Load an existing grant node and make modifications as per the exported grant node in input

Parameters:
exportedGrantNode - the exported grant node
sessionCurrDB - the session curr db
existingId - the existing id
Returns:
the existing grant modified as per the exported parameter in input
Throws:
it.eng.spago.error.EMFUserError - the EMF user error