com.ibm.dse.services.appltables
Interface ApplicationTablesLoad

All Known Implementing Classes:
ApplicationTables

public interface ApplicationTablesLoad

Defines the methods that must be implemented by a service reading static data table from a external data source to create it into memory.


Method Summary
 void loadTableFromExternalSource()
          Reads the table and its contents from an external data storage and calls the ApplicationTablesMemoryCreation methods to create the table in memory.
 boolean loadTableFromExternalSource(java.lang.String aTableName, java.lang.String version, java.lang.String release, java.lang.String language, java.lang.String enterprise)
          Reads the table aTableName and its contents from an external data storage and calls the ApplicationTablesMemoryCreation methods to create the table in memory.
 

Method Detail

loadTableFromExternalSource

public void loadTableFromExternalSource()
                                 throws DSEInvalidArgumentException,
                                        DSEException,
                                        DSESQLException
Reads the table and its contents from an external data storage and calls the ApplicationTablesMemoryCreation methods to create the table in memory. If no arguments are specified, all tables defined in the external source will be loaded and the external source details ( if any) will be obtained from the service definition
Throws:
DSEInvalidArgumentException - if the parameters are not correct
DSESQLException - if an SQLException occurs
DSEException - if there is no connection available to the database in memory

loadTableFromExternalSource

public boolean loadTableFromExternalSource(java.lang.String aTableName,
                                           java.lang.String version,
                                           java.lang.String release,
                                           java.lang.String language,
                                           java.lang.String enterprise)
                                    throws DSEInvalidArgumentException,
                                           DSEException,
                                           DSESQLException
Reads the table aTableName and its contents from an external data storage and calls the ApplicationTablesMemoryCreation methods to create the table in memory. This method allows specification of which version and release has to be loaded, and which language and enterprise to use. Null or blank values for all these arguments , except for tableName, are accepted to indicate that this argument is not needed. Returns true if the table have been found and false otherwise.
Parameters:
aTableName - String, the name of the table
version - String, version of the table to be loaded
release - String, release of the table to be loaded
language - String, language of the table to be loaded
enterprise - String, enterprise of the table to be loaded
Throws:
DSEInvalidArgumentException - if the parameters are not correct
DSESQLException - if an SQLException occurs
DSEException - if there is no connection available to the database in memory