|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MdObjectStore
This a store of objects for a view's interaction. This is the views object cache, and allows for the modification of objects without effects on other views. The changes in objects are persisted to the store that owns this one upon a write to the server.
Field Summary |
---|
Fields inherited from interface com.sas.metadata.remote.MdStore |
---|
ExternalIdenty_Context, ExternalIdenty_ImportType, MDSTORETYPE_OBJECTSTORE, MDSTORETYPE_SERVERSTORE |
Method Summary | |
---|---|
void |
addElementToChangeList(CMetadata object)
Adds the specified metadata object to this object's change list; only adds the object if it is not already in the list |
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 |
addObjToAuthorizationTransContextList(CMetadata obj)
Add an object to the Authorization Transaction Context List for this Store |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a listener to the list |
void |
appendWriteBuffer(java.lang.String appendText)
Append the text to the write buffer for this store. |
void |
changeHashKey(java.lang.String strOldId,
java.lang.String strNewId)
Change the hash key associated with an object, and send events for the removal of the old object and addition of the new object to Map. |
void |
clearAuthorizationTransContextList()
Clear the Authorization Transaction Context List for this Store |
void |
clearChangeList()
Remove all elements from the change list, and set it to empty |
void |
clearObjectsFromStore()
|
void |
clearWriteBuffer()
Clear write append buffer out |
void |
createExternalIdentityObject(CMetadata owningObject)
Deprecated. As of 9.2 this method is no longer supported |
java.lang.String |
createRefreshXMLforStore(boolean includeLocallyChangedItems,
boolean getFullObjectUpdate)
Creates XML for all objects in store. |
java.lang.String |
createXMLforStore()
Creates XML for all objects in store. |
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 |
deleteObjectFromStore(java.lang.String strFQID)
Delete the object from this store and all object stores. |
void |
dispose()
Cleans up this objectStore and it's objects from it's parent. |
void |
dumpDetailHashMap()
Prints out the contents of this MdObjectStore. |
void |
flushUpdates(java.util.List<CMetadata> updatedItems)
Flush updated objects to parent store. |
java.util.Vector<CMetadata> |
getAuthorizationTransContextList()
|
java.util.List<CMetadata> |
getChangedObjects()
Gets a List of changed objects. |
java.util.Vector<CMetadata> |
getChangeList()
Return the current change list |
java.util.List<java.lang.String> |
getCreatedItemsList()
Returns the list of items created in current write. |
java.util.Map<java.lang.String,CMetadata> |
getDeletedObjects()
Return a Map of the objects being deleted. |
java.util.Map<java.lang.String,CMetadata> |
getDetailObjectMap()
Returns the Detail Object Map |
MdFactory |
getFactory()
Returns the factory used to create objects. |
java.lang.String |
getIdentifier()
Returns an identifier for this object store. |
boolean |
getIsGoToServerForMetadata()
Deprecated. isGoToServerForMetadata() should be used instead |
boolean |
getIsObjectCopiedFromParentOnCreation()
Gets whether new objects in this store are copied fromt their parent on creation if the object exists in their parent store. |
java.lang.String |
getNewObjectRepositoryID()
Deprecated. As of 9.2 this method is no longer supported |
java.util.List<CMetadata> |
getNewObjects()
Gets a List of changed objects. |
CMetadata |
getObject(java.lang.String strFQID)
Return object associated with ID |
CMetadata |
getObject(java.lang.String strFQID,
boolean hashonly)
Return object associated with ID |
MdStore |
getOwningStore()
Gets the parent store to this one |
java.lang.String |
getProjectRepositoryID()
Deprecated. As of 9.2 this method is no longer supported |
java.util.Map<java.lang.String,CMetadata> |
getSimpleObjectMap()
Returns the Simple Object Map |
java.lang.String |
getStoreName()
Returns the name of the object store. |
int |
getStoreType()
Gets the type of store this is, either a MdStore.MDSTORETYPE_SERVERSTORE or a
MdStore.MDSTORETYPE_OBJECTSTORE |
java.lang.String |
getWriteBuffer()
Get the string to be attached to the update write for this store. |
boolean |
is_write_lock()
|
boolean |
isDeepCopyObjects()
If deep copy has been turned on/off. |
boolean |
isDeletedObject(java.lang.String id)
Returns true if the object is included in the store's deleted objects list |
boolean |
isGoToServerForMetadata()
Tells whether or not to go to server for the metadata. |
java.lang.String |
makeID(java.lang.String shortID)
Creates a new id for an object. |
void |
MdObjectsAdded(MdEvent e,
java.util.List ids)
NOT IMPLEMENTED |
void |
MdObjectsModified(MdEvent e,
java.util.List items)
We pass this event on to our listener. |
void |
MdObjectsRemoved(MdEvent e,
java.util.List ids)
NOT IMPLEMENTED |
void |
refreshObjectFromServer(CMetadata inObject,
boolean includeLocallyChangedItems,
boolean getFullObjectUpdate)
Refreshes object from the server |
void |
refreshObjectFromServer(CMetadata inObject,
boolean includeLocallyChangedItems,
boolean getFullObjectUpdate,
boolean refreshAssocsSetByServerOnly)
Refreshes object from the server |
void |
refreshObjects(java.util.List<java.lang.String> items)
Refreshes the following items from parent Map and tells children of update, fireMdObjectsModified() |
void |
refreshStoreFromServer(boolean includeLocallyChangedItems,
boolean getFullObjectUpdate)
Refreshes objects in this store from the server |
void |
removeElementFromChangeList(CMetadata object)
Remove the specified element from the change list |
void |
removeElementFromStore(CMetadata removeObject)
|
void |
removeElementFromStore(CMetadata removeObject,
boolean removeDependents)
|
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 |
removeObjectFromStore(CMetadata deleteObject,
java.lang.String deleteTemplate)
Removes an object from the store, marks it to delete, and uses a template to delete associated objects. |
void |
removeObjectsFromStore(java.util.List<? extends CMetadata> deletedObjects)
Removes a set of objects from the store, and from server once store is persisted to server. |
void |
removeObjFromAuthorizationTransContextList(CMetadata obj)
Remove an object from the Authorization Transaction Context List for this Store |
void |
removeStore(MdStore childStore)
Removes a child store. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a listener from the list of vetoable listners |
void |
resetStates(java.util.List<CMetadata> 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. |
CMetadata |
retrieveFullObject(java.lang.String objectType,
java.lang.String objectID)
Retrieves all metadata for an existing public object. |
void |
set_write_lock(boolean b)
set write lock enabled. |
void |
setDeepCopyObjects(boolean copy)
Sets if objects should be deep copied into this 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 |
setIsObjectCopiedFromParentOnCreation(boolean inValue)
Sets whether new objects in this store are copied from thier parent on creation if the object exists in there parent store. |
void |
setNewObjectRepositoryID(java.lang.String newObjReposID)
Deprecated. As of 9.2 this method is no longer supported |
void |
setObjectsToStale()
Sets the state of all objects in the store to be "stale". |
void |
setOwningStore(MdStore parent)
Sets the parent store to this one. |
void |
setProjectRepositoryID(java.lang.String projReposID)
Deprecated. As of 9.2 this method is no longer supported |
void |
updateChangeListObjectIDs(java.lang.String OldReposID,
java.lang.String NewReposID)
Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id. |
void |
updateChangeListObjectIDs(java.lang.String OldReposID,
java.lang.String NewReposID,
java.lang.String targetReposID)
Changes a new objects repos id for all the objects in the change list of this object store, to a specified repos id. |
void |
updateCreatedItemsList(java.util.List<java.lang.String> items)
remove the items that have been updated from the createdItems list. |
void |
updatedMetadataAll()
Updates objects in store to Metadata server. |
Methods inherited from interface com.sas.metadata.remote.MdStore |
---|
addChildStore, isDisposed, removeChildStore |
Method Detail |
---|
MdFactory getFactory() throws java.rmi.RemoteException
getFactory
in interface 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
java.lang.String getStoreName() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getIdentifier() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isDeepCopyObjects() throws java.rmi.RemoteException
java.rmi.RemoteException
void setDeepCopyObjects(boolean copy) throws java.rmi.RemoteException
If set to false, only objects directly associated to the object being copied will be included. For instance, if an object named "X" is copied, only "X" and its associated objects will be copied. Any object indirectly associated to "X" will not be copied.
copy
- false if deep copy should be turned off
java.rmi.RemoteException
boolean getIsGoToServerForMetadata() throws java.rmi.RemoteException
isGoToServerForMetadata()
should be used instead
getIsGoToServerForMetadata
in interface MdStore
java.rmi.RemoteException
boolean isGoToServerForMetadata() throws java.rmi.RemoteException
isGoToServerForMetadata
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
void setGoToServerForMetadata(boolean goToServer) throws java.rmi.RemoteException
setGoToServerForMetadata
in interface MdStore
goToServer
- go for metadata
java.rmi.RemoteException
boolean getIsObjectCopiedFromParentOnCreation() throws java.rmi.RemoteException
java.rmi.RemoteException
void setIsObjectCopiedFromParentOnCreation(boolean inValue) throws java.rmi.RemoteException
inValue
-
java.rmi.RemoteException
void updatedMetadataAll() throws MdException, java.rmi.RemoteException
updatedMetadataAll
in interface MdStore
MdException
- if there is an error in the updateMetadataAll call.
java.rmi.RemoteException
java.lang.String getProjectRepositoryID() throws java.rmi.RemoteException
java.rmi.RemoteException
void setProjectRepositoryID(java.lang.String projReposID) throws java.rmi.RemoteException
projReposID
- String
java.rmi.RemoteException
java.lang.String getNewObjectRepositoryID() throws java.rmi.RemoteException
java.rmi.RemoteException
void setNewObjectRepositoryID(java.lang.String newObjReposID) throws java.rmi.RemoteException
newObjReposID
- String
java.rmi.RemoteException
void setOwningStore(MdStore parent) throws java.rmi.RemoteException
setOwningStore
in interface MdStore
parent
- MdStore
java.rmi.RemoteException
MdStore getOwningStore() throws java.rmi.RemoteException
getOwningStore
in interface MdStore
java.rmi.RemoteException
java.util.Map<java.lang.String,CMetadata> getDeletedObjects() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isDeletedObject(java.lang.String id) throws java.rmi.RemoteException
id
- the object id
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
getDetailObjectMap
in interface MdStore
java.rmi.RemoteException
java.lang.String createRefreshXMLforStore(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws java.rmi.RemoteException
createRefreshXMLforStore
in interface MdStore
java.rmi.RemoteException
java.lang.String createXMLforStore() throws java.rmi.RemoteException
java.rmi.RemoteException
CMetadata retrieveFullObject(java.lang.String objectType, java.lang.String objectID) throws MdException, java.rmi.RemoteException
This method is mainly a convenience method for retrieving the full metadata representation of
a public object, without requiring you to know which associations need to be passed in via a
template. All information for the public object, including all of its attributes as well as
all of its subordinate objects will be retrieved. The method does not require any flags or
templates to be passed in as they (MdOMIUtil.OMI_FULL_OBJECT
,
MdOMIUtil.OMI_ALL_SIMPLE
, and MdOMIUtil.OMI_SUCCINCT
) are automatically passed
to the server for you.
Note: if the object exists within this store prior to calling this method, all of its attributes and associations will be overwritten.
objectType
- the metadata type of the objectobjectID
- the object id
MdException
java.rmi.RemoteException
void refreshStoreFromServer(boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws MdException, java.rmi.RemoteException
includeLocallyChangedItems
- Includes the objects that have been changed locallygetFullObjectUpdate
- Get all attributes and associations on all objects.
MdException
- If error going to the server
java.rmi.RemoteException
- if I/O errorvoid refreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate) throws MdException, java.rmi.RemoteException
includeLocallyChangedItems
- Includes the objects that have been changed locallygetFullObjectUpdate
- Get all attributes and associations on all objects.
MdException
- If error going to the server
java.rmi.RemoteException
- if I/O errorvoid refreshObjectFromServer(CMetadata inObject, boolean includeLocallyChangedItems, boolean getFullObjectUpdate, boolean refreshAssocsSetByServerOnly) throws MdException, java.rmi.RemoteException
includeLocallyChangedItems
- Includes the objects that have been changed locallygetFullObjectUpdate
- Get all attributes and associations on all objects.refreshAssocsSetByServerOnly
- If true, refreshes only the associations that have
previously been set by the server.
MdException
- If error going to the server
java.rmi.RemoteException
- if I/O errorvoid createExternalIdentityObject(CMetadata owningObject) throws java.rmi.RemoteException
createExternalIdentityObject
in interface MdStore
owningObject
- CMetadata Object to which to attach ExternalIdentity.
java.rmi.RemoteException
void deleteDetailMetadataObject(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
- String
java.rmi.RemoteException
java.lang.String makeID(java.lang.String shortID) throws java.rmi.RemoteException
makeID
in interface MdStore
shortID
- String
java.rmi.RemoteException
void dumpDetailHashMap() throws java.rmi.RemoteException
dumpDetailHashMap
in interface MdStore
java.rmi.RemoteException
void dispose() throws java.rmi.RemoteException
dispose
in interface MdStore
java.rmi.RemoteException
void flushUpdates(java.util.List<CMetadata> updatedItems) throws java.rmi.RemoteException
flushUpdates
in interface MdStore
updatedItems
- List The objects which have been updated to the server.
java.rmi.RemoteException
void removeStore(MdStore childStore) throws java.rmi.RemoteException
childStore
-
java.rmi.RemoteException
CMetadata getObject(java.lang.String strFQID, boolean hashonly) throws java.rmi.RemoteException
strFQID
- String The ID of the object to get from the Maphashonly
- boolean get the object from this stores hash only.
java.rmi.RemoteException
CMetadata getObject(java.lang.String strFQID) throws java.rmi.RemoteException
getObject
in interface MdStore
strFQID
- String The ID of the object to get from the Map
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 removeElementFromStore(CMetadata removeObject) throws java.rmi.RemoteException
By default, all dependent objects of removeObjects
(a Column and its Table, for
instance), will be removed. If you do not wish to remove these dependent objects, see
removeElementFromStore(CMetadata, boolean)
removeObject
- CMetadata
java.rmi.RemoteException
void removeElementFromStore(CMetadata removeObject, boolean removeDependents) throws java.rmi.RemoteException
Any dependent objects of removeObject
will be removed if
removeDependents
is set to True.
removeObject
- CMetadata
java.rmi.RemoteException
void updateChangeListObjectIDs(java.lang.String OldReposID, java.lang.String NewReposID) throws java.rmi.RemoteException
updateChangeListObjectIDs
in interface MdStore
OldReposID
- String The repos of objects when they were created.NewReposID
- String The project repos id if under change management, the target if not.
java.rmi.RemoteException
void updateChangeListObjectIDs(java.lang.String OldReposID, java.lang.String NewReposID, java.lang.String targetReposID) throws java.rmi.RemoteException
updateChangeListObjectIDs
in interface MdStore
OldReposID
- String The repos of objects when they were created.NewReposID
- String The project repos id if under change management, the target if not.targetReposID
- String In change management is the real repos the objects will be checked
into
java.rmi.RemoteException
void refreshObjects(java.util.List<java.lang.String> items) throws java.rmi.RemoteException
items
- List
java.rmi.RemoteException
void resetStates(java.util.List<CMetadata> items) throws java.rmi.RemoteException
resetStates
in interface MdStore
items
- List (NOTE: CMetadata objects in items)
java.rmi.RemoteException
void setObjectsToStale() throws java.rmi.RemoteException
java.rmi.RemoteException
void deleteObjectFromStore(java.lang.String strFQID) throws java.rmi.RemoteException
strFQID
- String object to be deleted from client
java.rmi.RemoteException
void MdObjectsModified(MdEvent e, java.util.List items) throws java.rmi.RemoteException
MdObjectsModified
in interface MdStoreListener
e
- MdEvent The metadata event sourceitems
- List ID's of changed items.
java.rmi.RemoteException
void MdObjectsRemoved(MdEvent e, java.util.List ids) throws java.rmi.RemoteException
MdObjectsRemoved
in interface MdStoreListener
e
- MdEventids
- List
java.rmi.RemoteException
void MdObjectsAdded(MdEvent e, java.util.List ids) throws java.rmi.RemoteException
MdObjectsAdded
in interface MdStoreListener
e
- MdEventids
- List
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 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 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
boolean deleteObject(CMetadata inObject) throws java.rmi.RemoteException
deleteObject
in interface MdStore
inObject
- CMetadata
java.rmi.RemoteException
CMetadata restoreObject(java.lang.String objectID) throws java.rmi.RemoteException
restoreObject
in interface MdStore
objectID
- String
java.rmi.RemoteException
java.util.List<CMetadata> getChangedObjects() throws java.rmi.RemoteException
getChangedObjects
in interface MdStore
java.rmi.RemoteException
java.util.List<CMetadata> getNewObjects() throws java.rmi.RemoteException
java.rmi.RemoteException
void addElementToChangeList(CMetadata object) throws java.rmi.RemoteException
object
- The metadata object to add to the list
java.rmi.RemoteException
void removeElementFromChangeList(CMetadata object) throws java.rmi.RemoteException
object
- Metadata object to remove. If the object does not exist in the list, this method
just returns
java.rmi.RemoteException
void clearChangeList() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Vector<CMetadata> getChangeList() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Vector<CMetadata> getAuthorizationTransContextList() throws java.rmi.RemoteException
java.rmi.RemoteException
void addObjToAuthorizationTransContextList(CMetadata obj) throws java.rmi.RemoteException
java.rmi.RemoteException
void removeObjFromAuthorizationTransContextList(CMetadata obj) throws java.rmi.RemoteException
java.rmi.RemoteException
void clearAuthorizationTransContextList() throws java.rmi.RemoteException
java.rmi.RemoteException
void removeObjectsFromStore(java.util.List<? extends CMetadata> deletedObjects) throws MdException, java.rmi.RemoteException
deletedObjects
- list of CMetadata objects
MdException
java.rmi.RemoteException
void removeObjectFromStore(CMetadata deleteObject, java.lang.String deleteTemplate) throws MdException, java.rmi.RemoteException
If a template is supplied, then this method will only remove the objects specified in the
template. Dependent objects will only be removed if a template is not passed in (if the
deleteTemplate
is null or empty).
deleteObject
- the object to deletedeleteTemplate
- the template, null will n
MdException
java.rmi.RemoteException
void clearWriteBuffer() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getWriteBuffer() throws java.rmi.RemoteException
java.rmi.RemoteException
void appendWriteBuffer(java.lang.String appendText) throws java.rmi.RemoteException
appendText
- the text to append to the write buffer.
java.rmi.RemoteException
java.util.List<java.lang.String> 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
void clearObjectsFromStore() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean is_write_lock() throws java.rmi.RemoteException
java.rmi.RemoteException
void set_write_lock(boolean b) throws java.rmi.RemoteException
b
-
java.rmi.RemoteException
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |