|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.importexport.ImporterMetadata
public class ImporterMetadata
Implements methods to gather information from exported database and to make some checks into the current SpagoBI database
Constructor Summary | |
---|---|
ImporterMetadata()
|
Method Summary | |
---|---|
java.lang.Object |
checkExistence(java.lang.Object unique,
org.hibernate.Session sessionCurrDB,
java.lang.Object hibObj)
Check the existance of an object, based on his unique constraints, into the current SpagoBI database |
java.util.List |
getAllExportedEngines(org.hibernate.Transaction tx,
org.hibernate.Session session)
Get the list of exported hibernate engine objects |
java.util.List |
getAllExportedRoles(org.hibernate.Transaction tx,
org.hibernate.Session session)
Get the list of exported hibernate role objects |
java.util.List |
getAllExportedSbiObjects(org.hibernate.Transaction tx,
org.hibernate.Session session,
java.lang.String table)
Get the list of exported hibernate objects |
java.lang.Object |
getObject(java.lang.Integer id,
java.lang.Class objClass,
org.hibernate.Transaction tx,
org.hibernate.Session session)
Get an existing object identified by the id and the class |
SbiObjects |
insertBIObject(SbiObjects obj,
java.lang.String pathContent,
org.hibernate.Session session)
Insert a BIObject into the database and cms repository |
void |
insertObject(java.lang.Object hibObj,
org.hibernate.Session session)
Insert a generic Hibernate object into the exported database |
void |
updateConnRefs(java.util.Map associations,
org.hibernate.Transaction tx,
org.hibernate.Session session,
MetadataLogger log)
Upadates the connection name into the query lov objects based on the assocaition defined by the user between exported and current SpagoBI connection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImporterMetadata()
Method Detail |
---|
public java.util.List getAllExportedRoles(org.hibernate.Transaction tx, org.hibernate.Session session) throws it.eng.spago.error.EMFUserError
tx
- Hiberante transaction for the exported databasesession
- Hiberante session for the exported database
it.eng.spago.error.EMFUserError
public java.util.List getAllExportedEngines(org.hibernate.Transaction tx, org.hibernate.Session session) throws it.eng.spago.error.EMFUserError
tx
- Hibernate transaction for the exported databasesession
- Hibernate session for the exported database
it.eng.spago.error.EMFUserError
public java.util.List getAllExportedSbiObjects(org.hibernate.Transaction tx, org.hibernate.Session session, java.lang.String table) throws it.eng.spago.error.EMFUserError
tx
- Hibernate transaction for the exported databasesession
- Hibernate session for the exported databasetable
- The name of the table corresponding to the hibernate objects to gather
it.eng.spago.error.EMFUserError
public java.lang.Object getObject(java.lang.Integer id, java.lang.Class objClass, org.hibernate.Transaction tx, org.hibernate.Session session)
id
- The Object idobjClass
- The class of the objecttx
- Hibernate transaction for a databasesession
- Hibernate session for a database
public void updateConnRefs(java.util.Map associations, org.hibernate.Transaction tx, org.hibernate.Session session, MetadataLogger log) throws it.eng.spago.error.EMFUserError
associations
- Map of associations between exported connections
and connections of the current SpagoBI platformtx
- Hibernate transaction for the exported databasesession
- Hibernate session for the exported database
it.eng.spago.error.EMFUserError
public void insertObject(java.lang.Object hibObj, org.hibernate.Session session) throws it.eng.spago.error.EMFUserError
hibObj
- The object to insertsession
- Hibernate session for the exported database
it.eng.spago.error.EMFUserError
public SbiObjects insertBIObject(SbiObjects obj, java.lang.String pathContent, org.hibernate.Session session) throws it.eng.spago.error.EMFUserError
obj
- The Hiberante BIObject to insertpathContent
- The path of the temporary contents directorysession
- Hibernate session for the exported database
it.eng.spago.error.EMFUserError
public java.lang.Object checkExistence(java.lang.Object unique, org.hibernate.Session sessionCurrDB, java.lang.Object hibObj) throws it.eng.spago.error.EMFUserError
unique
- The object which contains the unique constraints for the objectsessionCurrDB
- Hibernate session for the current SpagoBI databasehibObj
- An empty object usefull to identify the kind of object to analize
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |