it.eng.spagobi.importexport
Class ExporterMetadata

java.lang.Object
  extended by it.eng.spagobi.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 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 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 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
equals, 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

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

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

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

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

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

insertBiParamDepend

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

Parameters:
parameters - list
hibernate - session
Throws:
it.eng.spago.error.EMFUserError

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

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

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

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

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

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

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

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

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