|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.tools.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.Session session)
Get the list of exported hibernate engine objects. |
java.util.List |
getAllExportedRoles(org.hibernate.Session session)
Get the list of exported hibernate role objects. |
java.util.List |
getAllExportedSbiObjects(org.hibernate.Session session,
java.lang.String table,
java.lang.String orderByField)
Get the list of exported hibernate objects. |
java.util.List |
getFilteredExportedSbiObjects(org.hibernate.Session session,
java.lang.String table,
java.lang.String fieldName,
java.lang.Object fieldValue)
|
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. |
void |
updateDSRefs(java.util.Map associations,
org.hibernate.Session session,
MetadataLogger log)
Upadates the data source name into the query lov objects based on the association defined by the user between exported and current SpagoBI data source. |
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.Session session) throws it.eng.spago.error.EMFUserError
session
- Hiberante session for the exported database
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List getAllExportedEngines(org.hibernate.Session session) throws it.eng.spago.error.EMFUserError
session
- Hibernate session for the exported database
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List getAllExportedSbiObjects(org.hibernate.Session session, java.lang.String table, java.lang.String orderByField) throws it.eng.spago.error.EMFUserError
session
- Hibernate session for the exported databasetable
- The name of the table corresponding to the hibernate
objects to gather
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List getFilteredExportedSbiObjects(org.hibernate.Session session, java.lang.String table, java.lang.String fieldName, java.lang.Object fieldValue) throws it.eng.spago.error.EMFUserError
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 objectsession
- Hibernate session for a databasetx
- the tx
public void updateDSRefs(java.util.Map associations, org.hibernate.Session session, MetadataLogger log) throws it.eng.spago.error.EMFUserError
associations
- Map of associations between exported data sources and
data sources of the current SpagoBI platformsession
- Hibernate session for the exported databaselog
- the log
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorpublic 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
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |