|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Phone
A phone number and the type of phone number (home, office, mobile, fax).
Attributes of Phone are:
Associations of Phone 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(); Phone myObject = (Phone) factory.createComplexMetadataObject(objectStore, "Phone_Object", MetadataObjects.PHONE, "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_PERSONS_NAME
Constant used for the name of the Persons association. |
static java.lang.String |
ATTRIBUTE_NUMBER_NAME
Constant used for the name of the Number attribute. |
static java.lang.String |
ATTRIBUTE_PHONETYPE_NAME
Constant used for the name of the PhoneType 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 | |
---|---|
java.lang.String |
getNumber()
Gets the String value of Number |
int |
getNumberMaxLength()
Gets the maximum length of Number |
int |
getNumberState()
Gets the Metadata State of Number |
AssociationList |
getPersons()
Gets the Association list of Persons |
AssociationList |
getPersons(boolean fGoToServer)
Gets the Associationlist of Persons |
java.lang.String |
getPhoneType()
Gets the String value of PhoneType |
int |
getPhoneTypeMaxLength()
Gets the maximum length of PhoneType |
int |
getPhoneTypeState()
Gets the Metadata State of PhoneType |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setNumber(java.lang.String inNumber)
Sets the Number value and sets the state to MetadataState.LOCAL. |
void |
setNumber(java.lang.String inNumber,
int state)
Sets the Number Metadata State. |
void |
setNumberState(int state)
Sets the Metadata State of Number . |
void |
setPersons(AssociationList list)
Sets the Persons list to be list . |
void |
setPersons(AssociationList inObjects,
int state)
Sets the entire Persons list to match the passed in AssociationList, sets the state of the Persons |
void |
setPhoneType(java.lang.String inPhoneType)
Sets the PhoneType value and sets the state to MetadataState.LOCAL. |
void |
setPhoneType(java.lang.String inPhoneType,
int state)
Sets the PhoneType Metadata State. |
void |
setPhoneTypeState(int state)
Sets the Metadata State of PhoneType . |
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_NUMBER_NAME
Number: A phone number.
static final java.lang.String ATTRIBUTE_PHONETYPE_NAME
PhoneType: The type of phon number: home, office, mobile, fax, etc.
static final java.lang.String ASSOCIATION_PERSONS_NAME
Persons: *Unknown*
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
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 getNumber() throws java.rmi.RemoteException
String
value of Number
Number
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getNumberState() throws java.rmi.RemoteException
Number
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getNumberMaxLength() throws java.rmi.RemoteException
Number
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getPhoneType() throws java.rmi.RemoteException
String
value of PhoneType
PhoneType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPhoneTypeState() throws java.rmi.RemoteException
PhoneType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPhoneTypeMaxLength() throws java.rmi.RemoteException
PhoneType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getPersons() throws java.rmi.RemoteException, MdException
Persons
Persons
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 getPersons(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Persons
fGoToServer
- boolean Get the value from the server.
Persons
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 setNumber(java.lang.String inNumber) throws java.rmi.RemoteException
Number
value and sets the state to MetadataState.LOCAL.
inNumber
- String
java.rmi.RemoteException
- If error communicating with remote object.void setNumber(java.lang.String inNumber, int state) throws java.rmi.RemoteException
Number
Metadata State.
inNumber
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setNumberState(int state) throws java.rmi.RemoteException
Number
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPhoneType(java.lang.String inPhoneType) throws java.rmi.RemoteException
PhoneType
value and sets the state to MetadataState.LOCAL.
inPhoneType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setPhoneType(java.lang.String inPhoneType, int state) throws java.rmi.RemoteException
PhoneType
Metadata State.
inPhoneType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPhoneTypeState(int state) throws java.rmi.RemoteException
PhoneType
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPersons(AssociationList list) throws java.rmi.RemoteException
Persons
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setPersons(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
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 |