( documentation for Telosys generator version 4.1.0 )
This object provides all information about a database foreign key
Each foreign key is retrieved from the entity class
Example :
#foreach( $fk in $entity.databaseForeignKeys )
$fk.name
#end
Since : 2.0.7
Attributes and methods |
.attributes : List of 'Foreign Key Attribute' objects ( List of '$fkAttribute' )
Returns all the attributes composing the Foreign Key |
.attributesCount : int
Returns the number of attributes composing the foreign key |
.isComposite() : boolean
Returns true if the Foreign Key is composite (has more than 1 attribute) |
.isExplicit() : boolean
Returns true if the Foreign Key is explicit (defined with name). |
.name : String
Returns the name of the Foreign Key |
.originEntity : EntityInContext
Returns the origin entity object |
.originEntityName : String
Returns the origin entity name |
.referencedEntity : EntityInContext
Returns the referenced entity object |
.referencedEntityName : String
Returns the referenced entity name |
.sqlName : String
Returns the name of the Foreign Key. |
.sqlOriginColumns : List
Returns all the columns names composing the Foreign Key |
.sqlOriginColumnsAsString : String
Returns all the columns names composing the Foreign Key in a single string |
.sqlOriginTableName : String
Returns the name of the table holding the foreign key |
.sqlReferencedColumns : List
Returns a list containing the names of the referenced columns. |
.sqlReferencedColumnsAsString : String
Returns all the names of the referenced columns separated by a comma. |
.sqlReferencedTableName : String
Returns the name of the referenced table (the table referenced by the foreign key). |