Skip navigation links


com.essbase.eas.essbase.server
Class DatabaseLogic

java.lang.Object
  extended by com.essbase.eas.essbase.server.DatabaseLogic


public class DatabaseLogic
extends java.lang.Object

Field Summary
static java.lang.String APPLICATION_LIST_KEY
           

 

Constructor Summary
DatabaseLogic()
           

 

Method Summary
 boolean clearDatabase(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean clearNonInput(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean clearUpperLevel(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean copy(EssSession destSession, java.lang.String destApp, java.lang.String destDb, EssSession srcSession, java.lang.String srcApp, java.lang.String srcDb, DatabaseCopyFiles fileTypes, java.lang.Boolean copyCurrencyDb, java.lang.String currencyDbName)
           
 boolean copy(EssSession destSession, java.lang.String destApp, java.lang.String destDb, EssSession srcSession, java.lang.String srcApp, java.lang.String srcDb, DatabaseCopyFiles fileTypes, java.lang.Boolean copyCurrencyDb, java.lang.String currencyDbName, boolean unloadDb)
           
 boolean copy(EssSession destSession, java.lang.String destApp, java.lang.String destDb, EssSession srcSession, java.lang.String srcApp, java.lang.String srcDb, DatabaseCopyFiles fileTypes, java.lang.Boolean copyCurrencyDb, java.lang.String currencyDbName, boolean unloadDb, boolean replace)
           
 java.util.List copyAllDbs(EssSession srcSession, java.lang.String srcApp, EssSession destSession, java.lang.String destApp, boolean isMigration, boolean replace)
          Copies all the databases under srcApp to destApp
 boolean copyDbObjects(EssSession srcSession, EssSession destSession, java.lang.String destApp, java.lang.String srcApp, AppMigration.DbMigration db, boolean replace)
           
 java.util.List copyProperties(EssSession srcSession, java.lang.String srcApp, java.lang.String srcDb, EssSession destSession, java.lang.String destApp, java.lang.String destDb)
           
 boolean copyRequest(EssSession session, StoreService store, ServiceContext theContext)
           
 boolean create(EssSession session, java.lang.String appName, java.lang.String newDbName, boolean currency, boolean unique)
           
 boolean createRequest(EssSession session, StoreService store, ServiceContext theContext)
           
 boolean delete(StoreService store, ServiceContext theContext, EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean export(EssSession session, java.lang.String appName, java.lang.String DbName, java.lang.String fileName, java.lang.String data, boolean format)
           
 void exportFAF(java.lang.String processID, EssSession session, java.lang.String appName, java.lang.String DbName, java.lang.String fileName, java.lang.String data, java.lang.Boolean format)
           
 java.lang.String getCurrencyDb(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean getDatabaseAlias(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.StringBuffer dbAlias)
           
 boolean getDatabaseNote(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.StringBuffer dbNote)
           
 boolean getDataCalculationState(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.StringBuffer state)
           
 boolean getDefaultCalc(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.StringBuffer calcScript)
           
static DrillThroughDefinition[] getDrillThroughDefinitions(java.lang.String srcApp, java.lang.String srcDb, EssSession srcSession)
           
 java.util.List getList(EssSession session, java.lang.String appName)
           
 java.util.List getListStatus(EssSession session, java.lang.String appName)
           
 DatabaseProperties getProperties(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 DatabaseProperties getPropertiesSubset(EssSession session, java.lang.String appName, java.lang.String dbName, int dbPropsSubset)
          This method allows you to request portions of the Properties for a Database for quicker response times.
 short getStatus(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 java.util.List getSystemDiskVolumes(EssSession session)
           
 java.util.List getUsersGroups(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean isDatabaseLocked(EssSession session, java.lang.String app, java.lang.String db)
           
 boolean listDatabaseAliases(EssSession session, java.lang.String appName, java.lang.String dbName, java.util.List dbAliases)
           
 boolean rename(EssSession session, java.lang.String appName, java.lang.String newDbName, java.lang.String oldDbName)
           
static boolean requestCreateDrillThroughDef(EssSession destSession, java.lang.String destApp, java.lang.String destDb, DrillThroughDefinition def, java.lang.String xmlFileName)
           
 boolean setActive(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean setCurrencyLink(EssSession srcSession, EssSession destSession, java.lang.String srcApp, java.lang.String destApp, java.util.List dbList)
          This function is used to set the currency link once the databases have been migrated.
 boolean setDatabaseAlias(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.String dbAlias)
           
 boolean setDatabaseNote(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.String dbNote)
           
 boolean setDefaultCalc(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.String calcScript)
           
 boolean setDefaultCalcFile(EssSession session, java.lang.String appName, java.lang.String dbName, java.lang.String fileName)
           
 java.util.List setProperties(EssSession session, java.lang.String appName, java.lang.String dbName, boolean storageOnly, DatabaseProperties properties)
           
 boolean start(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 boolean stop(EssSession session, java.lang.String appName, java.lang.String dbName)
           
 java.util.List stopAllDbs(EssSession session, java.lang.String appName)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

APPLICATION_LIST_KEY

public static final java.lang.String APPLICATION_LIST_KEY
See Also:
Constant Field Values

Constructor Detail

DatabaseLogic

public DatabaseLogic()

Method Detail

getList

public java.util.List getList(EssSession session,
                              java.lang.String appName)

getListStatus

public java.util.List getListStatus(EssSession session,
                                    java.lang.String appName)

create

public boolean create(EssSession session,
                      java.lang.String appName,
                      java.lang.String newDbName,
                      boolean currency,
                      boolean unique)

copy

public boolean copy(EssSession destSession,
                    java.lang.String destApp,
                    java.lang.String destDb,
                    EssSession srcSession,
                    java.lang.String srcApp,
                    java.lang.String srcDb,
                    DatabaseCopyFiles fileTypes,
                    java.lang.Boolean copyCurrencyDb,
                    java.lang.String currencyDbName)

copy

public boolean copy(EssSession destSession,
                    java.lang.String destApp,
                    java.lang.String destDb,
                    EssSession srcSession,
                    java.lang.String srcApp,
                    java.lang.String srcDb,
                    DatabaseCopyFiles fileTypes,
                    java.lang.Boolean copyCurrencyDb,
                    java.lang.String currencyDbName,
                    boolean unloadDb)

requestCreateDrillThroughDef

public static boolean requestCreateDrillThroughDef(EssSession destSession,
                                                   java.lang.String destApp,
                                                   java.lang.String destDb,
                                                   DrillThroughDefinition def,
                                                   java.lang.String xmlFileName)

getDrillThroughDefinitions

public static DrillThroughDefinition[] getDrillThroughDefinitions(java.lang.String srcApp,
                                                                  java.lang.String srcDb,
                                                                  EssSession srcSession)

copy

public boolean copy(EssSession destSession,
                    java.lang.String destApp,
                    java.lang.String destDb,
                    EssSession srcSession,
                    java.lang.String srcApp,
                    java.lang.String srcDb,
                    DatabaseCopyFiles fileTypes,
                    java.lang.Boolean copyCurrencyDb,
                    java.lang.String currencyDbName,
                    boolean unloadDb,
                    boolean replace)

delete

public boolean delete(StoreService store,
                      ServiceContext theContext,
                      EssSession session,
                      java.lang.String appName,
                      java.lang.String dbName)

rename

public boolean rename(EssSession session,
                      java.lang.String appName,
                      java.lang.String newDbName,
                      java.lang.String oldDbName)

exportFAF

public void exportFAF(java.lang.String processID,
                      EssSession session,
                      java.lang.String appName,
                      java.lang.String DbName,
                      java.lang.String fileName,
                      java.lang.String data,
                      java.lang.Boolean format)
               throws java.lang.Exception
Throws:
java.lang.Exception

export

public boolean export(EssSession session,
                      java.lang.String appName,
                      java.lang.String DbName,
                      java.lang.String fileName,
                      java.lang.String data,
                      boolean format)

start

public boolean start(EssSession session,
                     java.lang.String appName,
                     java.lang.String dbName)

stop

public boolean stop(EssSession session,
                    java.lang.String appName,
                    java.lang.String dbName)

createRequest

public boolean createRequest(EssSession session,
                             StoreService store,
                             ServiceContext theContext)

copyRequest

public boolean copyRequest(EssSession session,
                           StoreService store,
                           ServiceContext theContext)

getProperties

public DatabaseProperties getProperties(EssSession session,
                                        java.lang.String appName,
                                        java.lang.String dbName)

getPropertiesSubset

public DatabaseProperties getPropertiesSubset(EssSession session,
                                              java.lang.String appName,
                                              java.lang.String dbName,
                                              int dbPropsSubset)
This method allows you to request portions of the Properties for a Database for quicker response times. - General - Dimensions - Statistics - Caches - Transactions - Storage - Currency - Modifications
Returns:
DatabasePropertes object with the set of database properties you requested

setProperties

public java.util.List setProperties(EssSession session,
                                    java.lang.String appName,
                                    java.lang.String dbName,
                                    boolean storageOnly,
                                    DatabaseProperties properties)

setDefaultCalc

public boolean setDefaultCalc(EssSession session,
                              java.lang.String appName,
                              java.lang.String dbName,
                              java.lang.String calcScript)

setDefaultCalcFile

public boolean setDefaultCalcFile(EssSession session,
                                  java.lang.String appName,
                                  java.lang.String dbName,
                                  java.lang.String fileName)

getDefaultCalc

public boolean getDefaultCalc(EssSession session,
                              java.lang.String appName,
                              java.lang.String dbName,
                              java.lang.StringBuffer calcScript)

setDatabaseNote

public boolean setDatabaseNote(EssSession session,
                               java.lang.String appName,
                               java.lang.String dbName,
                               java.lang.String dbNote)

getDatabaseNote

public boolean getDatabaseNote(EssSession session,
                               java.lang.String appName,
                               java.lang.String dbName,
                               java.lang.StringBuffer dbNote)

setDatabaseAlias

public boolean setDatabaseAlias(EssSession session,
                                java.lang.String appName,
                                java.lang.String dbName,
                                java.lang.String dbAlias)

listDatabaseAliases

public boolean listDatabaseAliases(EssSession session,
                                   java.lang.String appName,
                                   java.lang.String dbName,
                                   java.util.List dbAliases)

getDatabaseAlias

public boolean getDatabaseAlias(EssSession session,
                                java.lang.String appName,
                                java.lang.String dbName,
                                java.lang.StringBuffer dbAlias)

clearDatabase

public boolean clearDatabase(EssSession session,
                             java.lang.String appName,
                             java.lang.String dbName)

clearUpperLevel

public boolean clearUpperLevel(EssSession session,
                               java.lang.String appName,
                               java.lang.String dbName)

clearNonInput

public boolean clearNonInput(EssSession session,
                             java.lang.String appName,
                             java.lang.String dbName)

getSystemDiskVolumes

public java.util.List getSystemDiskVolumes(EssSession session)

getDataCalculationState

public boolean getDataCalculationState(EssSession session,
                                       java.lang.String appName,
                                       java.lang.String dbName,
                                       java.lang.StringBuffer state)

getCurrencyDb

public java.lang.String getCurrencyDb(EssSession session,
                                      java.lang.String appName,
                                      java.lang.String dbName)

setActive

public boolean setActive(EssSession session,
                         java.lang.String appName,
                         java.lang.String dbName)

stopAllDbs

public java.util.List stopAllDbs(EssSession session,
                                 java.lang.String appName)

getUsersGroups

public java.util.List getUsersGroups(EssSession session,
                                     java.lang.String appName,
                                     java.lang.String dbName)

copyProperties

public java.util.List copyProperties(EssSession srcSession,
                                     java.lang.String srcApp,
                                     java.lang.String srcDb,
                                     EssSession destSession,
                                     java.lang.String destApp,
                                     java.lang.String destDb)

copyAllDbs

public java.util.List copyAllDbs(EssSession srcSession,
                                 java.lang.String srcApp,
                                 EssSession destSession,
                                 java.lang.String destApp,
                                 boolean isMigration,
                                 boolean replace)
Copies all the databases under srcApp to destApp
Parameters:
srcSession -
srcApp -
destSession -
destApp -
Returns:
list of errors

getStatus

public short getStatus(EssSession session,
                       java.lang.String appName,
                       java.lang.String dbName)

setCurrencyLink

public boolean setCurrencyLink(EssSession srcSession,
                               EssSession destSession,
                               java.lang.String srcApp,
                               java.lang.String destApp,
                               java.util.List dbList)
This function is used to set the currency link once the databases have been migrated. Will be used in context of application migration only, where the databases created on the target have to be the same name as that existed on the source.
Parameters:
srcSession -
destSession -
srcApp -
destApp -
dbList -
Returns:

isDatabaseLocked

public boolean isDatabaseLocked(EssSession session,
                                java.lang.String app,
                                java.lang.String db)

copyDbObjects

public boolean copyDbObjects(EssSession srcSession,
                             EssSession destSession,
                             java.lang.String destApp,
                             java.lang.String srcApp,
                             AppMigration.DbMigration db,
                             boolean replace)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.