|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeProperty
The SAS Metadata Model provides a Prototype metadata type to define templates that can be used to create metadata entities. The AttributeProperty metadata type is used with other prototype objects to define the attributes and the values that are needed in a given scenario.
Attributes of AttributeProperty are:
Associations of AttributeProperty 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(); AttributeProperty myObject = (AttributeProperty) factory.createComplexMetadataObject(objectStore, "AttributeProperty_Object", MetadataObjects.ATTRIBUTEPROPERTY, "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_OWNINGTYPE_NAME
Constant used for the name of the OwningType association. |
static java.lang.String |
ATTRIBUTE_DEFAULTVALUE_NAME
Constant used for the name of the DefaultValue attribute. |
static java.lang.String |
ATTRIBUTE_PROPERTYNAME_NAME
Constant used for the name of the PropertyName attribute. |
static java.lang.String |
ATTRIBUTE_PROPERTYROLE_NAME
Constant used for the name of the PropertyRole attribute. |
static java.lang.String |
ATTRIBUTE_SQLTYPE_NAME
Constant used for the name of the SQLType attribute. |
Fields inherited from interface com.sas.metadata.remote.PrototypeProperty |
---|
ASSOCIATION_OWNINGPROTOTYPE_NAME |
Fields inherited from interface com.sas.metadata.remote.AbstractProperty |
---|
ASSOCIATION_ASSOCIATEDPROPERTYGROUP_NAME, ASSOCIATION_CUSTOMIZERS_NAME, ASSOCIATION_EDITORS_NAME, ASSOCIATION_STOREDCONFIGURATION_NAME, ASSOCIATION_VALIDATORS_NAME, ATTRIBUTE_ISEXPERT_NAME, ATTRIBUTE_ISLINKED_NAME, ATTRIBUTE_ISREQUIRED_NAME, ATTRIBUTE_ISUPDATEABLE_NAME, ATTRIBUTE_ISVISIBLE_NAME |
Fields inherited from interface com.sas.metadata.remote.LocalizedType |
---|
ASSOCIATION_RESOURCES_NAME |
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 |
getDefaultValue()
Gets the String value of DefaultValue |
int |
getDefaultValueMaxLength()
Gets the maximum length of DefaultValue |
int |
getDefaultValueState()
Gets the Metadata State of DefaultValue |
PropertyType |
getOwningType()
Gets the PropertyType for OwningType |
AssociationList |
getOwningTypes()
Gets the AssociationList of OwningTypes |
AssociationList |
getOwningTypes(boolean fGoToServer)
Gets the Associationlist of OwningTypes |
java.lang.String |
getPropertyName()
Gets the String value of PropertyName |
int |
getPropertyNameMaxLength()
Gets the maximum length of PropertyName |
int |
getPropertyNameState()
Gets the Metadata State of PropertyName |
java.lang.String |
getPropertyRole()
Gets the String value of PropertyRole |
int |
getPropertyRoleMaxLength()
Gets the maximum length of PropertyRole |
int |
getPropertyRoleState()
Gets the Metadata State of PropertyRole |
int |
getSQLType()
Gets the int value of SQLType |
int |
getSQLTypeState()
Gets the Metadata State of SQLType |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: OwningType |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setDefaultValue(java.lang.String inDefaultValue)
Sets the DefaultValue value and sets the state to MetadataState.LOCAL. |
void |
setDefaultValue(java.lang.String inDefaultValue,
int state)
Sets the DefaultValue Metadata State. |
void |
setDefaultValueState(int state)
Sets the Metadata State of DefaultValue . |
void |
setOwningType(PropertyType inObject)
Sets the OwningTypes list 0th element to be inObject . |
void |
setOwningTypes(AssociationList list)
Sets the OwningTypes list to be list . |
void |
setOwningTypes(AssociationList list,
int state)
Sets the OwningTypes list to be list . |
void |
setPropertyName(java.lang.String inPropertyName)
Sets the PropertyName value and sets the state to MetadataState.LOCAL. |
void |
setPropertyName(java.lang.String inPropertyName,
int state)
Sets the PropertyName Metadata State. |
void |
setPropertyNameState(int state)
Sets the Metadata State of PropertyName . |
void |
setPropertyRole(java.lang.String inPropertyRole)
Sets the PropertyRole value and sets the state to MetadataState.LOCAL. |
void |
setPropertyRole(java.lang.String inPropertyRole,
int state)
Sets the PropertyRole Metadata State. |
void |
setPropertyRoleState(int state)
Sets the Metadata State of PropertyRole . |
void |
setSQLType(int inSQLType)
Sets the SQLType value and sets the state to MetadataState.LOCAL. |
void |
setSQLType(int inSQLType,
int state)
Sets the SQLType Metadata State. |
void |
setSQLType(java.lang.String inSQLType)
Sets the SQLType value and sets the state to MetadataState.LOCAL. |
void |
setSQLType(java.lang.String inSQLType,
int state)
Sets the SQLType value and Metadata State. |
void |
setSQLTypeState(int state)
Sets the Metadata State of SQLType . |
Methods inherited from interface com.sas.metadata.remote.PrototypeProperty |
---|
getOwningPrototype, getOwningPrototypes, getOwningPrototypes, setOwningPrototype, setOwningPrototypes, setOwningPrototypes |
Methods inherited from interface com.sas.metadata.remote.LocalizedType |
---|
getResources, getResources, setResources, setResources |
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_PROPERTYROLE_NAME
PropertyRole: The role of this property (load, access, initialization, etc).
static final java.lang.String ATTRIBUTE_PROPERTYNAME_NAME
PropertyName: This attribute is the name used by the software program, for example the name of a macro variable. This object also has a 'Name' attribute that is the display name or label.
static final java.lang.String ATTRIBUTE_DEFAULTVALUE_NAME
DefaultValue: The default value for this parameter.
static final java.lang.String ATTRIBUTE_SQLTYPE_NAME
SQLType: SQLType
static final java.lang.String ASSOCIATION_OWNINGTYPE_NAME
OwningType: The data type of this property.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface AbstractProperty
initializeRequiredObjects
in interface LocalizedType
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrototypeProperty
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
OwningType
initializePredObjects
in interface AbstractProperty
initializePredObjects
in interface LocalizedType
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrototypeProperty
initializePredObjects
in interface Root
initializePredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getPropertyRole() throws java.rmi.RemoteException
String
value of PropertyRole
PropertyRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPropertyRoleState() throws java.rmi.RemoteException
PropertyRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPropertyRoleMaxLength() throws java.rmi.RemoteException
PropertyRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getPropertyName() throws java.rmi.RemoteException
String
value of PropertyName
PropertyName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPropertyNameState() throws java.rmi.RemoteException
PropertyName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getPropertyNameMaxLength() throws java.rmi.RemoteException
PropertyName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getDefaultValue() throws java.rmi.RemoteException
String
value of DefaultValue
DefaultValue
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getDefaultValueState() throws java.rmi.RemoteException
DefaultValue
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getDefaultValueMaxLength() throws java.rmi.RemoteException
DefaultValue
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getSQLType() throws java.rmi.RemoteException
int
value of SQLType
SQLType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getSQLTypeState() throws java.rmi.RemoteException
SQLType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getOwningTypes() throws java.rmi.RemoteException, MdException
OwningTypes
OwningTypes
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
PropertyType getOwningType() throws java.rmi.RemoteException, MdException
PropertyType
for OwningType
PropertyType
( null
if not set) of OwningType
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 getOwningTypes(boolean fGoToServer) throws java.rmi.RemoteException, MdException
OwningTypes
fGoToServer
- boolean Get the value from the server.
OwningTypes
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 setPropertyRole(java.lang.String inPropertyRole) throws java.rmi.RemoteException
PropertyRole
value and sets the state to MetadataState.LOCAL.
inPropertyRole
- String
java.rmi.RemoteException
- If error communicating with remote object.void setPropertyRole(java.lang.String inPropertyRole, int state) throws java.rmi.RemoteException
PropertyRole
Metadata State.
inPropertyRole
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPropertyRoleState(int state) throws java.rmi.RemoteException
PropertyRole
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPropertyName(java.lang.String inPropertyName) throws java.rmi.RemoteException
PropertyName
value and sets the state to MetadataState.LOCAL.
inPropertyName
- String
java.rmi.RemoteException
- If error communicating with remote object.void setPropertyName(java.lang.String inPropertyName, int state) throws java.rmi.RemoteException
PropertyName
Metadata State.
inPropertyName
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPropertyNameState(int state) throws java.rmi.RemoteException
PropertyName
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultValue(java.lang.String inDefaultValue) throws java.rmi.RemoteException
DefaultValue
value and sets the state to MetadataState.LOCAL.
inDefaultValue
- String
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultValue(java.lang.String inDefaultValue, int state) throws java.rmi.RemoteException
DefaultValue
Metadata State.
inDefaultValue
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setDefaultValueState(int state) throws java.rmi.RemoteException
DefaultValue
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSQLType(int inSQLType) throws java.rmi.RemoteException
SQLType
value and sets the state to MetadataState.LOCAL.
inSQLType
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSQLType(int inSQLType, int state) throws java.rmi.RemoteException
SQLType
Metadata State.
inSQLType
- intstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSQLType(java.lang.String inSQLType) throws java.rmi.RemoteException
SQLType
value and sets the state to MetadataState.LOCAL.
inSQLType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setSQLType(java.lang.String inSQLType, int state) throws java.rmi.RemoteException
SQLType
value and Metadata State.
inSQLType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setSQLTypeState(int state) throws java.rmi.RemoteException
SQLType
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setOwningTypes(AssociationList list) throws java.rmi.RemoteException
OwningTypes
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setOwningTypes(AssociationList list, int state) throws java.rmi.RemoteException
OwningTypes
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setOwningType(PropertyType inObject) throws java.rmi.RemoteException
OwningTypes
list 0th element to be inObject
.
inObject
- PropertyType
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 |