( documentation for Telosys generator version 3.3.0 )
This object provides all information about an entity link
Each link is retrieved from the entity class
Example :
#foreach( $link in $entity.links )
private $link.formattedFieldType(10) $link.formattedFieldName(12);
#end
Attributes and methods |
.attributes : List of '$linkAttribute' (origin-target association)
Returns a list of attributes pair defining the link |
.attributesCount : int
Returns the number of attributes used to define the link |
.cardinality : String
Returns the cardinality of the link |
.cascade : String
Returns the 'cascade type' ( 'ALL', 'MERGE', 'MERGE PERSIST', 'PERSIST REFRESH', 'REMOVE' ) |
.entity : EntityInContext
Returns the entity to which the link belongs |
.fetch : String
Returns the 'fetch type' ( 'DEFAULT' or 'EAGER' or 'LAZY' ) |
.fieldName : String
Returns the field name for the link (attribute name in the entity class) |
.fieldType : String
Returns the type of the link |
.formattedFieldName(int n) : String
Returns the link's name with n trailing blanks |
.formattedFieldType(int n) : String
Returns the link's type with n trailing blanks |
.getter : String
Returns the Java getter for the link e.g. 'getPerson' for link 'person' |
.hasAttributeInPrimaryKey() : boolean
Returns TRUE if the link has one (or more) 'join column' in the entity Primary Key |
.hasJoinColumns() : boolean
Returns TRUE if the link has 'join columns' (at least one) |
.hasJoinTable() : boolean
Returns TRUE if the link has a 'join table' |
.hasMappedBy() : boolean
Returns TRUE if 'mappedBy' is defined |
.id : String
Returns the unique id of the link in the repository (id used by the tool) |
.insertable : String
Returns the 'insertable' flag value as string |
.insertableIs(boolean value) : boolean
Returns true if 'insertable' flag equals the given value |
.isCardinalityManyToMany() : boolean
Returns TRUE if the link has a 'ManyToMany' cardinality |
.isCardinalityManyToOne() : boolean
Returns TRUE if the link has a 'ManyToOne' cardinality |
.isCardinalityOneToMany() : boolean
Returns TRUE if the link has a 'OneToMany' cardinality |
.isCardinalityOneToOne() : boolean
Returns TRUE if the link has a 'OneToOne' cardinality |
.isCascadeALL() : boolean
Returns true if the 'cascade options' is 'ALL' |
.isCascadeMERGE() : boolean
Returns true if the 'cascade options' contains 'MERGE' |
.isCascadePERSIST() : boolean
Returns true if the 'cascade options' contains 'PERSIST' |
.isCascadeREFRESH() : boolean
Returns true if the 'cascade options' contains 'REFRESH' |
.isCascadeREMOVE() : boolean
Returns true if the 'cascade options' contains 'REMOVE' |
.isCollectionType() : boolean
Returns TRUE if the link is a collection |
.isEmbedded() : boolean
Returns TRUE if the link is marked as 'embedded' |
.isFetchDEFAULT() : boolean
Returns true if the 'fetch type' is 'DEFAULT' |
.isFetchEAGER() : boolean
Returns true if the 'fetch type' is 'EAGER' |
.isFetchLAZY() : boolean
Returns true if the 'fetch type' is 'LAZY' |
.isOptionalFalse() : boolean
Returns true if the 'optional status' is 'FALSE' |
.isOptionalTrue() : boolean
Returns true if the 'optional status' is 'TRUE' |
.isOptionalUndefined() : boolean
Returns true if the 'optional status' is 'UNDEFINED' |
.isOwningSide() : boolean
Returns TRUE if the link is the 'Owning Side' of the relationship between 2 entities |
.isSelected() : boolean
Returns TRUE if the link is selected (checkbox checked in the GUI) |
.isTransient() : boolean
Returns TRUE if the link is marked as 'transient' |
.joinColumns : List
Returns the 'join columns' for the link |
.joinTable : JoinTableInContext
Returns the 'join table' object for the link |
.joinTableName : String
Returns the name of the 'join table' for the link |
.mappedBy : String
Returns the name of the link in the 'owning side' |
.optional : String
Returns the 'optional status' for the link ( 'TRUE', 'FALSE' or 'UNDEFINED' ) |
.setter : String
Returns the Java setter for the link e.g. 'setPerson' for link 'person' |
.targetEntity : EntityInContext
Returns the entity referenced by the link |
.targetEntityFullType : String
Returns the type of the entity referenced by the link |
.targetEntitySimpleType : String
Returns the type of the entity referenced by the link |
.targetTableName : String
Returns the name of the target table (table referenced by the link) |
.updatable : String
Returns the 'updatable' flag value as string |
.updatableIs(boolean value) : boolean
Returns true if 'updatable' flag equals the given value |
.usesAttribute(AttributeInContext attribute) : boolean
Returns TRUE if the given attribute is used by the link |