|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) public @interface FieldAlias
Specifies the field alias that you can use to correlate different class field names
that have the same class field alias. The class alias, field alias and field types are
used to identify a unique class type ID during the object class serialization and de-serialization.
(Note: this annotation is currently only used when eXtreme scale data format (XDF) is enabled)
The @FieldAlias annotation can be specified for a field within a user defined class.
For example, the syntax for the field alias could look like :
@FieldAlias("Employee ID")In the above example, "Employee ID" is a field alias for the empId field in this user defined class.
@ClassAlias("ACME_Employee") class Employee1 { @FieldAlias("Employee ID") int empId = -1; @FieldAlias("Department No.") int deptId = -1; @FieldAlias("Year Salary") float salary = 0; @FieldAlias("Sex") String sex = "M"; int age = -1; String homeAddress = "";
Required Element Summary | |
---|---|
String |
value
The field alias |
Element Detail |
---|
public abstract String value
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |