|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomAssociation
Defines a custom association between any two metadata objects.
Attributes of CustomAssociation are:
Associations of CustomAssociation are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); CustomAssociation myObject = (CustomAssociation) factory.createComplexMetadataObject(objectStore, "CustomAssociation_Object", MetadataObjects.CUSTOMASSOCIATION, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_ASSOCIATEDOBJECTS_NAME
Constant used for the name of the AssociatedObjects association. |
static java.lang.String |
ASSOCIATION_OWNINGOBJECT_NAME
Constant used for the name of the OwningObject association. |
static java.lang.String |
ATTRIBUTE_ISOWNED_NAME
Constant used for the name of the isOwned attribute. |
static java.lang.String |
ATTRIBUTE_PARTNERNAME_NAME
Constant used for the name of the PartnerName attribute. |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
AssociationList |
getAssociatedObjects()
Gets the Association list of AssociatedObjects |
AssociationList |
getAssociatedObjects(boolean fGoToServer)
Gets the Associationlist of AssociatedObjects |
int |
getisOwned()
Gets the int value of isOwned |
int |
getisOwnedState()
Gets the Metadata State of isOwned |
Root |
getOwningObject()
Gets the Root for OwningObject |
AssociationList |
getOwningObjects()
Gets the Association list of OwningObjects |
AssociationList |
getOwningObjects(boolean fGoToServer)
Gets the Associationlist of OwningObjects |
java.lang.String |
getPartnerName()
Gets the String value of PartnerName |
int |
getPartnerNameMaxLength()
Gets the maximum length of PartnerName |
int |
getPartnerNameState()
Gets the Metadata State of PartnerName |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: OwningObject |
void |
setAssociatedObjects(AssociationList list)
Sets the AssociatedObjects list to be list . |
void |
setAssociatedObjects(AssociationList inObjects,
int state)
Sets the entire AssociatedObjects list to match the passed in AssociationList, sets the state of the AssociatedObjects |
void |
setisOwned(int inisOwned)
Sets the isOwned value and sets the state to MetadataState.LOCAL. |
void |
setisOwned(int inisOwned,
int state)
Sets the isOwned Metadata State. |
void |
setisOwned(java.lang.String inisOwned)
Sets the isOwned value and sets the state to MetadataState.LOCAL. |
void |
setisOwned(java.lang.String inisOwned,
int state)
Sets the isOwned value and Metadata State. |
void |
setisOwnedState(int state)
Sets the Metadata State of isOwned . |
void |
setOwningObject(Root inObject)
Sets the OwningObjects list 0th element to be inObject . |
void |
setOwningObjects(AssociationList list)
Sets the OwningObjects list to be list . |
void |
setOwningObjects(AssociationList list,
int state)
Sets the OwningObjects list to be list . |
void |
setPartnerName(java.lang.String inPartnerName)
Sets the PartnerName value and sets the state to MetadataState.LOCAL. |
void |
setPartnerName(java.lang.String inPartnerName,
int state)
Sets the PartnerName Metadata State. |
void |
setPartnerNameState(int state)
Sets the Metadata State of PartnerName . |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_PARTNERNAME_NAME
PartnerName: The name of this custom association as referenced by the referenced object(s).
static final java.lang.String ATTRIBUTE_ISOWNED_NAME
isOwned: An associated object should be deleted with the owning object if this value is true (!=0).
static final java.lang.String ASSOCIATION_ASSOCIATEDOBJECTS_NAME
AssociatedObjects: The custom associations that reference this object.
static final java.lang.String ASSOCIATION_OWNINGOBJECT_NAME
OwningObject: The object that has this custom association.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
OwningObject
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface Root
initializeRequiredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface Root
initializePredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getPartnerName() throws java.rmi.RemoteException
String
value of PartnerName
PartnerName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPartnerNameState() throws java.rmi.RemoteException
PartnerName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPartnerNameMaxLength() throws java.rmi.RemoteException
PartnerName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getisOwned() throws java.rmi.RemoteException
int
value of isOwned
isOwned
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getisOwnedState() throws java.rmi.RemoteException
isOwned
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getAssociatedObjects() throws java.rmi.RemoteException, MdException
AssociatedObjects
AssociatedObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getOwningObjects() throws java.rmi.RemoteException, MdException
OwningObjects
OwningObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.Root getOwningObject() throws java.rmi.RemoteException, MdException
Root
for OwningObject
Root
( null
if not set ) of OwningObject
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getAssociatedObjects(boolean fGoToServer) throws java.rmi.RemoteException, MdException
AssociatedObjects
fGoToServer
- boolean Get the value from the server.
AssociatedObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getOwningObjects(boolean fGoToServer) throws java.rmi.RemoteException, MdException
OwningObjects
fGoToServer
- boolean Get the value from the server.
OwningObjects
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setPartnerName(java.lang.String inPartnerName) throws java.rmi.RemoteException
PartnerName
value and sets the state to MetadataState.LOCAL.
inPartnerName
- String
java.rmi.RemoteException
- If error communicating with remote object.void setPartnerName(java.lang.String inPartnerName, int state) throws java.rmi.RemoteException
PartnerName
Metadata State.
inPartnerName
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPartnerNameState(int state) throws java.rmi.RemoteException
PartnerName
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setisOwned(int inisOwned) throws java.rmi.RemoteException
isOwned
value and sets the state to MetadataState.LOCAL.
inisOwned
- int
java.rmi.RemoteException
- If error communicating with remote object.void setisOwned(int inisOwned, int state) throws java.rmi.RemoteException
isOwned
Metadata State.
inisOwned
- intstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setisOwned(java.lang.String inisOwned) throws java.rmi.RemoteException
isOwned
value and sets the state to MetadataState.LOCAL.
inisOwned
- String
java.rmi.RemoteException
- If error communicating with remote object.void setisOwned(java.lang.String inisOwned, int state) throws java.rmi.RemoteException
isOwned
value and Metadata State.
inisOwned
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setisOwnedState(int state) throws java.rmi.RemoteException
isOwned
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAssociatedObjects(AssociationList list) throws java.rmi.RemoteException
AssociatedObjects
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setAssociatedObjects(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setOwningObjects(AssociationList list) throws java.rmi.RemoteException
OwningObjects
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setOwningObjects(AssociationList list, int state) throws java.rmi.RemoteException
OwningObjects
list to be list
. Objects of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setOwningObject(Root inObject) throws java.rmi.RemoteException
OwningObjects
list 0th element to be inObject
.
inObject
- Root
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |