Changeset 662 for trunk/grails-app/domain
- Timestamp:
- Jul 19, 2010, 4:28:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r661 r662 623 623 624 624 /** 625 * Look up the type of a certain template field 626 * @param String fieldName The name of the template field 627 * @return String The type (static member of TemplateFieldType) of the field, or null of the field does not exist 628 */ 629 TemplateFieldType giveFieldType(String fieldName) { 630 def field = giveFields().find { 631 it.name == fieldName 632 } 633 field?.type 634 } 635 636 /** 625 637 * Return all relevant 'built-in' domain fields of the super class. Should be implemented by a static method 626 638 * @return List with DomainTemplateFields … … 659 671 } 660 672 661 /**662 * Look up the type of a certain template subject field663 * @param String fieldName The name of the template field664 * @return String The type (static member of TemplateFieldType) of the field, or null of the field does not exist665 */666 def TemplateFieldType getFieldType(String fieldName) {667 def field = this.giveFields().find {668 it.name == fieldName669 }670 field?.type671 }672 673 }
Note: See TracChangeset
for help on using the changeset viewer.