Annotation Interface GeneratedProperty
ObjectMappables (via GenAsObjectMappable), Persistable (via
GenAsPersistable), and BinaryLink (via GenAsBinaryLink) and can be
either Java primitives (strings, ints, longs, timestamps, etc.) or
ObjectMappables.
Supported API: true
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionControls the accessibility and exceptions for generated accessor methods.Specifies the database properties of the column generated for this property.booleanControls whether a field will be generated or not.Controls the upper/lower bounds of numbers and strings, the string case, and the ability to set the property once the associatedPersistablehas been stored.The initial value of the property in theJavasource to be used when new instances of the class are created (for example,name="foo", type=String.class, initialValue="\"bar\""will generate the field in the source asString foo = "bar";.A string representing theJavaDocto generate for this property.The supported nature of this property to be generated into your marvelousJavaDoc.The<...>portion of the generictype().
-
Element Details
-
name
String nameThe name of this property.Rose conversion note: Corresponds to Class Attribute Specification -> General -> Name.
Supported API: true
-
type
Class typeThe type/class of this property. Can be aJava"primitive" (such as a String, int, long, Integer, Long, Timestamp, etc.) orObjectMappable, but can not be aPersistable(useGenAsBinaryLinkto create associations to persistables).Note: to specify a primitive like
int, simply append.class(resulting inint.class).Rose conversion note: Corresponds to Class Attribute Specification -> General -> Type.
Supported API: true
-
typeParameter
String typeParameterThe<...>portion of the generictype(). Java does not allow generics to be expressed as a class, so it's not possible to specify the type as "type=List<MyClass>". In the rare case where you wish to specify a generic, list the generic classes here; "List<MyClass>" would become "type=List.class, genericType="<somepackage.MyClass>".When specifying a
genericType, you must include the "<>"s and you must spell out the fully-qualified class (package name+class name). For example, "MyKey, List<MyObjects>" is invalid (the correct representation would be "<my.pkg.MyKey, java.util.List<my.other.pkg.MyObjects>>".Supported API: true
- Default:
""
-
concrete
boolean concreteControls whether a field will be generated or not. The default (true) will result in the generation of a field and accessors (assuming they've not been disabled). If set tofalse:- no field will be generated
- the accessors, if any, will be generated as
abstract - you will need to remodel the field in implementing classes to implement
Note: this property should be used sparingly and in abstract classes where you want to defer the type of the property but need methods generated (to the base type).
Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> Concrete.
Supported API: true
- Default:
true
-
initialValue
String initialValueThe initial value of the property in theJavasource to be used when new instances of the class are created (for example,name="foo", type=String.class, initialValue="\"bar\""will generate the field in the source asString foo = "bar";.Note: it is discouraged to use a value of
"null", since all fields not assigned when defined will be assigned anullvalue; assigning this value to"null"is redundant.Rose conversion note: Corresponds to Class Attribute Specification -> General -> Initial Value.
Supported API: true
- Default:
""
-
javaDoc
String javaDocA string representing theJavaDocto generate for this property. Your opportunity to impress your peers and customers!Rose conversion note: Corresponds to Class Attribute Specification -> General -> Documentation.
Supported API: true
- See Also:
- Default:
""
-
supportedAPI
SupportedAPI supportedAPIThe supported nature of this property to be generated into your marvelousJavaDoc.Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> SupportedAPI.
Supported API: true
- Default:
PRIVATE
-
accessors
PropertyAccessors accessorsControls the accessibility and exceptions for generated accessor methods.Rose conversion note: Corresponds to various properties found in Class Attribute Specification -> Windchill.
Supported API: true
- Default:
@com.ptc.windchill.annotations.metadata.PropertyAccessors
-
constraints
PropertyConstraints constraintsControls the upper/lower bounds of numbers and strings, the string case, and the ability to set the property once the associatedPersistablehas been stored.Rose conversion note: Corresponds to various properties found in Class Attribute Specification -> Windchill.
Supported API: true
- Default:
@com.ptc.windchill.annotations.metadata.PropertyConstraints
-
columnProperties
ColumnProperties columnPropertiesSpecifies the database properties of the column generated for this property.Rose conversion note: Corresponds to various properties found in Class Attribute Specification -> Windchill.
Supported API: true
- Default:
@com.ptc.windchill.annotations.metadata.ColumnProperties
-