|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.extensionmodule.spi.jdbc.JDBCExtensionModuleReader
public class JDBCExtensionModuleReader
Utility class that loads extension modules and other files from table
ExtensionFilesTable.TABLE_NAME
.
Constructor Summary | |
---|---|
JDBCExtensionModuleReader()
|
Method Summary | |
---|---|
static ExtensionModuleDescriptor |
buildExtensionDescriptor(java.sql.ResultSet resultSet)
|
static int |
executeIntFunctionSQL(java.lang.String sql,
java.sql.Connection jdbcConnection)
|
static int |
getExtensionModuleCount(java.sql.Connection jdbcConnection)
|
static byte[] |
getSource(java.lang.String sourceName,
java.sql.Connection jdbcConnection)
Retrieves an extension module in byte[] form |
static ExtensionModuleDescriptor |
getSourceDescriptor(java.lang.String sourceName,
java.sql.Connection jdbcConnection)
Returns the ExtensionModuleDescriptor object for the extension module indicated by sourceName |
static java.util.List |
getSourceDescriptors(java.lang.String type,
boolean includeDisabled,
java.sql.Connection jdbcConnection)
Returns List of ExtensionModuleDescriptor objects of indicated type, in order of their search ordering |
static java.util.List |
getSourceNames(java.sql.Connection jdbcConnection)
Returns List (of Strings) of all extension module names, in order of their search ordering |
static boolean |
isNameInUse(java.lang.String sourceName,
java.sql.Connection jdbcConnection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCExtensionModuleReader()
Method Detail |
---|
public static java.util.List getSourceNames(java.sql.Connection jdbcConnection) throws MetaMatrixComponentException
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static byte[] getSource(java.lang.String sourceName, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException, java.sql.SQLException
sourceName
- name (e.g. filename) of extension module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)
java.sql.SQLException
public static ExtensionModuleDescriptor getSourceDescriptor(java.lang.String sourceName, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
sourceName
- name (e.g. filename) of extension module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static java.util.List getSourceDescriptors(java.lang.String type, boolean includeDisabled, java.sql.Connection jdbcConnection) throws MetaMatrixComponentException
type
- one of the known types of extension fileincludeDisabled
- if "false", only descriptors for enabled
extension modules will be returned; otherwise all modules will be.
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static int getExtensionModuleCount(java.sql.Connection jdbcConnection) throws MetaMatrixComponentException
MetaMatrixComponentException
public static int executeIntFunctionSQL(java.lang.String sql, java.sql.Connection jdbcConnection) throws MetaMatrixComponentException
MetaMatrixComponentException
public static boolean isNameInUse(java.lang.String sourceName, java.sql.Connection jdbcConnection) throws MetaMatrixComponentException
MetaMatrixComponentException
public static ExtensionModuleDescriptor buildExtensionDescriptor(java.sql.ResultSet resultSet) throws MetaMatrixComponentException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |