|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.metadata.remote.MdFactoryImpl
public class MdFactoryImpl
This creates objects and Object Stores to be used by views of the metadata.
Field Summary | |
---|---|
protected boolean |
_formatDates
Boolean value used to determine whether date attributes returned by the metadata server should be formatted or unformatted. |
protected boolean |
_removeDependentObjects
Boolean value used to determine whether dependent objects should be removed from their object stores when a remove method is called. |
protected MdRepositoryUtil |
_reposUtil
MdRepositoryUtil instance |
protected MdSecurityUtil |
_securityUtil
MdSecurityUtil instance |
protected MdOMRConnection |
m_connection
MdOMRConnection instance |
protected MdOMIUtil |
m_OMIUtil
MdOMIUtil instance |
protected int |
m_ParsingType
The type of parsing (DOM or SAX) to use. |
protected com.sas.metadata.remote.MdUtil |
m_Util
MdUtil instance |
protected javax.swing.event.EventListenerList |
MdFactoryListenerList
This is the list of listeners for events from the Factory itself. |
Fields inherited from interface com.sas.metadata.remote.MdFactory |
---|
CMETADATA, DEFAULT_GET_STRING_VALUE, DEFAULT_SET_STRING_VALUE, DEFAULT_STATE_STRING_VALUE, DEFAULT_STRING_VALUE, DESC, ENVIRONMENT, FOLDER, ID, MDFACTORYTYPE_MDFACTORYIMPL, MDFACTORYTYPE_MDOBJECTFACTORY, METADATA_TYPE, METADATACREATED, METADATAUPDATED, NAME, OBJREF, PARSING_TYPE_DOM, PARSING_TYPE_SAX, WAREHOUSE |
Constructor Summary | |
---|---|
MdFactoryImpl()
Creates a new factory. |
|
MdFactoryImpl(boolean remoteEnvironment)
Creates a new factory. |
Method Summary | |
---|---|
void |
addMdFactoryListener(MdFactoryListener l)
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. |
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 |
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. |
protected MdServerStore |
getServerStore()
Returns the ServerStore used by this factory. |
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 |
---|
protected javax.swing.event.EventListenerList MdFactoryListenerList
protected MdOMRConnection m_connection
protected MdOMIUtil m_OMIUtil
protected com.sas.metadata.remote.MdUtil m_Util
protected MdRepositoryUtil _reposUtil
protected MdSecurityUtil _securityUtil
protected int m_ParsingType
protected boolean _removeDependentObjects
protected boolean _formatDates
Constructor Detail |
---|
public MdFactoryImpl() throws java.rmi.RemoteException, MdException
MdFactoryImpl(boolean)
.
java.rmi.RemoteException
MdException
public MdFactoryImpl(boolean remoteEnvironment) throws java.rmi.RemoteException, MdException
remoteEnvironment
- true if running in a remote environment. The default value is set to
true
, so in order to run joma in a "local" environment, false
must be specified.
java.rmi.RemoteException
MdException
Method Detail |
---|
public boolean isRemoteEnvironment() throws java.rmi.RemoteException
isRemoteEnvironment
in interface MdFactory
java.rmi.RemoteException
public void makeConnection(java.lang.String protocol, java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException
makeOMRConnection(String, String, String, String)
instead.
makeConnection
in interface MdFactory
protocol
- IGNOREDhost
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
public void makeConnection2(java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException
makeOMRConnection(String, String, String, String)
makeConnection2
in interface MdFactory
host
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
public void closeConnection() throws java.rmi.RemoteException
closeOMRConnection()
closeConnection
in interface MdFactory
java.rmi.RemoteException
MdFactory.closeConnection()
public void makeOMRConnection(java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password) throws MdException
makeOMRConnection
in interface MdFactory
host
- Host name to connect toport
- Port on host to connect tousername
- user's name on hostpassword
- password for username
MdException
public void closeOMRConnection() throws java.rmi.RemoteException
closeOMRConnection
in interface MdFactory
java.rmi.RemoteException
MdFactory.closeConnection()
public int getMdFactoryType()
getMdFactoryType
in interface MdFactory
public boolean getDebug() throws java.rmi.RemoteException
getDebug
in interface MdFactory
java.rmi.RemoteException
public void setDebug(boolean instate) throws java.rmi.RemoteException
setDebug
in interface MdFactory
java.rmi.RemoteException
public boolean getLoggingEnabled() throws java.rmi.RemoteException
getLoggingEnabled
in interface MdFactory
java.rmi.RemoteException
public void setLoggingEnabled(boolean instate) throws java.rmi.RemoteException
setLoggingEnabled
in interface MdFactory
java.rmi.RemoteException
public boolean getPerf() throws java.rmi.RemoteException
getPerf
in interface MdFactory
java.rmi.RemoteException
public void setPerf(boolean instate) throws java.rmi.RemoteException
setPerf
in interface MdFactory
java.rmi.RemoteException
public com.sas.metadata.remote.MdUtil getUtil()
getUtil
in interface MdFactory
public MdRepositoryUtil getRepositoryUtil() throws java.rmi.RemoteException
getRepositoryUtil
in interface MdFactory
java.rmi.RemoteException
public MdSecurityUtil getSecurityUtil() throws java.rmi.RemoteException
getSecurityUtil
in interface MdFactory
java.rmi.RemoteException
public MdFactory getInstance()
getInstance
in interface MdFactory
public int getParsingType() throws java.rmi.RemoteException
getParsingType
in interface MdFactory
java.rmi.RemoteException
public void setParsingType(int parsing) throws java.rmi.RemoteException
MdFactory.PARSING_TYPE_SAX
or
MdFactory.PARSING_TYPE_DOM
setParsingType
in interface MdFactory
parsing
-
java.rmi.RemoteException
public MdOMIUtil getOMIUtil()
getOMIUtil
in interface MdFactory
public MdOMRConnection getConnection()
getConnection
in interface MdFactory
public boolean getChangeManagementEnabled()
getChangeManagementEnabled
in interface MdFactory
public void setChangeManagementEnabled(boolean enabled) throws java.rmi.RemoteException
setChangeManagementEnabled
in interface MdFactory
java.rmi.RemoteException
public void setRemoveDependentObjects(boolean remove) throws java.rmi.RemoteException
setRemoveDependentObjects
in interface MdFactory
remove
- true if removing dependent objects
java.rmi.RemoteException
public boolean getRemoveDependentObjects() throws java.rmi.RemoteException
getRemoveDependentObjects
in interface MdFactory
java.rmi.RemoteException
public void setUseServerFormattedDates(boolean format) throws java.rmi.RemoteException
true
.
setUseServerFormattedDates
in interface MdFactory
format
- true if dates should be formatted
java.rmi.RemoteException
public boolean getUseServerFormattedDates() throws java.rmi.RemoteException
true
meaning the server will apply its own formatting to the
dates.
getUseServerFormattedDates
in interface MdFactory
java.rmi.RemoteException
public java.util.Map<java.lang.String,CMetadata> getSimpleObjectMap() throws java.rmi.RemoteException
getSimpleObjectMap
in interface MdFactory
java.rmi.RemoteException
public java.util.Map<java.lang.String,CMetadata> getDetailObjectMap() throws java.rmi.RemoteException
getDetailObjectMap
in interface MdFactory
java.rmi.RemoteException
public MdServerStore getStore()
getStore
in interface MdFactory
protected MdServerStore getServerStore()
public MdObjectStore createObjectStore() throws java.rmi.RemoteException
createObjectStore
in interface MdFactory
java.rmi.RemoteException
public MdObjectStore createObjectStore(MdStore parentStore) throws java.rmi.RemoteException
createObjectStore
in interface MdFactory
parentStore
- MdStore the store that owns this one, i.e. its parent.
java.rmi.RemoteException
public MdObjectStore createObjectStore(MdStore parentStore, java.lang.String storeName) throws java.rmi.RemoteException
createObjectStore
in interface MdFactory
parentStore
- MdStore the store that owns this one, i.e. its parent.storeName
- the name of the object store
java.rmi.RemoteException
public CMetadata createSimpleMetadataObject(CMetadata inObject) throws java.rmi.RemoteException
createSimpleMetadataObject
in interface MdFactory
strName
- StringstrType
- StringstrFQID
- String (NOTE: If the ID is repository only, a new object is created)
java.rmi.RemoteException
public CMetadata createSimpleMetadataObject(CMetadata inObject, java.lang.String lockedBy) throws java.rmi.RemoteException
createSimpleMetadataObject
in interface MdFactory
inObject
- CMetadata Object to get name, type, and ID from.lockedBy
- String Which object has this one locked.
java.rmi.RemoteException
public CMetadata createSimpleMetadataObject(java.lang.String strName, java.lang.String strType, java.lang.String strFQID, java.lang.String lockedBy) throws java.rmi.RemoteException
createSimpleMetadataObject
in interface MdFactory
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
public CMetadata createSimpleMetadataObject(java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
createSimpleMetadataObject
in interface MdFactory
strName
- StringstrType
- StringstrFQID
- String (NOTE: If the ID is repository only, a new object is created)
java.rmi.RemoteException
public CMetadata createComplexMetadataObject(MdObjectStore oStore, CMetadata oSimple) throws java.rmi.RemoteException
createComplexMetadataObject
in interface MdFactory
oStore
- MdObjectStoreoSimple
- CMetadata
java.rmi.RemoteException
public CMetadata createComplexMetadataObject(MdObjectStore oStore, java.lang.String strName, java.lang.String strType, java.lang.String strFQID) throws java.rmi.RemoteException
createComplexMetadataObject
in interface MdFactory
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
public CMetadata createComplexMetadataObject(MdObjectStore inStore, MdStore parentStore, CMetadata oSimple) throws java.rmi.RemoteException
createComplexMetadataObject
in interface MdFactory
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
public 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.
createComplexMetadataObject
in interface MdFactory
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
public 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.
createComplexMetadataObject
in interface MdFactory
inStore
- Store to copy object into upon creation.parentStore
- MdStore 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
- String The Repos the object will reside in if under change management.
java.rmi.RemoteException
public 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.
createComplexMetadataObject
in interface MdFactory
inStore
- Store to copy object into upon creation.parentStore
- MdStore 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
- String The Repos the object will reside in if under change management.
java.rmi.RemoteException
public void deleteDetailMetadataObject(java.lang.String strFQID) throws java.rmi.RemoteException
deleteDetailMetadataObject
in interface MdFactory
strFQID
- String
java.rmi.RemoteException
public void deleteObjectsFromStores(java.util.List<java.lang.String> objectList) throws java.rmi.RemoteException
deleteObjectsFromStores(Map)
deleteObjectsFromStores
in interface MdFactory
objectList
- list of object ids to delete from the client
java.rmi.RemoteException
public void deleteObjectsFromStores(java.util.Map<java.lang.String,java.lang.String> objectMap) throws java.rmi.RemoteException
deleteObjectsFromStores
in interface MdFactory
objectMap
- a map of all object ids and types to delete from the client.
java.rmi.RemoteException
public 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.
deletePublicObject
in interface MdFactory
publicObject
- the public object to delete
MdException
java.rmi.RemoteException
public void deletePublicObject(CMetadata publicObject, java.lang.String template) throws MdException, java.rmi.RemoteException
deletePublicObject
in interface MdFactory
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
public void deleteMetadataObject(CMetadata delobject) throws MdException, java.rmi.RemoteException
deleteMetadataObject
in interface MdFactory
delobject
- the CMetadata object to delete
MdException
java.rmi.RemoteException
public void deleteMetadataObjects(java.util.List<? extends CMetadata> objectList) throws MdException, java.rmi.RemoteException
deleteMetadataObjects
in interface MdFactory
objectList
- a list of CMetadata objects to delete from the server.
MdException
java.rmi.RemoteException
public void deleteMetadataObjects(CMetadata deleteObject, java.lang.String template) throws MdException, java.rmi.RemoteException
deleteMetadataObjects
in interface MdFactory
delobject
- CMetadatatemplate
- String
MdException
java.rmi.RemoteException
public void deleteMetadataObjects(java.lang.String objectName, java.lang.String objectType, java.lang.String objectFQID, java.lang.String template) throws MdException, java.rmi.RemoteException
deleteMetadataObjects
in interface MdFactory
objectName
- StringobjectType
- StringobjectFQID
- Stringtemplate
- String
MdException
java.rmi.RemoteException
public java.lang.String makeID(java.lang.String shortID) throws java.rmi.RemoteException
makeID
in interface MdFactory
shortID
- String
java.rmi.RemoteException
public void dumpDetailHashMap() throws java.rmi.RemoteException
dumpDetailHashMap
in interface MdFactory
java.rmi.RemoteException
public void dispose() throws java.rmi.RemoteException
dispose
in interface MdFactory
java.rmi.RemoteException
public MetadataResource getBundle() throws java.rmi.RemoteException
getBundle
in interface MdFactory
java.rmi.RemoteException
public CMetadata getObject(java.lang.String strFQID) throws java.rmi.RemoteException
getObject
in interface MdFactory
strFQID
-
java.rmi.RemoteException
public void changeHashKey(java.lang.String strOldId, java.lang.String strNewId) throws java.rmi.RemoteException
changeHashKey
in interface MdFactory
strOldId
- StringstrNewId
- String
java.rmi.RemoteException
public void changeImplementationPackage(java.lang.String newPackage) throws java.rmi.RemoteException
changeImplementationPackage
in interface MdFactory
newPackage
- String The name of the java package to load implementation files from.
java.rmi.RemoteException
public void changeImplementationExtension(java.lang.String newExtension) throws java.rmi.RemoteException
changeImplementationExtension
in interface MdFactory
newExtenstion
- String The name to append to name of model files.
java.rmi.RemoteException
public void removeStore(MdStore childStore) throws java.rmi.RemoteException
removeStore
in interface MdFactory
childStore
- MdStore The store to remove.
java.rmi.RemoteException
public void addMdObjectListener(MdObjectListener l) throws java.rmi.RemoteException
addMdObjectListener
in interface MdFactory
l
- MetadataListener
java.rmi.RemoteException
public void removeMdObjectListener(MdObjectListener l) throws java.rmi.RemoteException
removeMdObjectListener
in interface MdFactory
l
- MetadataListener
java.rmi.RemoteException
public void addMdObjectFactoryListener(MdObjectFactoryListener l) throws java.rmi.RemoteException
addMdFactoryListener(MdFactoryListener)
addMdObjectFactoryListener
in interface MdFactory
l
- MetadataListener
java.rmi.RemoteException
public void removeMdObjectFactoryListener(MdObjectFactoryListener l) throws java.rmi.RemoteException
removeMdFactoryListener(MdFactoryListener)
removeMdObjectFactoryListener
in interface MdFactory
l
- MetadataListener
java.rmi.RemoteException
public void addMdFactoryListener(MdFactoryListener l) throws java.rmi.RemoteException
addMdFactoryListener
in interface MdFactory
l
- MdFactoryListener
java.rmi.RemoteException
public void addMdFactoryListener(MdFactoryListener listener, java.lang.String[] objectTypes) throws java.rmi.RemoteException
MdFactoryEvent.getObjectMap()
,
contains objects of the specified type(s).
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.
The following code can be used:
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.
addMdFactoryListener
in interface MdFactory
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
public void removeMdFactoryListener(MdFactoryListener l) throws java.rmi.RemoteException
removeMdFactoryListener
in interface MdFactory
l
- MdFactoryListener
java.rmi.RemoteException
public void fireMdObjectsCreated(MdEvent e, java.util.List<java.lang.String> id) throws java.rmi.RemoteException
fireMdObjectsCreated(MdFactoryEvent)
fireMdObjectsCreated
in interface MdFactory
e
- ChangeEvent Created like: new ChangeEvent(Object generator)id
- FQID of newly created object
- Throws:
java.rmi.RemoteException
public void fireMdObjectsCreated(MdFactoryEvent e) throws java.rmi.RemoteException
fireMdObjectsCreated
in interface MdFactory
e
- MdFactoryEvent
java.rmi.RemoteException
public void fireMdObjectsModified(MdFactoryEvent e) throws java.rmi.RemoteException
fireMdObjectsModified
in interface MdFactory
e
- MdFactoryEvent
java.rmi.RemoteException
public void fireMdObjectsDeleted(MdFactoryEvent e) throws java.rmi.RemoteException
fireMdObjectsDeleted
in interface MdFactory
e
- MdFactoryEvent
java.rmi.RemoteException
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |