it.eng.spagobi.tools.importexport
Class ExporterMetadata

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

public class ExporterMetadata
extends java.lang.Object

Implements methods to insert exported metadata into the exported database


Constructor Summary
ExporterMetadata()
           
 
Method Summary
 void insertAllSnapshot(BIObject biobj, java.util.List snapshotLis, org.hibernate.Session session)
          Insert all Snapshot and their binary content.
 void insertAllSubObject(BIObject biobj, java.util.List subObjectLis, org.hibernate.Session session)
          Insert all SubObject and their binary content.
 void insertBIObject(BIObject biobj, org.hibernate.Session session)
          Insert a biobject into the exported database.
 void insertBIObjectParameter(BIObjectParameter biobjpar, org.hibernate.Session session)
          Insert a BIObject Parameter into the exported database.
 void insertBiParamDepend(java.util.List biparams, org.hibernate.Session session)
          Insert Dependencies between parameters.
 void insertCheck(Check check, org.hibernate.Session session)
          Insert a check into the exported database.
 void insertDataSet(IDataSet dataset, org.hibernate.Session session)
          Insert data set.
 void insertDataSource(IDataSource ds, org.hibernate.Session session)
          Insert data source.
 void insertDomain(Domain domain, org.hibernate.Session session)
          Insert a domain into the exported database.
 void insertEngine(Engine engine, org.hibernate.Session session)
          Insert an engine into the exported database.
 void insertFunctionality(LowFunctionality funct, org.hibernate.Session session)
          Insert a functionality into the exported database.
 void insertFunctRole(Role role, LowFunctionality funct, java.lang.Integer stateId, java.lang.String stateCD, org.hibernate.Session session)
          Insert an association between a functionality and a role into the exported database.
 void insertLov(ModalitiesValue lov, org.hibernate.Session session)
          Insert a list of value into the exported database.
 void insertMapCatalogue(org.hibernate.Session session)
          Exports the map catalogue (maps and features)
 void insertObjFunct(BIObject biobj, LowFunctionality funct, org.hibernate.Session session)
          Insert an association between a functionality and a biobject into the exported database.
 void insertParameter(Parameter param, org.hibernate.Session session)
          Insert a parameter into the exported database.
 void insertParUse(ParameterUse parUse, org.hibernate.Session session)
          Insert a parameter use into the exported database.
 void insertParuseCheck(ParameterUse parUse, Check check, org.hibernate.Session session)
          Insert an association between a parameter use and a check into the exported database.
 void insertParuseRole(ParameterUse parUse, Role role, org.hibernate.Session session)
          Insert an association between a parameter use and a role into the exported database.
 void insertRole(Role role, org.hibernate.Session session)
          Insert a role into the exported database.
 void insertSubReportAssociation(Subreport sub, org.hibernate.Session session)
          Insert an association between a master report and a subreport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExporterMetadata

public ExporterMetadata()
Method Detail

insertDomain

public void insertDomain(Domain domain,
                         org.hibernate.Session session)
                  throws it.eng.spago.error.EMFUserError
Insert a domain into the exported database.

Parameters:
domain - Domain object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertDataSource

public void insertDataSource(IDataSource ds,
                             org.hibernate.Session session)
                      throws it.eng.spago.error.EMFUserError
Insert data source.

Parameters:
ds - the ds
session - the session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertDataSet

public void insertDataSet(IDataSet dataset,
                          org.hibernate.Session session)
                   throws it.eng.spago.error.EMFUserError
Insert data set.

Parameters:
dataset - the dataset
session - the session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertEngine

public void insertEngine(Engine engine,
                         org.hibernate.Session session)
                  throws it.eng.spago.error.EMFUserError
Insert an engine into the exported database.

Parameters:
engine - Engine Object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertAllSnapshot

public void insertAllSnapshot(BIObject biobj,
                              java.util.List snapshotLis,
                              org.hibernate.Session session)
                       throws it.eng.spago.error.EMFUserError
Insert all Snapshot and their binary content.

Parameters:
biobj - the biobj
snapshotLis - the snapshot lis
session - the session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertAllSubObject

public void insertAllSubObject(BIObject biobj,
                               java.util.List subObjectLis,
                               org.hibernate.Session session)
                        throws it.eng.spago.error.EMFUserError
Insert all SubObject and their binary content.

Parameters:
biobj - the biobj
subObjectLis - the sub object lis
session - the session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertBIObject

public void insertBIObject(BIObject biobj,
                           org.hibernate.Session session)
                    throws it.eng.spago.error.EMFUserError
Insert a biobject into the exported database.

Parameters:
biobj - BIObject to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertBIObjectParameter

public void insertBIObjectParameter(BIObjectParameter biobjpar,
                                    org.hibernate.Session session)
                             throws it.eng.spago.error.EMFUserError
Insert a BIObject Parameter into the exported database.

Parameters:
biobjpar - BIObject parameter to insert
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertParameter

public void insertParameter(Parameter param,
                            org.hibernate.Session session)
                     throws it.eng.spago.error.EMFUserError
Insert a parameter into the exported database.

Parameters:
param - The param object to insert
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertParUse

public void insertParUse(ParameterUse parUse,
                         org.hibernate.Session session)
                  throws it.eng.spago.error.EMFUserError
Insert a parameter use into the exported database.

Parameters:
parUse - The Parameter use object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertBiParamDepend

public void insertBiParamDepend(java.util.List biparams,
                                org.hibernate.Session session)
                         throws it.eng.spago.error.EMFUserError
Insert Dependencies between parameters.

Parameters:
biparams - the biparams
session - the session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertLov

public void insertLov(ModalitiesValue lov,
                      org.hibernate.Session session)
               throws it.eng.spago.error.EMFUserError
Insert a list of value into the exported database.

Parameters:
lov - The list of values object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertCheck

public void insertCheck(Check check,
                        org.hibernate.Session session)
                 throws it.eng.spago.error.EMFUserError
Insert a check into the exported database.

Parameters:
check - The check object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertParuseCheck

public void insertParuseCheck(ParameterUse parUse,
                              Check check,
                              org.hibernate.Session session)
                       throws it.eng.spago.error.EMFUserError
Insert an association between a parameter use and a check into the exported database.

Parameters:
parUse - The paruse object which is an element of the association
check - The check object which is an element of the association
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertParuseRole

public void insertParuseRole(ParameterUse parUse,
                             Role role,
                             org.hibernate.Session session)
                      throws it.eng.spago.error.EMFUserError
Insert an association between a parameter use and a role into the exported database.

Parameters:
parUse - The paruse object which is an element of the association
role - The role object which is an element of the association
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertSubReportAssociation

public void insertSubReportAssociation(Subreport sub,
                                       org.hibernate.Session session)
                                throws it.eng.spago.error.EMFUserError
Insert an association between a master report and a subreport.

Parameters:
sub - The subreport
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertFunctionality

public void insertFunctionality(LowFunctionality funct,
                                org.hibernate.Session session)
                         throws it.eng.spago.error.EMFUserError
Insert a functionality into the exported database.

Parameters:
funct - Functionality Object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertRole

public void insertRole(Role role,
                       org.hibernate.Session session)
                throws it.eng.spago.error.EMFUserError
Insert a role into the exported database.

Parameters:
role - The role object to export
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertFunctRole

public void insertFunctRole(Role role,
                            LowFunctionality funct,
                            java.lang.Integer stateId,
                            java.lang.String stateCD,
                            org.hibernate.Session session)
                     throws it.eng.spago.error.EMFUserError
Insert an association between a functionality and a role into the exported database.

Parameters:
role - The role object which is an element of the association
funct - The functionality object which is an element of the association
stateId - The id of the State associated to the couple role / functionality
stateCD - The code of the State associated to the couple role / functionality
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertObjFunct

public void insertObjFunct(BIObject biobj,
                           LowFunctionality funct,
                           org.hibernate.Session session)
                    throws it.eng.spago.error.EMFUserError
Insert an association between a functionality and a biobject into the exported database.

Parameters:
biobj - The BIObject which is an element of the association
funct - The functionality object which is an element of the association
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertMapCatalogue

public void insertMapCatalogue(org.hibernate.Session session)
                        throws it.eng.spago.error.EMFUserError
Exports the map catalogue (maps and features)

Parameters:
session - Hibernate session for the exported database
Throws:
it.eng.spago.error.EMFUserError