|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.extensionmodule.spi.jdbc.JDBCExtensionModuleWriter
public class JDBCExtensionModuleWriter
Constructor Summary | |
---|---|
JDBCExtensionModuleWriter()
|
Method Summary | |
---|---|
static ExtensionModuleDescriptor |
addSource(java.lang.String principalName,
java.lang.String type,
java.lang.String sourceName,
byte[] data,
long checksum,
java.lang.String description,
boolean enabled,
java.sql.Connection jdbcConnection)
Adds an extension module to the end of the list of modules |
static ExtensionModuleDescriptor |
addSource(java.lang.String createdBy,
java.lang.String createdDate,
java.lang.String updatedBy,
java.lang.String updatedDate,
java.lang.String type,
java.lang.String sourceName,
byte[] data,
long checksum,
java.lang.String description,
boolean enabled,
java.sql.Connection jdbcConnection)
Adds an extension module to the end of the list of modules |
static void |
removeSource(java.lang.String principalName,
java.lang.String sourceName,
java.sql.Connection jdbcConnection)
Deletes a module from the list of modules |
static void |
setEnabled(java.lang.String principalName,
java.util.Collection sourceNames,
boolean enabled,
java.sql.Connection jdbcConnection)
Sets the "enabled" (for searching) property of all of the indicated extension modules. |
static void |
setSearchOrder(java.lang.String principalName,
java.util.List sourceNames,
java.sql.Connection jdbcConnection)
Sets the positions in the search order of all modules (all modules must be included or an ExtensionModuleOrderingException will be thrown) The sourceNames List parameter should indicate the new desired order. |
static void |
setSource(java.lang.String principalName,
java.lang.String sourceName,
byte[] data,
long checksum,
java.sql.Connection jdbcConnection)
|
static ExtensionModuleDescriptor |
setSourceDescription(java.lang.String principalName,
java.lang.String sourceName,
java.lang.String description,
java.sql.Connection jdbcConnection)
Updates the indicated extension module's description |
static ExtensionModuleDescriptor |
setSourceName(java.lang.String principalName,
java.lang.String sourceName,
java.lang.String newName,
java.sql.Connection jdbcConnection)
Updates the indicated extension module's source name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCExtensionModuleWriter()
Method Detail |
---|
public static ExtensionModuleDescriptor addSource(java.lang.String principalName, java.lang.String type, java.lang.String sourceName, byte[] data, long checksum, java.lang.String description, boolean enabled, java.sql.Connection jdbcConnection) throws DuplicateExtensionModuleException, MetaMatrixComponentException
principalName
- name of principal requesting this additiontype
- one of the known types of extension filesourceName
- name (e.g. filename) of extension moduledata
- actual contents of modulechecksum
- Checksum of file contentsdescription
- (optional) description of the extension moduleenabled
- indicates whether each extension module is enabled for
being searched or not (for convenience, a module can be disabled
without being removed)
DuplicateExtensionModuleException
- if an extension module
with the same sourceName already exists
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static ExtensionModuleDescriptor addSource(java.lang.String createdBy, java.lang.String createdDate, java.lang.String updatedBy, java.lang.String updatedDate, java.lang.String type, java.lang.String sourceName, byte[] data, long checksum, java.lang.String description, boolean enabled, java.sql.Connection jdbcConnection) throws DuplicateExtensionModuleException, MetaMatrixComponentException
createdBy
- name of principal requesting this additioncreatedDate
- is the date createdupdatedBy
- name is the principal that is doing the updatingupdatedDate
- is the date the source is updatedtype
- one of the known types of extension filesourceName
- name (e.g. filename) of extension moduledata
- actual contents of modulechecksum
- Checksum of file contentsdescription
- (optional) description of the extension moduleenabled
- indicates whether each extension module is enabled for
being searched or not (for convenience, a module can be disabled
without being removed)
DuplicateExtensionModuleException
- if an extension module
with the same sourceName already exists
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static void setSource(java.lang.String principalName, java.lang.String sourceName, byte[] data, long checksum, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
ExtensionModuleNotFoundException
MetaMatrixComponentException
public static ExtensionModuleDescriptor setSourceName(java.lang.String principalName, java.lang.String sourceName, java.lang.String newName, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension modulenewName
- new name for the 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 ExtensionModuleDescriptor setSourceDescription(java.lang.String principalName, java.lang.String sourceName, java.lang.String description, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension moduledescription
- (optional) description of the extension module.
null
can be passed in to indicate no description.
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 void setSearchOrder(java.lang.String principalName, java.util.List sourceNames, java.sql.Connection jdbcConnection) throws ExtensionModuleOrderingException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceNames
- Collection of String names of existing
extension modules whose search position is to be set
ExtensionModuleOrderingException
- if the extension files could
not be ordered as requested because another administrator had
concurrently added or removed an extension file or files, or because
an indicated position is out of bounds.
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)public static void setEnabled(java.lang.String principalName, java.util.Collection sourceNames, boolean enabled, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceNames
- Collection of String names of existing
extension modules whose "enabled" status is to be setenabled
- indicates whether each extension module is enabled for
being searched or not (for convenience, a module can be disabled
without being removed)
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 void removeSource(java.lang.String principalName, java.lang.String sourceName, java.sql.Connection jdbcConnection) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |