|
||||||||||
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 |
SbiObjects |
insertBIObject(SbiObjects obj,
java.lang.String pathContent,
org.hibernate.Session session)
Insert a BIObject into the database and cms repository |
void |
insertCmsFunctionality(java.lang.String curBaseFold,
java.lang.String relExpPath)
Insert a functionality into the database and current 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 |
---|
clone, equals, finalize, 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 EMFUserError
tx
- Hiberante transaction for the exported databasesession
- Hiberante session for the exported database
EMFUserError
public java.util.List getAllExportedEngines(org.hibernate.Transaction tx, org.hibernate.Session session) throws EMFUserError
tx
- Hibernate transaction for the exported databasesession
- Hibernate session for the exported database
EMFUserError
public java.util.List getAllExportedSbiObjects(org.hibernate.Transaction tx, org.hibernate.Session session, java.lang.String table) throws 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
EMFUserError
public void updateConnRefs(java.util.Map associations, org.hibernate.Transaction tx, org.hibernate.Session session, MetadataLogger log) throws 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
EMFUserError
public void insertObject(java.lang.Object hibObj, org.hibernate.Session session) throws EMFUserError
hibObj
- The object to insertsession
- Hibernate session for the exported database
EMFUserError
public void insertCmsFunctionality(java.lang.String curBaseFold, java.lang.String relExpPath) throws EMFUserError
curBaseFold
- The import temporary base folderrelExpPath
- The path of the functionality to insert
EMFUserError
public SbiObjects insertBIObject(SbiObjects obj, java.lang.String pathContent, org.hibernate.Session session) throws EMFUserError
obj
- The Hiberante BIObject to insertpathContent
- The path of the temporary contents directorysession
- Hibernate session for the exported database
EMFUserError
public java.lang.Object checkExistence(java.lang.Object unique, org.hibernate.Session sessionCurrDB, java.lang.Object hibObj) throws 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
EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |