Changeset 783
- Timestamp:
- Aug 6, 2010, 12:20:25 PM (13 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy
r754 r783 6 6 * this data can be found. 7 7 */ 8 class Assay implements Serializable{8 class Assay extends Identity { 9 9 10 10 /** The name of the assay, which should indicate the measurements represented in this assay to the user. */ -
trunk/grails-app/domain/dbnp/studycapturing/AssayModule.groovy
r754 r783 4 4 * This entity describes actual dbNP submodule instances: what type of data they store, and how to reach them 5 5 */ 6 class AssayModule implements Serializable{6 class AssayModule extends Identity { 7 7 8 8 /** The name of the module, for user-reference purposes */ -
trunk/grails-app/domain/dbnp/studycapturing/EventGroup.groovy
r778 r783 9 9 * $Date$ 10 10 */ 11 class EventGroup implements Serializable{11 class EventGroup extends Identity { 12 12 String name 13 13 14 // keep an internal identifier for use in dynamic forms15 private int identifier = 016 static int iterator = 017 18 static transients = [ "identifier", "iterator" ]19 14 static belongsTo = [parent : Study] 20 15 static hasMany = [ … … 26 21 static constraints = { 27 22 } 28 29 /**30 * Class constructor increments that static iterator31 * and sets the object's identifier (used in dynamic webforms)32 * @void33 */34 public EventGroup() {35 if (!identifier) identifier = iterator++36 }37 38 /**39 * Return the identifier40 * @return int41 */42 final public int getIdentifier() {43 return identifier44 }45 23 } -
trunk/grails-app/domain/dbnp/studycapturing/Person.groovy
r754 r783 6 6 * is independent of GSCF usernames and accounts. 7 7 */ 8 class Person implements Serializable{8 class Person extends Identity { 9 9 String title 10 10 String gender -
trunk/grails-app/domain/dbnp/studycapturing/PersonAffiliation.groovy
r754 r783 5 5 * PersonAffiliation is an independent list of affiliations, and does not neccessarily belong to one Person. 6 6 */ 7 class PersonAffiliation implements Serializable{7 class PersonAffiliation extends Identity { 8 8 9 9 String institute -
trunk/grails-app/domain/dbnp/studycapturing/PersonRole.groovy
r754 r783 6 6 * Generally, there will only be a few PersonRoles such as PI, lab analyst etc. 7 7 */ 8 class PersonRole implements Serializable{8 class PersonRole extends Identity { 9 9 10 10 /** The name of the role, such as Project Leader or PI */ -
trunk/grails-app/domain/dbnp/studycapturing/Publication.groovy
r754 r783 7 7 * and are not connected to Study instances via a cascading relation. 8 8 */ 9 class Publication implements Serializable{9 class Publication extends Identity { 10 10 String title 11 11 String pubMedID -
trunk/grails-app/domain/dbnp/studycapturing/StudyPerson.groovy
r754 r783 4 4 * Link table which couples studies with persons and the role they have within the study 5 5 */ 6 class StudyPerson implements Serializable{6 class StudyPerson extends Identity { 7 7 8 8 // A StudyPerson relation always belongs to one study. -
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r778 r783 17 17 * $Date$ 18 18 */ 19 class Template implements Serializable{19 class Template extends Identity { 20 20 21 21 /** The name of the template */ … … 34 34 List fields 35 35 36 // keep an internal identifier for use in dynamic forms37 private int identifier = 038 static int iterator = 039 40 // set transients41 static transients = [ "identifier", "iterator" ]42 43 36 static hasMany = [fields: TemplateField] 44 37 38 // constraints 45 39 static constraints = { 46 47 40 owner(nullable: true, blank: true) 48 41 description(nullable: true, blank: true) … … 78 71 // which can co-exist with the same name. See also TemplateField 79 72 // name(unique:['entity']) 80 }81 82 /**83 * Class constructor increments that static iterator84 * and sets the object's identifier (used in dynamic webforms)85 * @void86 */87 public Template() {88 if (!identifier) identifier = iterator++89 println ".instantiating [" + this.getClass() + "] ("+ identifier + ")"90 }91 92 /**93 * Return the identifier94 * @return int95 */96 final public int getIdentifier() {97 return identifier98 73 } 99 74 -
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r778 r783 17 17 * $Date$ 18 18 */ 19 abstract class TemplateEntity implements Serializable{19 abstract class TemplateEntity extends Identity { 20 20 /** The actual template of this TemplateEntity instance */ 21 21 Template template
Note: See TracChangeset
for help on using the changeset viewer.