|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MdFactory
The MdFactory interface is used for controlling the creation of metadata objects and object
stores. Each factory will have its own connection to the metadata server (see MdOMRConnection
).
Field Summary | |
---|---|
static java.lang.String |
CMETADATA
The string name of the root Metadata client object. |
static java.lang.String |
DEFAULT_GET_STRING_VALUE
This is the default value for all get string objects, "get". |
static java.lang.String |
DEFAULT_SET_STRING_VALUE
This is the default value for all get string objects, "set". |
static java.lang.String |
DEFAULT_STATE_STRING_VALUE
This is the default value for all get string objects, "State". |
static java.lang.String |
DEFAULT_STRING_VALUE
This is the default value for all string objects, "". |
static java.lang.String |
DESC
The string used for Description |
static java.lang.String |
ENVIRONMENT
The string used for Environment |
static java.lang.String |
FOLDER
The string use for FOLDER |
static java.lang.String |
ID
The string used to represent and Id |
static int |
MDFACTORYTYPE_MDFACTORYIMPL
The factory type assocaited with MdFactoryImpl |
static int |
MDFACTORYTYPE_MDOBJECTFACTORY
The type associated with MdObjectFactory |
static java.lang.String |
METADATA_TYPE
The string used for the type of metadata objects. |
static java.lang.String |
METADATACREATED
The string used to represent the Metadata Creation date |
static java.lang.String |
METADATAUPDATED
The string used to represent the Metadata Modification date |
static java.lang.String |
NAME
The string used for the Name of an object |
static java.lang.String |
OBJREF
The string used to represent an object reference in XML to/from the server |
static int |
PARSING_TYPE_DOM
DOM Parsing |
static int |
PARSING_TYPE_SAX
SAX Parsing |
static java.lang.String |
WAREHOUSE
The string used for the Warehouse |
Method Summary | |
---|---|
void |
addMdFactoryListener(MdFactoryListener listener)
Registers a factory listener |
void |
addMdFactoryListener(MdFactoryListener listener,
java.lang.String[] objectTypes)
Registers a factory listener. |
void |
addMdObjectFactoryListener(MdObjectFactoryListener l)
Deprecated. Use addMdFactoryListener(MdFactoryListener) |
void |
addMdObjectListener(MdObjectListener l)
Used to add an object to the list of listeners for changes in the Metadata Map |
void |
changeHashKey(java.lang.String strOldId,
java.lang.String strNewId)
Change the hash key associated with an object, and notify listeners |
void |
changeImplementationExtension(java.lang.String newExtension)
This sets the extension for files in the implementation. |
void |
changeImplementationPackage(java.lang.String newPackage)
This changes the java package implementation files are loaded from. |
void |
closeConnection()
Deprecated. this method has been renamed to closeOMRConnection() |
void |
closeOMRConnection()
Close connection to OMR |
CMetadata |
createComplexMetadataObject(MdObjectStore oStore,
CMetadata oSimple)
Creates a complex/detailed metadata object in a given object store. |
CMetadata |
createComplexMetadataObject(MdObjectStore inStore,
MdStore parentStore,
CMetadata oSimple)
Create a complex/detailed metadata object given the name,type, and ID of that object. |
CMetadata |
createComplexMetadataObject(MdObjectStore inStore,
MdStore parentStore,
java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID)
Create a complex/detailed metadata object given the name,type, and ID of that object. |
CMetadata |
createComplexMetadataObject(MdObjectStore inStore,
MdStore parentStore,
java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID,
java.lang.String strNewObjectExternalIdentityRealRepos)
Create a complex/detailed metadata object given the name,type, and ID of that object. |
CMetadata |
createComplexMetadataObject(MdObjectStore oStore,
java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID)
Creates a complex/detailed metadata object in a given object store. |
CMetadata |
createComplexMetadataObject(MdStore inStore,
MdStore parentStore,
java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID,
java.lang.String strNewObjectExternalIdentityRealRepos)
Deprecated. Objects should only be created in an ObjectStore. Deprecated as of 9.2. Use createComplexMetadataObject(MdObjectStore, MdStore, String, String, String, String) instead. |
CMetadata |
createComplexMetadataObjectServerStoreOnly(java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID)
Deprecated. As of 9.2, complex objects should no longer be created within the ServerStore. |
CMetadata |
createComplexMetadataObjectStoreOnly(MdStore inStore,
java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID)
Create a complex/detailed object in specified store only. |
MdObjectStore |
createObjectStore()
Returns a MdObjectStore for use in storing objects, and creating objects. |
MdObjectStore |
createObjectStore(MdStore parentStore)
Returns a MdObjectStore for use in storing objects, and creating objects. |
MdObjectStore |
createObjectStore(MdStore parentStore,
java.lang.String storeName)
Returns a MdObjectStore for use in storing objects, and creating objects. |
CMetadata |
createSimpleMetadataObject(CMetadata inObject)
Creates an object to be used as a place holder for a more complex object. |
CMetadata |
createSimpleMetadataObject(CMetadata inObject,
java.lang.String lockedBy)
Creates an object to be used as a place holder for a more complex object. |
CMetadata |
createSimpleMetadataObject(java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID)
Creates an object to be used as a place holder for a more complex object. |
CMetadata |
createSimpleMetadataObject(java.lang.String strName,
java.lang.String strType,
java.lang.String strFQID,
java.lang.String lockedBy)
Creates an object to be used as a place holder for a more complex object. |
void |
deleteDetailMetadataObject(java.lang.String strFQID)
Deletes an object from the detail Map and fires the MetadataRemoved event. |
void |
deleteMetadataObject(CMetadata delobject)
Removes the object from the client and from the server if the object exists on the server. |
void |
deleteMetadataObjects(CMetadata deleteObject,
java.lang.String template)
Removes the object from the detail Map and from the server! |
void |
deleteMetadataObjects(java.util.List<? extends CMetadata> objectList)
Removes the object from the detail Map and from the server! |
void |
deleteMetadataObjects(java.lang.String objectName,
java.lang.String objectType,
java.lang.String objectFQID,
java.lang.String template)
Removes the object from the detail Map and from the server! |
void |
deleteObjectsFromStores(java.util.List<java.lang.String> objectList)
Deprecated. use deleteObjectsFromStores(Map) |
void |
deleteObjectsFromStores(java.util.Map<java.lang.String,java.lang.String> objectMap)
Removes a list of objects from all object stores. |
void |
deletePublicObject(CMetadata publicObject)
Deletes a public object from the server. |
void |
deletePublicObject(CMetadata publicObject,
java.lang.String template)
Deletes a public object from the server. |
void |
dispose()
Removes all objects and references so this object can be garbage collected. |
void |
dumpDetailHashMap()
Prints out the contents of the Detail object Map. |
void |
fireMdObjectCreated(MdEvent e,
java.lang.String id)
Deprecated. Use fireMdObjectsCreated(MdFactoryEvent) |
void |
fireMdObjectDeleted(MdEvent e,
java.lang.String id)
Deprecated. Use fireMdObjectsDeleted(MdFactoryEvent) |
void |
fireMdObjectsCreated(MdEvent e,
java.util.List<java.lang.String> id)
Deprecated. Use fireMdObjectsCreated(MdFactoryEvent) |
void |
fireMdObjectsCreated(MdFactoryEvent e)
Used to notify all the Factory listeners of new objects created on the server. |
void |
fireMdObjectsDeleted(MdFactoryEvent e)
Used to notify all the Factory listeners of objects deleted from the server. |
void |
fireMdObjectsModified(MdFactoryEvent e)
Used to notify all the Factory listeners of objects modified on the server. |
MetadataResource |
getBundle()
Return resource bundle used to access localized resources |
boolean |
getChangeManagementEnabled()
Gets the status of change management enable/disabled. |
MdOMRConnection |
getConnection()
Returns the connection object. |
boolean |
getDebug()
Gets whether debug information is on for this instance of SAS Java Metadata Interface. |
java.util.Map<java.lang.String,CMetadata> |
getDetailObjectMap()
Deprecated. As of 9.2, complex objects should no longer be stored in the ServerStore |
MdFactory |
getInstance()
Get's the instance of the factory. |
boolean |
getLoggingEnabled()
Gets whether XML transaction logging information is on for this instance of SAS Java Metadata Interface. |
int |
getMdFactoryType()
This can return MDFACTORYTYPE_MDOBJECTFACTORY or MDFACTORYTYPE_MDFACTORYIMPL |
CMetadata |
getObject(java.lang.String strFQID)
Deprecated. As of 9.2, complex objects are no longer stored in the ServerStore. Objects should be created in an ObjectStore. |
MdOMIUtil |
getOMIUtil()
Get's the OMI Utility class |
int |
getParsingType()
Get the type of parser currently being used, SAX or DOM |
boolean |
getPerf()
Tells whether or not to output performance messages |
boolean |
getRemoveDependentObjects()
Returns whether or not dependent objects should be removed when an object is removed from its object store. |
MdRepositoryUtil |
getRepositoryUtil()
Returns the MdRepositoryUtil interface used for utility methods for metadata repositories. |
MdSecurityUtil |
getSecurityUtil()
Returns the MdSecurityUtil instance used for security related operations. |
java.util.Map<java.lang.String,CMetadata> |
getSimpleObjectMap()
Returns the Simple Object Map |
MdServerStore |
getStore()
Deprecated. As of 9.2, the ServerStore should no longer be used. All objects should be created in an ObjectStore instead. |
boolean |
getUseServerFormattedDates()
Returns whether the date attributes (MetadataCreated and MetadataUpdated) on an object should be formatted by the server or not. |
com.sas.metadata.remote.MdUtil |
getUtil()
Returns the MdUtil class used for output. |
boolean |
isRemoteEnvironment()
Indicates whether or not the client is running in a true remote environment. |
void |
makeConnection(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Deprecated. This method is no longer supported. Use makeOMRConnection(String, String, String, String) instead. |
void |
makeConnection2(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Deprecated. this method has been renamed to makeOMRConnection(String, String, String, String) |
java.lang.String |
makeID(java.lang.String shortID)
Creates an ID for a new or temporary object. |
void |
makeOMRConnection(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
This makes a connection to OMR using makeOMRConnection in MdOMRConnection |
void |
removeMdFactoryListener(MdFactoryListener l)
Removes a listener from the list |
void |
removeMdObjectFactoryListener(MdObjectFactoryListener l)
Deprecated. Use removeMdFactoryListener(MdFactoryListener) |
void |
removeMdObjectListener(MdObjectListener l)
Used to remove an object from the list of listeners for changes in the Metadata Map |
void |
removeStore(MdStore childStore)
Remove an object store from the factory for use. |
void |
setChangeManagementEnabled(boolean enabled)
Sets the status of change management |
void |
setDebug(boolean instate)
Sets whether debug information is on for this instance of SAS Java Metadata Interface. |
void |
setLoggingEnabled(boolean instate)
Sets whether XML transaction logging information is on for this instance of SAS Java Metadata Interface. |
void |
setParsingType(int parsing)
Sets the type of xml parser to use. |
void |
setPerf(boolean instate)
Tells whether or not to output performance messages |
void |
setRemoveDependentObjects(boolean remove)
Sets whether or not dependent objects should be removed when an object is removed from its object store. |
void |
setUseServerFormattedDates(boolean format)
Sets whether the date attributes (MetadataCreated and MetadataUpdated) on an object should be formatted by the server or not. |
Field Detail |
---|
static final int PARSING_TYPE_SAX
static final int PARSING_TYPE_DOM
static final java.lang.String DESC
static final java.lang.String ENVIRONMENT
static final java.lang.String FOLDER
static final java.lang.String ID
static final java.lang.String METADATACREATED
static final java.lang.String METADATAUPDATED
static final java.lang.String NAME
static final java.lang.String WAREHOUSE
static final java.lang.String OBJREF
static final java.lang.String CMETADATA
static final java.lang.String METADATA_TYPE
static final java.lang.String DEFAULT_STRING_VALUE
static final java.lang.String DEFAULT_GET_STRING_VALUE
static final java.lang.String DEFAULT_SET_STRING_VALUE
static final java.lang.String DEFAULT_STATE_STRING_VALUE
static final int MDFACTORYTYPE_MDOBJECTFACTORY
static final int MDFACTORYTYPE_MDFACTORYIMPL
Method Detail |
---|
boolean isRemoteEnvironment() throws java.rmi.RemoteException
java.rmi.RemoteException
void makeConnection(java.lang.String protocol, java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException, java.rmi.RemoteException
makeOMRConnection(String, String, String, String)
instead.
protocol
- IGNOREDhost
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
java.rmi.RemoteException
void makeConnection2(java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException, java.rmi.RemoteException
makeOMRConnection(String, String, String, String)
host
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
java.rmi.RemoteException
void closeConnection() throws java.rmi.RemoteException
closeOMRConnection()
java.rmi.RemoteException
void makeOMRConnection(java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException, java.rmi.RemoteException
host
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
java.rmi.RemoteException
void closeOMRConnection() throws java.rmi.RemoteException
java.rmi.RemoteException
int getMdFactoryType() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean getDebug() throws java.rmi.RemoteException
java.rmi.RemoteException
void setDebug(boolean instate) throws java.rmi.RemoteException
java.rmi.RemoteException
boolean getLoggingEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean getPerf() throws java.rmi.RemoteException
java.rmi.RemoteException
void setPerf(boolean instate) throws java.rmi.RemoteException
java.rmi.RemoteException
void setLoggingEnabled(boolean instate) throws java.rmi.RemoteException
java.rmi.RemoteException
com.sas.metadata.remote.MdUtil getUtil() throws java.rmi.RemoteException
java.rmi.RemoteException
MdRepositoryUtil getRepositoryUtil() throws java.rmi.RemoteException
java.rmi.RemoteException
MdSecurityUtil getSecurityUtil() throws java.rmi.RemoteException
java.rmi.RemoteException
MdFactory getInstance() throws java.rmi.RemoteException
java.rmi.RemoteException
int getParsingType() throws java.rmi.RemoteException
java.rmi.RemoteException
void setParsingType(int parsing) throws java.rmi.RemoteException
MdFactory.PARSING_TYPE_SAX
or
MdFactory.PARSING_TYPE_DOM
parsing
-
java.rmi.RemoteException
MdOMIUtil getOMIUtil() throws java.rmi.RemoteException
java.rmi.RemoteException
MdOMRConnection getConnection() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean getChangeManagementEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
void setChangeManagementEnabled(boolean enabled) throws java.rmi.RemoteException
java.rmi.RemoteException
void setRemoveDependentObjects(boolean remove) throws java.rmi.RemoteException
remove
- true if removing dependent objects
java.rmi.RemoteException
boolean getRemoveDependentObjects() throws java.rmi.RemoteException
java.rmi.RemoteException
void setUseServerFormattedDates(boolean format) throws java.rmi.RemoteException
true
.
format
- true if dates should be formatted
java.rmi.RemoteException
boolean getUseServerFormattedDates() throws java.rmi.RemoteException
true
meaning the server will apply its own formatting to the
dates.
java.rmi.RemoteException
java.util.Map<java.lang.String,CMetadata> getSimpleObjectMap() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,CMetadata> getDetailObjectMap() throws java.rmi.RemoteException
java.rmi.RemoteException
MdServerStore getStore() throws java.rmi.RemoteException
java.rmi.RemoteException
MdObjectStore createObjectStore() throws java.rmi.RemoteException
java.rmi.RemoteException
MdObjectStore createObjectStore(MdStore parentStore) throws java.rmi.RemoteException
parentStore
- MdStore the store that owns this one, i.e. its parent.
java.rmi.RemoteException
MdObjectStore createObjectStore(MdStore parentStore, java.lang.String storeName) throws java.rmi.RemoteException
parentStore
- MdStore the store that owns this one, i.e. its parent.
java.rmi.RemoteException
CMetadata createSimpleMetadataObject(CMetadata inObject) throws java.rmi.RemoteException
inObject
- CMetadata object
java.rmi.RemoteException
CMetadata createSimpleMetadataObject(CMetadata inObject, java.lang.String lockedBy) throws java.rmi.RemoteException
inObject
- CMetadata Object to get name, type, and ID from.lockedBy
- String Which object has this one locked.
java.rmi.RemoteException
CMetadata createSimpleMetadataObject(java.lang.String strName, java.lang.String strType, java.lang.String strFQID, java.lang.String lockedBy) throws java.rmi.RemoteException
strName
- StringstrType
- StringstrFQID
- String (NOTE: If the ID is repository only, a new object is created)lockedBy
- String The object that has this one locked in change management.
java.rmi.RemoteException
CMetadata createSimpleMetadataObject(java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
strName
- StringstrType
- StringstrFQID
- String (NOTE: If the ID is repository only, a new object is created)
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdObjectStore oStore, CMetadata oSimple) throws java.rmi.RemoteException
oStore
- MdObjectStoreoSimple
- CMetadata
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdObjectStore inStore, MdStore parentStore, CMetadata oSimple) throws java.rmi.RemoteException
inStore
- MdObjectStore Store to copy object into upon creation.parentStore
- MdStore Store that owns any newly created store.oSimple
- CMetadata object to use to create the new object
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdObjectStore inStore, MdStore parentStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
inStore
and sets the owningstore for the new store if inStore
is null and a new store is created for the object.
inStore
- Store to copy object into upon creation.parentStore
- Store that owns any newly created store.strName
- the object namestrType
- the metadata object typestrFQID
- the metadata object id. A new id will be assigned to the object if strFQID passed
in is the 8 character repository id (ie. "A57BBBVO").
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdObjectStore oStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
oStore
- MdObjectStorestrName
- the object namestrType
- the metadata object typestrFQID
- the metadata object id. A new id will be assigned to the object if strFQID passed
in is the 8 character repository id (ie. "A57BBBVO").
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdStore inStore, MdStore parentStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID, java.lang.String strNewObjectExternalIdentityRealRepos) throws java.rmi.RemoteException
createComplexMetadataObject(MdObjectStore, MdStore, String, String, String, String)
instead.
inStore
and sets the owningstore for the new store if inStore
is null and a new store is created for the object.
inStore
- Store to copy object into upon creation.parentStore
- Store that owns any newly created store.strName
- the object namestrType
- the metadata object typestrFQID
- the metadata object id. A new id will be assigned to the object if strFQID passed
in is the 8 character repository id (ie. "A57BBBVO").strNewObjectExternalIdentityRealRepos
- The Repos the object will reside in if under change management.
java.rmi.RemoteException
CMetadata createComplexMetadataObject(MdObjectStore inStore, MdStore parentStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID, java.lang.String strNewObjectExternalIdentityRealRepos) throws java.rmi.RemoteException
inStore
and sets the owningstore for the new store if inStore
is null and a new store is created for the object.
inStore
- Store to copy object into upon creation.parentStore
- Store that owns any newly created store.strName
- the object namestrType
- the metadata object typestrFQID
- the metadata object id. A new id will be assigned to the object if strFQID passed
in is the 8 character repository id (ie. "A57BBBVO").strNewObjectExternalIdentityRealRepos
- The Repos the object will reside in if under change management.
java.rmi.RemoteException
CMetadata createComplexMetadataObjectServerStoreOnly(java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
strName
- StringstrType
- StringstrFQID
- String
java.rmi.RemoteException
CMetadata createComplexMetadataObjectStoreOnly(MdStore inStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
inStore
- MdStore Place to create object.strName
- StringstrType
- StringstrFQID
- String
java.rmi.RemoteException
void deleteDetailMetadataObject(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
- String
java.rmi.RemoteException
void deletePublicObject(CMetadata publicObject) throws MdException, java.rmi.RemoteException
PublicType
attribute populated, the metadata server will handle deleting the entire
public object using the template stored in the TypeDictionary. If the object does not have a corresponding
entry in the TypeDictionary, only the top level object will be deleted.
publicObject
- the public object to delete
MdException
java.rmi.RemoteException
void deletePublicObject(CMetadata publicObject, java.lang.String template) throws MdException, java.rmi.RemoteException
publicObject
- the public object to deletetemplate
- the delete template. The template must be in the following format:
<Template TemplateName="PUBLIC_TYPE"> <METADATA_TYPE> <!-- additional associations and objects belong here --> </METADATA_TYPE> </Template>Where METADATA_TYPE is the metadata type of the
publicObject
and
PUBLIC_TYPE is the type name as defined in the TypeDictionary
MdException
java.rmi.RemoteException
void deleteMetadataObject(CMetadata delobject) throws MdException, java.rmi.RemoteException
This method should be used to delete any public object. As long as the CMetadata object specified has the PublicType attribute populated, the metadata server will handle deleting the entire public object.
delobject
- the CMetadata object to delete
MdException
java.rmi.RemoteException
void deleteMetadataObjects(CMetadata deleteObject, java.lang.String template) throws MdException, java.rmi.RemoteException
deleteObject
- CMetadatatemplate
- String
MdException
java.rmi.RemoteException
void deleteMetadataObjects(java.lang.String objectName, java.lang.String objectType, java.lang.String objectFQID, java.lang.String template) throws MdException, java.rmi.RemoteException
objectName
- StringobjectType
- StringobjectFQID
- Stringtemplate
- String
MdException
java.rmi.RemoteException
void deleteMetadataObjects(java.util.List<? extends CMetadata> objectList) throws MdException, java.rmi.RemoteException
objectList
- a list of CMetadata objects to delete from the server.
MdException
java.rmi.RemoteException
void deleteObjectsFromStores(java.util.List<java.lang.String> objectList) throws java.rmi.RemoteException
deleteObjectsFromStores(Map)
objectList
- list of object ids to delete from the client
java.rmi.RemoteException
void deleteObjectsFromStores(java.util.Map<java.lang.String,java.lang.String> objectMap) throws java.rmi.RemoteException
objectMap
- a map of all object ids and types to delete from the client.
java.rmi.RemoteException
java.lang.String makeID(java.lang.String shortID) throws java.rmi.RemoteException
shortID
- String
java.rmi.RemoteException
void dumpDetailHashMap() throws java.rmi.RemoteException
java.rmi.RemoteException
void dispose() throws java.rmi.RemoteException
java.rmi.RemoteException
MetadataResource getBundle() throws java.rmi.RemoteException
java.rmi.RemoteException
CMetadata getObject(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
-
java.rmi.RemoteException
void changeHashKey(java.lang.String strOldId, java.lang.String strNewId) throws java.rmi.RemoteException
strOldId
- StringstrNewId
- String
java.rmi.RemoteException
void changeImplementationPackage(java.lang.String newPackage) throws java.rmi.RemoteException
newPackage
- String The name of the java package to load implementation files from.
java.rmi.RemoteException
void changeImplementationExtension(java.lang.String newExtension) throws java.rmi.RemoteException
newExtension
- String The name to append to name of model files.
java.rmi.RemoteException
void removeStore(MdStore childStore) throws java.rmi.RemoteException
childStore
- MdStore The store to remove.
java.rmi.RemoteException
void addMdObjectListener(MdObjectListener l) throws java.rmi.RemoteException
l
- MetadataListener
java.rmi.RemoteException
void removeMdObjectListener(MdObjectListener l) throws java.rmi.RemoteException
l
- MetadataListener
java.rmi.RemoteException
void addMdObjectFactoryListener(MdObjectFactoryListener l) throws java.rmi.RemoteException
addMdFactoryListener(MdFactoryListener)
l
- MetadataListener
java.rmi.RemoteException
void removeMdObjectFactoryListener(MdObjectFactoryListener l) throws java.rmi.RemoteException
removeMdFactoryListener(MdFactoryListener)
l
- MetadataListener
java.rmi.RemoteException
void addMdFactoryListener(MdFactoryListener listener) throws java.rmi.RemoteException
listener
- the listener to register
java.rmi.RemoteException
void addMdFactoryListener(MdFactoryListener listener, java.lang.String[] objectTypes) throws java.rmi.RemoteException
MdFactoryEvent.getObjectMap()
,
contains objects of the specified types.
For instance, if a client chooses to only be notified when modifications are made
to either PhysicalTables or Libraries, they can specify this via the objectTypes
parameter.
In this case, the client can call:
MdFactory factory; MdFactoryListener listener; String interestedTypes[] = new String[] {MetadataObjects.PHYSICALTABLE, MetadataObjects.SASLIBRARY}; factory.addMdFactoryListener(listener, interestedTypes);Any time a created, deleted, or modified event is fired, the objects contained in the event's map will only be of the specified types. All other types will be filtered out of the map.
Note: If the event's object map does not contain any tables or libraries, the listener will never be notified.
listener
- the listener to registerobjectTypes
- an array of metadata types used to filter when events are fired. Events will
only be fired by the factory if the object(s) contained in the event are of the specified type.
java.rmi.RemoteException
void removeMdFactoryListener(MdFactoryListener l) throws java.rmi.RemoteException
l
- MdFactoryListener
java.rmi.RemoteException
void fireMdObjectCreated(MdEvent e, java.lang.String id) throws java.rmi.RemoteException
fireMdObjectsCreated(MdFactoryEvent)
e
- ChangeEvent Created like: new ChangeEvent(Object generator)id
- FQID of newly created object
- Throws:
java.rmi.RemoteException
void fireMdObjectsCreated(MdEvent e, java.util.List<java.lang.String> id) throws java.rmi.RemoteException
fireMdObjectsCreated(MdFactoryEvent)
e
- ChangeEvent Created like: new ChangeEvent(Object generator)id
- FQID of newly created object
- Throws:
java.rmi.RemoteException
void fireMdObjectDeleted(MdEvent e, java.lang.String id) throws java.rmi.RemoteException
fireMdObjectsDeleted(MdFactoryEvent)
e
- MdEvent Created like: new ChangeEvent(Object generator, obj.getFQID)id
- FQID of newly created object
- Throws:
java.rmi.RemoteException
void fireMdObjectsCreated(MdFactoryEvent e) throws java.rmi.RemoteException
e
- MdFactoryEvent
java.rmi.RemoteException
void fireMdObjectsModified(MdFactoryEvent e) throws java.rmi.RemoteException
e
- MdFactoryEvent
java.rmi.RemoteException
void fireMdObjectsDeleted(MdFactoryEvent e) throws java.rmi.RemoteException
e
- MdFactoryEvent
java.rmi.RemoteException
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |