( documentation for Telosys generator version 4.1.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 all attributes 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) attribute in the entity Primary Key |
.hasJoinEntity() : boolean
Returns TRUE if the link has a 'join entity' |
.hasMappedBy() : boolean
Returns TRUE if 'mappedBy' is defined |
.hasTag(String tagName) : boolean
Returns TRUE if the link has a tag with the given name |
.insertable : String
Returns the 'insertable' flag value as string |
.insertableIs(boolean booleanValue) : boolean
Returns true if 'insertable flag' is defined and 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 |
.isCardinalityToMany() : boolean
Returns TRUE if the link cardinality is 'OneToMany' or 'ManyToMany' |
.isCardinalityToOne() : boolean
Returns TRUE if the link cardinality is 'ManyToOne' or 'OneToOne' |
.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' |
.isOrphanRemoval() : boolean
Returns TRUE if the link is marked with 'OrphanRemoval' option. |
.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' |
.joinEntity : EntityInContext
Returns the 'join entity' (entity object) used by the link |
.joinEntityName : String
Returns the name of the 'join entity' used by 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' |
.tagValue(String tagName) : String
Returns the value held by the given tag name |
.tagValue(String tagName, String defaultValue) : String
Returns the value held by the given tag name |
.tagValueAsBoolean(String tagName, boolean defaultValue) : boolean
Returns the boolean value held by the given tag name |
.tagValueAsInt(String tagName, int defaultValue) : int
Returns the integer value held by the given tag name |
.targetEntity : EntityInContext
Returns the entity referenced by the link |
.targetEntityFullType : String
Returns the type of the entity referenced by the link |
.targetEntityName : String
Returns the name of the entity referenced by the link |
.targetEntitySimpleType : String
Returns the type of the entity referenced by the link |
.updatable : String
Returns the 'updatable' flag value as string |
.updatableIs(boolean booleanValue) : boolean
Returns true if 'updatable flag' is defined and equals the given value |
.usesAttribute(AttributeInContext attribute) : boolean
Returns TRUE if the given attribute is an origin attribute in the link |