|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MdServerStore
This is the Main store of objects (Cache) for interactions with the server.
Warning: this class should not be used directly by a client. All metadata objects
should be created within an MdObjectStore
. As of version 9.2, most methods
within this class have been deprecated.
Field Summary |
---|
Fields inherited from interface com.sas.metadata.remote.MdStore |
---|
ExternalIdenty_Context, ExternalIdenty_ImportType, MDSTORETYPE_OBJECTSTORE, MDSTORETYPE_SERVERSTORE |
Method Summary | |
---|---|
void |
addMdObjectListener(MdObjectListener l)
Used to add an object to the list of listeners for changes in the Metadata Map |
void |
addMdStoreIDChangeListener(MdStoreIDChangeListener l)
Used to add an object to the list of listeners for changes in the Metadata Map |
void |
addMdStoreListener(MdStoreListener l)
Used to add an object to the list of listeners for changes in the Metadata Map |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a listener to the list |
void |
changeHashKey(java.lang.String strOldId,
java.lang.String strNewId)
Change the hash key associated with an object, and notify listeners |
void |
clearObjectsFromStore()
|
void |
createExternalIdentityObject(CMetadata owningObject)
This creates an ExternalIdentity object connection to owningObject for change management. |
void |
deleteDetailMetadataObject(java.lang.String strFQID)
Deletes an object from the detail Map and fires the MetadataRemoved event. |
boolean |
deleteObject(CMetadata inObject)
Makes an object unavailable in the object store. |
void |
deleteObjectFromStores(java.lang.String strFQID)
Delete the object from this store and all object stores. |
void |
dispose()
Removes objects not being used by any other objectStore. |
void |
dumpDetailAllHashMaps()
Prints out the contents of the Detail object Map. |
void |
dumpDetailHashMap()
Prints out the contents of the Detail object Map. |
void |
flushUpdates(java.util.List<CMetadata> updatedItems)
Flush updated objects to parent store. |
java.util.List |
getChangedObjects()
Gets a List of changed objects. |
java.util.List |
getCreatedItemsList()
Returns the list of items created in current write. |
java.util.Map<java.lang.String,CMetadata> |
getDetailObjectMap()
Deprecated. As of 9.2, the detailObjectMap is no longer used in the ServerStore. All objects should be created in an ObjectStore. |
MdFactory |
getFactory()
Returns the factory used to create objects. |
boolean |
getIsGoToServerForMetadata()
Deprecated. isGoToServerForMetadata() should be used instead |
CMetadata |
getObject(java.lang.String strFQID)
Deprecated. As of 9.2, complex objects are no longer stored in the ServerStore. All objects should be created in an ObjectStore. |
CMetadata |
getObject(java.lang.String strFQID,
boolean hashonly)
Deprecated. As of 9.2, complex objects are no longer stored in the ServerStore. All objects should be created in an ObjectStore. |
CMetadata |
getObjectInChildStore(java.lang.String objectID)
Returns a CMetadata object in a child store. |
MdStore |
getOwningStore()
Gets the MdStore that owns this store, returns null, no store should own the factory. |
java.util.Map<java.lang.String,CMetadata> |
getSimpleObjectMap()
Returns the Simple Object Map |
int |
getStoreType()
Gets the type of store this is, either a MdStore.MDSTORETYPE_SERVERSTORE
or a MdStore.MDSTORETYPE_OBJECTSTORE |
boolean |
isChildUsingObject(java.lang.String objectID)
Tells whether or not a child ObjectStore is using an object or not. |
boolean |
isGoToServerForMetadata()
Tells whether or not to go to server for the metadata. |
boolean |
isObjectInServerStore(java.lang.String objectID)
Returns true if the object is cached in the server store |
java.lang.String |
makeID(java.lang.String shortID)
Creates a new id for an object. |
void |
MdObjectsAdded(MdEvent e,
java.util.List items)
Event generated when objects are added to the Store's Map. |
void |
MdObjectsModified(MdEvent e,
java.util.List items)
Event generated when objects are modified in the Store. |
void |
MdObjectsRemoved(MdEvent e,
java.util.List items)
Event generated when objects are removed to the Store's Map. |
void |
removeMdObjectListener(MdObjectListener l)
Used to remove an object from the list of listeners for changes in the Metadata Map |
void |
removeMdStoreIDChangeListener(MdStoreIDChangeListener l)
Used to remove an object from the list of listeners for changes in the Metadata Map |
void |
removeMdStoreListener(MdStoreListener 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 |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a listener from the list of vetoable listners |
void |
resetStates(java.util.List items)
Resets all the objects in items to to set from server state or unSET. |
CMetadata |
restoreObject(java.lang.String objectID)
Restores an object to the Store so that it is available from the store. |
void |
setGoToServerForMetadata(boolean goToServer)
Tells whether or not to go to server for the metadata. |
void |
setIsGotToServerForMetadata(boolean goToServer)
Deprecated. setGoToServerForMetadata(boolean) should be used instead |
void |
setOwningStore(MdStore parent)
Sets the owning store, which is not implemented for this MdStore |
void |
updateCreatedItemsList(java.util.List<java.lang.String> items)
remove the items that have been updated from the createdItems list. |
Methods inherited from interface com.sas.metadata.remote.MdStore |
---|
addChildStore, createRefreshXMLforStore, isDisposed, removeChildStore |
Method Detail |
---|
MdFactory getFactory() throws java.rmi.RemoteException
getFactory
in interface MdStore
java.rmi.RemoteException
boolean getIsGoToServerForMetadata() throws java.rmi.RemoteException
isGoToServerForMetadata()
should be used instead
getIsGoToServerForMetadata
in interface MdStore
java.rmi.RemoteException
void setIsGotToServerForMetadata(boolean goToServer) throws java.rmi.RemoteException
setGoToServerForMetadata(boolean)
should be used instead
setIsGotToServerForMetadata
in interface MdStore
goToServer
- go for metadata
java.rmi.RemoteException
boolean isGoToServerForMetadata() throws java.rmi.RemoteException
isGoToServerForMetadata
in interface MdStore
java.rmi.RemoteException
void setGoToServerForMetadata(boolean goToServer) throws java.rmi.RemoteException
setGoToServerForMetadata
in interface MdStore
goToServer
- go for metadata
java.rmi.RemoteException
void setOwningStore(MdStore parent) throws java.rmi.RemoteException
MdStore
setOwningStore
in interface MdStore
parent
- MdStore
java.rmi.RemoteException
int getStoreType() throws java.rmi.RemoteException
MdStore.MDSTORETYPE_SERVERSTORE
or a MdStore.MDSTORETYPE_OBJECTSTORE
getStoreType
in interface MdStore
java.rmi.RemoteException
MdStore getOwningStore() throws java.rmi.RemoteException
getOwningStore
in interface MdStore
java.rmi.RemoteException
java.util.Map<java.lang.String,CMetadata> getDetailObjectMap() throws java.rmi.RemoteException
getDetailObjectMap
in interface MdStore
java.rmi.RemoteException
java.util.Map<java.lang.String,CMetadata> getSimpleObjectMap() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean deleteObject(CMetadata inObject) throws java.rmi.RemoteException
deleteObject
in interface MdStore
inObject
- CMetadata
java.rmi.RemoteException
void deleteObjectFromStores(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
- String object to be deleted from client
java.rmi.RemoteException
java.lang.String makeID(java.lang.String shortID) throws java.rmi.RemoteException
makeID
in interface MdStore
shortID
- String
java.rmi.RemoteException
CMetadata restoreObject(java.lang.String objectID) throws java.rmi.RemoteException
restoreObject
in interface MdStore
objectID
- String
java.rmi.RemoteException
void resetStates(java.util.List items) throws java.rmi.RemoteException
resetStates
in interface MdStore
items
- List
java.rmi.RemoteException
void deleteDetailMetadataObject(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
- String
java.rmi.RemoteException
void dumpDetailHashMap() throws java.rmi.RemoteException
dumpDetailHashMap
in interface MdStore
java.rmi.RemoteException
void dumpDetailAllHashMaps() throws java.rmi.RemoteException
java.rmi.RemoteException
CMetadata getObject(java.lang.String strFQID, boolean hashonly) throws java.rmi.RemoteException
strFQID
- Stringhashonly
- boolean
java.rmi.RemoteException
CMetadata getObject(java.lang.String strFQID) throws java.rmi.RemoteException
getObject
in interface MdStore
strFQID
-
java.rmi.RemoteException
boolean isObjectInServerStore(java.lang.String objectID) throws java.rmi.RemoteException
objectID
- the object id
java.rmi.RemoteException
void changeHashKey(java.lang.String strOldId, java.lang.String strNewId) throws java.rmi.RemoteException
changeHashKey
in interface MdStore
strOldId
- StringstrNewId
- String
java.rmi.RemoteException
void createExternalIdentityObject(CMetadata owningObject) throws java.rmi.RemoteException
createExternalIdentityObject
in interface MdStore
owningObject
- CMetadata Object to which to attach ExternalIdentity.
java.rmi.RemoteException
void flushUpdates(java.util.List<CMetadata> updatedItems) throws java.rmi.RemoteException
flushUpdates
in interface MdStore
updatedItems
- List
java.rmi.RemoteException
void dispose() throws java.rmi.RemoteException
dispose
in interface MdStore
java.rmi.RemoteException
void removeStore(MdStore childStore) throws java.rmi.RemoteException
childStore
- MdStore The store to remove.
java.rmi.RemoteException
boolean isChildUsingObject(java.lang.String objectID) throws java.rmi.RemoteException
objectID
- String
java.rmi.RemoteException
CMetadata getObjectInChildStore(java.lang.String objectID) throws java.rmi.RemoteException
objectID
- String
java.rmi.RemoteException
java.util.List getChangedObjects() throws java.rmi.RemoteException
getChangedObjects
in interface MdStore
java.rmi.RemoteException
void MdObjectsAdded(MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsAdded
in interface MdStoreListener
e
- MdEventitems
- List
java.rmi.RemoteException
void MdObjectsRemoved(MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsRemoved
in interface MdStoreListener
e
- MdEventitems
- List
java.rmi.RemoteException
void MdObjectsModified(MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsModified
in interface MdStoreListener
e
- MdEventitems
- List
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 addMdStoreIDChangeListener(MdStoreIDChangeListener l) throws java.rmi.RemoteException
l
- MetadataListener
java.rmi.RemoteException
void removeMdStoreIDChangeListener(MdStoreIDChangeListener l) throws java.rmi.RemoteException
l
- MetadataListener
java.rmi.RemoteException
void addMdStoreListener(MdStoreListener l) throws java.rmi.RemoteException
addMdStoreListener
in interface MdStore
l
- MetadataListener
java.rmi.RemoteException
void removeMdStoreListener(MdStoreListener l) throws java.rmi.RemoteException
removeMdStoreListener
in interface MdStore
l
- MetadataListener
java.rmi.RemoteException
void addVetoableChangeListener(java.beans.VetoableChangeListener l) throws java.rmi.RemoteException
addVetoableChangeListener
in interface MdStore
l
- VetoableChangeListener
java.rmi.RemoteException
void removeVetoableChangeListener(java.beans.VetoableChangeListener l) throws java.rmi.RemoteException
removeVetoableChangeListener
in interface MdStore
l
- VetoableChangeListener
java.rmi.RemoteException
void clearObjectsFromStore() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List getCreatedItemsList() throws java.rmi.RemoteException
java.rmi.RemoteException
void updateCreatedItemsList(java.util.List<java.lang.String> items) throws java.rmi.RemoteException
updateCreatedItemsList
in interface MdStore
items
-
java.rmi.RemoteException
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |