KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cayenne > tutorial > tapestry > domain > auto > _Gallery


1 package cayenne.tutorial.tapestry.domain.auto;
2
3 import java.util.List JavaDoc;
4
5 /** Class _Gallery was generated by Cayenne.
6   * It is probably a good idea to avoid changing this class manually,
7   * since it may be overwritten next time code is regenerated.
8   * If you need to make any customizations, please use subclass.
9   */

10 public class _Gallery extends org.objectstyle.cayenne.CayenneDataObject {
11
12     public static final String JavaDoc GALLERY_NAME_PROPERTY = "galleryName";
13     public static final String JavaDoc PAINTING_ARRAY_PROPERTY = "paintingArray";
14
15     public static final String JavaDoc GALLERY_ID_PK_COLUMN = "GALLERY_ID";
16
17     public void setGalleryName(String JavaDoc galleryName) {
18         writeProperty("galleryName", galleryName);
19     }
20     public String JavaDoc getGalleryName() {
21         return (String JavaDoc)readProperty("galleryName");
22     }
23     
24     
25     public void addToPaintingArray(cayenne.tutorial.tapestry.domain.Painting obj) {
26         addToManyTarget("paintingArray", obj, true);
27     }
28     public void removeFromPaintingArray(cayenne.tutorial.tapestry.domain.Painting obj) {
29         removeToManyTarget("paintingArray", obj, true);
30     }
31     public List JavaDoc getPaintingArray() {
32         return (List JavaDoc)readProperty("paintingArray");
33     }
34     
35     
36 }
37
Popular Tags