Annotation Type ColumnAttribute



  • @Documented
    @Target(METHOD)
    @Retention(RUNTIME)
    public @interface ColumnAttribute
    Indicate binding to specified unival attribute from named column from UNIVAL RECORD object.

    Only public getter method of classes property is to be annotated. For each annotated getter an appropriate public setter method is required. Getter and setter of the property must conform to Java Bean naming convention. E.g. property "countTime" should be properly bound to unival value time (\TIM) attribute of column "Count" in the following way:

     
     private Date countTime;
    
     @ColumnAttribute(name = "Count", attribute = UnivalAttributeType.valueTime)
      public Date getCount() { return this.countTime; }
    
      public void setCount(Date value) { this.countTime = value; }
     
     

    It means that getter's identifier must begin with prefix "get" and setter's with "set". The identifiers after their prefixes are the same and should denote name of the property beginning with uppercase letter. Getter must take no arguments and its return type must be the same as is the type of the only setter's argument. Setter's return type must be void. It is advisable to access a single private field of the same type in getter/setter implementations but it is not investigated.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      UnivalAttributeType attribute
      Indicate unival attribute of the bound column.
      java.lang.String name
      Indicate name of the bound column.
    • Element Detail

      • attribute

        UnivalAttributeType attribute
        Indicate unival attribute of the bound column.
        Returns:
        unival attribute
      • name

        java.lang.String name
        Indicate name of the bound column.
        Returns:
        name of the column