View Javadoc

1   /**
2    * Generated by Mod4j BusinessDomain DSL by BeanClassImplBase in JavaBean.xpt at: Mon Oct 20
3    * 22:16:43 CEST 2008
4    */
5   package org.company.thesandbox.domain;
6   
7   import java.util.Collections;
8   import java.util.Set;
9   import java.util.HashSet;
10  import org.mod4j.runtime.validation.MinValueValidator;
11  import org.mod4j.runtime.validation.MaxValueValidator;
12  import org.mod4j.runtime.validation.MinLengthValidator;
13  import org.mod4j.runtime.validation.MaxLengthValidator;
14  import org.mod4j.runtime.validation.RegExpValidator;
15  
16  /**
17   * An artist is a Person who has had a role in producing a Record
18   * 
19   * @author Generated by Mod4j BusinessDomain DSL
20   */
21  
22  @SuppressWarnings("serial")
23  public abstract class ArtistImplBase extends Person implements java.io.Serializable {
24  
25      /**
26       * title:
27       */
28      private String title;
29  
30      /**
31       * Default no-argument constructor for ArtistImplBase
32       */
33      protected ArtistImplBase() {
34          super();
35      }
36  
37      /**
38       * Minimal constructor for ArtistImplBase
39       * 
40       * @param firstName
41       *            (string) First name of the person.
42       * @param lastName
43       *            (string) Last name of the person.
44       * @param title
45       *            (string)
46       */
47      public ArtistImplBase(String firstName, String lastName, String title) {
48          super(firstName, lastName);
49  
50          this.title = title;
51  
52          validation.validate();
53      }
54  
55      /**
56       * 
57       * @return title (String)
58       */
59      public String getTitle() {
60          return this.title;
61      }
62  
63      /**
64       * @param title
65       *            (String)
66       */
67      public void setTitle(final String title) {
68          this.title = title;
69          validation.validate();
70      }
71  
72      /**
73       * Activate/deactivate validation for this business class. When set to active the validation will immediately be
74       * executed.
75       * 
76       * @param value
77       *            (boolean)
78       */
79      public void activateValidation(boolean value) {
80  
81          this.validation.setActive(value);
82          if (value) {
83              validation.validate();
84          }
85      }
86  
87  }