public interface ApplicationAttributeOperations
Modifier and Type | Method and Description |
---|---|
ApplicationElement |
getApplicationElement()
(4017)
Return the application element to which the attribute belongs.
|
BaseAttribute |
getBaseAttribute()
(4001)
Get the base attribute of the application attribute.
|
DataType |
getDataType()
(4002)
Get the data type of the application attribute.
|
EnumerationDefinition |
getEnumerationDefinition()
(4020)
Get the definition of the enumeration.
|
int |
getLength()
(4003)
Get the maximum allowed string length of the value of the
application attribute.
|
java.lang.String |
getName()
(4004)
Get the name of the application attribute.
|
ACL[] |
getRights()
(4016)
Retrieve access control list information of the given object.
|
T_LONGLONG |
getUnit()
(4005)
Get the unit Id of the application attribute.
|
boolean |
hasUnit()
(4022)
Has the attribute an unit.
|
boolean |
hasValueFlag()
(4024)
Deprecated, not used any more since ASAM ODS 5.2.
|
boolean |
isAutogenerated()
(4018)
Get the auto generate flag of the application attribute.
|
boolean |
isObligatory()
(4006)
Get the obligatory flag of the application attribute.
|
boolean |
isUnique()
(4007)
Get the unique flag of the application attribute.
|
void |
setBaseAttribute(BaseAttribute baseAttr)
(4008)
Set the base attribute of the application attribute.
|
void |
setDataType(DataType aaDataType)
(4009)
Set the data type of the application attribute.
|
void |
setEnumerationDefinition(EnumerationDefinition enumDef)
(4021)
Set the definition of the enumeration.
|
void |
setIsAutogenerated(boolean isAutogenerated)
(4019)
Set the auto generate flag of the application attribute.
|
void |
setIsObligatory(boolean aaIsObligatory)
(4010)
Set the obligatory flag of the application attribute.
|
void |
setIsUnique(boolean aaIsUnique)
(4011)
Set the unique flag of the application attribute.
|
void |
setLength(int aaLength)
(4012)
Set the maximum allowed length of the application attribute.
|
void |
setName(java.lang.String aaName)
(4013)
Set the name of an application attribute.
|
void |
setRights(InstanceElement usergroup,
int rights,
RightsSet set)
(4015)
The given user group the rights should be set for.
|
void |
setUnit(T_LONGLONG aaUnit)
(4014)
Set the unit Id of an application attribute.
|
void |
withUnit(boolean withUnit)
(4023)
Specifies whether the attribute will have an unit or not.
|
void |
withValueFlag(boolean withValueFlag)
(4025)
Deprecated, not used any more since ASAM ODS 5.2.
|
BaseAttribute getBaseAttribute() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEDataType getDataType() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEint getLength() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String getName() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVET_LONGLONG getUnit() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEboolean isObligatory() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEboolean isUnique() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setBaseAttribute(BaseAttribute baseAttr) throws AoException
baseAttr
- The base attribute.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_DATATYPE
AO_MISSING_VALUE
AO_NOT_IMPLEMENTED
AO_NOT_UNIQUE
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setDataType(DataType aaDataType) throws AoException
aaDataType
- The data type.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_DATATYPE
AO_IS_BASE_ATTRIBUTE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setIsObligatory(boolean aaIsObligatory) throws AoException
aaIsObligatory
- The obligatory flag.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_IS_BASE_ATTRIBUTE
AO_MISSING_VALUE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setIsUnique(boolean aaIsUnique) throws AoException
aaIsUnique
- The unique flag.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_IS_BASE_ATTRIBUTE
AO_MISSING_VALUE
AO_NOT_IMPLEMENTED
AO_NOT_UNIQUE
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setLength(int aaLength) throws AoException
aaLength
- The maximum attribute length.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_INSTANCES
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_LENGTH
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setName(java.lang.String aaName) throws AoException
aaName
- The application attribute name.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setUnit(T_LONGLONG aaUnit) throws AoException
aaUnit
- The unit Id.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INCOMPATIBLE_UNITS
AO_MATH_ERROR
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_UNKNOWN_UNITvoid setRights(InstanceElement usergroup, int rights, RightsSet set) throws AoException
usergroup
- The user group for which the rights will be
modified.rights
- The new right for the user group. The rights
constants are defined in the interface
SecurityRights. The interface definition language
IDL does not allow to set the values of enumerations
thus the constant definitions had to be done in an
interface.set
- What to do with the new right.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEACL[] getRights() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement getApplicationElement() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEboolean isAutogenerated() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setIsAutogenerated(boolean isAutogenerated) throws AoException
isAutogenerated
- The auto generate flag.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_IS_BASE_ATTRIBUTE
AO_MISSING_VALUE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEEnumerationDefinition getEnumerationDefinition() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_INVALID_DATATYPEvoid setEnumerationDefinition(EnumerationDefinition enumDef) throws AoException
enumDef
- The new enumeration definition.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE
AO_ACCESS_DENIED
AO_INVALID_DATATYPEboolean hasUnit() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid withUnit(boolean withUnit) throws AoException
withUnit
- TRUE, if the attribute will have an unit, FALSE
otherwise.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEboolean hasValueFlag() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid withValueFlag(boolean withValueFlag) throws AoException
withValueFlag
- TRUE flag if the attribute becomes a value
flag, else FALSE.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE