Annotation Interface GenAsDatastoreStruct


@Retention(CLASS) @Target(TYPE) @Documented public @interface GenAsDatastoreStruct
Indicates that the class is to be implemented as a DatastoreStruct. Annotated classes will automatically implement the DatastoreStruct interface and need not include it in the implements clause.

Supported API: true

  • Element Details

    • objectName

      String objectName
      The database's name for this object. Note that the default value ("") indicates that the class's name should be used.

      Rose conversion note: Corresponds to Class Specification -> Windchill -> Struct Set -> ObjectName.

      Supported API: true

      Default:
      ""
    • superClass

      Class superClass
      The parent class for this class. This class would normally be the class designated by the extends statement and is needed because the annotated class must extend "_"+classname" (for example public MyClass extends _MyClass).

      Note: the parent should either be Object (which is the default) or some abstract/concrete class that implements DatastoreStruct, like AbstractDatastoreStruct.

      Rose conversion note: Corresponds to Class Specification -> Relations -> Specialize Class (where the specialized class is the single (non-interface) parent class).

      Supported API: true

      Default:
      java.lang.Object.class
    • interfaces

      Class[] interfaces
      The interfaces this class/interface extends/implements. These interfaces would normally be present in the extends clause (for an interface) or the implements clause (for a class), but must, instead, be present in this property because of the manner in which Java treats static final fields.

      Rose conversion note: Corresponds to Class Specification -> Relations -> Specialize Class (where the specialized class is the single (non-interface) parent class).

      Supported API: true

      Default:
      {}
    • properties

      GeneratedProperty[] properties
      A required array of properties for this type. Should consist of database primitives ( java.lang or java.sql types) or instances of GenAsDatastoreStruct. This property is required as it makes little sense to create an empty database structure.

      Rose conversion note: Corresponds to Class Specification -> Windchill -> Attributes.

      Supported API: true

      Default:
      {}