KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > campware > cream > om > BaseNewsletter


1 package org.campware.cream.om;
2
3
4 import java.math.BigDecimal JavaDoc;
5 import java.sql.Connection JavaDoc;
6 import java.util.ArrayList JavaDoc;
7 import java.util.Collections JavaDoc;
8 import java.util.Date JavaDoc;
9 import java.util.List JavaDoc;
10
11 import org.apache.commons.lang.ObjectUtils;
12 import org.apache.turbine.om.Retrievable;
13 import org.apache.torque.TorqueException;
14 import org.apache.torque.om.BaseObject;
15 import org.apache.torque.om.ComboKey;
16 import org.apache.torque.om.DateKey;
17 import org.apache.torque.om.NumberKey;
18 import org.apache.torque.om.ObjectKey;
19 import org.apache.torque.om.SimpleKey;
20 import org.apache.torque.om.StringKey;
21 import org.apache.torque.om.Persistent;
22 import org.apache.torque.util.Criteria;
23 import org.apache.torque.util.Transaction;
24
25   
26     
27     
28     
29     
30     
31     
32     
33   
34 /**
35  * This class was autogenerated by Torque on:
36  *
37  * [Wed May 04 09:10:56 CEST 2005]
38  *
39  * You should not use this class directly. It should not even be
40  * extended all references should be to Newsletter
41  */

42 public abstract class BaseNewsletter extends BaseObject
43     implements org.apache.turbine.om.Retrievable
44 {
45     /** The Peer class */
46     private static final NewsletterPeer peer =
47         new NewsletterPeer();
48
49         
50     /** The value for the newsletterId field */
51     private int newsletterId;
52                                                 
53     /** The value for the newsletterCode field */
54     private String JavaDoc newsletterCode = "AUTO";
55                                           
56     /** The value for the status field */
57     private int status = 30;
58                                           
59     /** The value for the priority field */
60     private int priority = 30;
61       
62     /** The value for the issuedDate field */
63     private Date JavaDoc issuedDate;
64       
65     /** The value for the closedDate field */
66     private Date JavaDoc closedDate;
67       
68     /** The value for the sentTime field */
69     private Date JavaDoc sentTime;
70                                           
71     /** The value for the emailFormat field */
72     private int emailFormat = 10;
73                                           
74     /** The value for the languageId field */
75     private int languageId = 1000;
76                                           
77     /** The value for the customerCatId field */
78     private int customerCatId = 999;
79                                           
80     /** The value for the customerType field */
81     private int customerType = 1;
82                                           
83     /** The value for the custLanguageId field */
84     private int custLanguageId = 999;
85                                           
86     /** The value for the custCountryId field */
87     private int custCountryId = 999;
88                                           
89     /** The value for the relDocument field */
90     private int relDocument = 10;
91                                           
92     /** The value for the relDocStatus field */
93     private int relDocStatus = 1;
94                                           
95     /** The value for the relProjectId field */
96     private int relProjectId = 999;
97                                           
98     /** The value for the relProductId field */
99     private int relProductId = 999;
100                                           
101     /** The value for the projectId field */
102     private int projectId = 1000;
103                                           
104     /** The value for the productId field */
105     private int productId = 1000;
106       
107     /** The value for the subject field */
108     private String JavaDoc subject;
109       
110     /** The value for the body field */
111     private String JavaDoc body;
112       
113     /** The value for the notes field */
114     private String JavaDoc notes;
115       
116     /** The value for the created field */
117     private Date JavaDoc created;
118       
119     /** The value for the modified field */
120     private Date JavaDoc modified;
121       
122     /** The value for the createdBy field */
123     private String JavaDoc createdBy;
124       
125     /** The value for the modifiedBy field */
126     private String JavaDoc modifiedBy;
127   
128     
129     /**
130      * Get the NewsletterId
131      *
132      * @return int
133      */

134     public int getNewsletterId()
135     {
136         return newsletterId;
137     }
138
139                         
140     /**
141      * Set the value of NewsletterId
142      *
143      * @param v new value
144      */

145     public void setNewsletterId(int v)
146     {
147     
148                   if (this.newsletterId != v)
149               {
150             this.newsletterId = v;
151             setModified(true);
152         }
153     
154           
155               }
156   
157     /**
158      * Get the NewsletterCode
159      *
160      * @return String
161      */

162     public String JavaDoc getNewsletterCode()
163     {
164         return newsletterCode;
165     }
166
167                         
168     /**
169      * Set the value of NewsletterCode
170      *
171      * @param v new value
172      */

173     public void setNewsletterCode(String JavaDoc v)
174     {
175     
176                   if (!ObjectUtils.equals(this.newsletterCode, v))
177               {
178             this.newsletterCode = v;
179             setModified(true);
180         }
181     
182           
183               }
184   
185     /**
186      * Get the Status
187      *
188      * @return int
189      */

190     public int getStatus()
191     {
192         return status;
193     }
194
195                         
196     /**
197      * Set the value of Status
198      *
199      * @param v new value
200      */

201     public void setStatus(int v)
202     {
203     
204                   if (this.status != v)
205               {
206             this.status = v;
207             setModified(true);
208         }
209     
210           
211               }
212   
213     /**
214      * Get the Priority
215      *
216      * @return int
217      */

218     public int getPriority()
219     {
220         return priority;
221     }
222
223                         
224     /**
225      * Set the value of Priority
226      *
227      * @param v new value
228      */

229     public void setPriority(int v)
230     {
231     
232                   if (this.priority != v)
233               {
234             this.priority = v;
235             setModified(true);
236         }
237     
238           
239               }
240   
241     /**
242      * Get the IssuedDate
243      *
244      * @return Date
245      */

246     public Date JavaDoc getIssuedDate()
247     {
248         return issuedDate;
249     }
250
251                         
252     /**
253      * Set the value of IssuedDate
254      *
255      * @param v new value
256      */

257     public void setIssuedDate(Date JavaDoc v)
258     {
259     
260                   if (!ObjectUtils.equals(this.issuedDate, v))
261               {
262             this.issuedDate = v;
263             setModified(true);
264         }
265     
266           
267               }
268   
269     /**
270      * Get the ClosedDate
271      *
272      * @return Date
273      */

274     public Date JavaDoc getClosedDate()
275     {
276         return closedDate;
277     }
278
279                         
280     /**
281      * Set the value of ClosedDate
282      *
283      * @param v new value
284      */

285     public void setClosedDate(Date JavaDoc v)
286     {
287     
288                   if (!ObjectUtils.equals(this.closedDate, v))
289               {
290             this.closedDate = v;
291             setModified(true);
292         }
293     
294           
295               }
296   
297     /**
298      * Get the SentTime
299      *
300      * @return Date
301      */

302     public Date JavaDoc getSentTime()
303     {
304         return sentTime;
305     }
306
307                         
308     /**
309      * Set the value of SentTime
310      *
311      * @param v new value
312      */

313     public void setSentTime(Date JavaDoc v)
314     {
315     
316                   if (!ObjectUtils.equals(this.sentTime, v))
317               {
318             this.sentTime = v;
319             setModified(true);
320         }
321     
322           
323               }
324   
325     /**
326      * Get the EmailFormat
327      *
328      * @return int
329      */

330     public int getEmailFormat()
331     {
332         return emailFormat;
333     }
334
335                         
336     /**
337      * Set the value of EmailFormat
338      *
339      * @param v new value
340      */

341     public void setEmailFormat(int v)
342     {
343     
344                   if (this.emailFormat != v)
345               {
346             this.emailFormat = v;
347             setModified(true);
348         }
349     
350           
351               }
352   
353     /**
354      * Get the LanguageId
355      *
356      * @return int
357      */

358     public int getLanguageId()
359     {
360         return languageId;
361     }
362
363                               
364     /**
365      * Set the value of LanguageId
366      *
367      * @param v new value
368      */

369     public void setLanguageId(int v) throws TorqueException
370     {
371     
372                   if (this.languageId != v)
373               {
374             this.languageId = v;
375             setModified(true);
376         }
377     
378                                                                   
379                 if (aLanguageRelatedByLanguageId != null && !(aLanguageRelatedByLanguageId.getLanguageId() == v))
380                 {
381             aLanguageRelatedByLanguageId = null;
382         }
383       
384               }
385   
386     /**
387      * Get the CustomerCatId
388      *
389      * @return int
390      */

391     public int getCustomerCatId()
392     {
393         return customerCatId;
394     }
395
396                               
397     /**
398      * Set the value of CustomerCatId
399      *
400      * @param v new value
401      */

402     public void setCustomerCatId(int v) throws TorqueException
403     {
404     
405                   if (this.customerCatId != v)
406               {
407             this.customerCatId = v;
408             setModified(true);
409         }
410     
411                           
412                 if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))
413                 {
414             aCustomerCategory = null;
415         }
416       
417               }
418   
419     /**
420      * Get the CustomerType
421      *
422      * @return int
423      */

424     public int getCustomerType()
425     {
426         return customerType;
427     }
428
429                         
430     /**
431      * Set the value of CustomerType
432      *
433      * @param v new value
434      */

435     public void setCustomerType(int v)
436     {
437     
438                   if (this.customerType != v)
439               {
440             this.customerType = v;
441             setModified(true);
442         }
443     
444           
445               }
446   
447     /**
448      * Get the CustLanguageId
449      *
450      * @return int
451      */

452     public int getCustLanguageId()
453     {
454         return custLanguageId;
455     }
456
457                               
458     /**
459      * Set the value of CustLanguageId
460      *
461      * @param v new value
462      */

463     public void setCustLanguageId(int v) throws TorqueException
464     {
465     
466                   if (this.custLanguageId != v)
467               {
468             this.custLanguageId = v;
469             setModified(true);
470         }
471     
472                                                                   
473                 if (aLanguageRelatedByCustLanguageId != null && !(aLanguageRelatedByCustLanguageId.getLanguageId() == v))
474                 {
475             aLanguageRelatedByCustLanguageId = null;
476         }
477       
478               }
479   
480     /**
481      * Get the CustCountryId
482      *
483      * @return int
484      */

485     public int getCustCountryId()
486     {
487         return custCountryId;
488     }
489
490                               
491     /**
492      * Set the value of CustCountryId
493      *
494      * @param v new value
495      */

496     public void setCustCountryId(int v) throws TorqueException
497     {
498     
499                   if (this.custCountryId != v)
500               {
501             this.custCountryId = v;
502             setModified(true);
503         }
504     
505                           
506                 if (aCountry != null && !(aCountry.getCountryId() == v))
507                 {
508             aCountry = null;
509         }
510       
511               }
512   
513     /**
514      * Get the RelDocument
515      *
516      * @return int
517      */

518     public int getRelDocument()
519     {
520         return relDocument;
521     }
522
523                         
524     /**
525      * Set the value of RelDocument
526      *
527      * @param v new value
528      */

529     public void setRelDocument(int v)
530     {
531     
532                   if (this.relDocument != v)
533               {
534             this.relDocument = v;
535             setModified(true);
536         }
537     
538           
539               }
540   
541     /**
542      * Get the RelDocStatus
543      *
544      * @return int
545      */

546     public int getRelDocStatus()
547     {
548         return relDocStatus;
549     }
550
551                         
552     /**
553      * Set the value of RelDocStatus
554      *
555      * @param v new value
556      */

557     public void setRelDocStatus(int v)
558     {
559     
560                   if (this.relDocStatus != v)
561               {
562             this.relDocStatus = v;
563             setModified(true);
564         }
565     
566           
567               }
568   
569     /**
570      * Get the RelProjectId
571      *
572      * @return int
573      */

574     public int getRelProjectId()
575     {
576         return relProjectId;
577     }
578
579                               
580     /**
581      * Set the value of RelProjectId
582      *
583      * @param v new value
584      */

585     public void setRelProjectId(int v) throws TorqueException
586     {
587     
588                   if (this.relProjectId != v)
589               {
590             this.relProjectId = v;
591             setModified(true);
592         }
593     
594                                                                   
595                 if (aProjectRelatedByRelProjectId != null && !(aProjectRelatedByRelProjectId.getProjectId() == v))
596                 {
597             aProjectRelatedByRelProjectId = null;
598         }
599       
600               }
601   
602     /**
603      * Get the RelProductId
604      *
605      * @return int
606      */

607     public int getRelProductId()
608     {
609         return relProductId;
610     }
611
612                               
613     /**
614      * Set the value of RelProductId
615      *
616      * @param v new value
617      */

618     public void setRelProductId(int v) throws TorqueException
619     {
620     
621                   if (this.relProductId != v)
622               {
623             this.relProductId = v;
624             setModified(true);
625         }
626     
627                                                                   
628                 if (aProductRelatedByRelProductId != null && !(aProductRelatedByRelProductId.getProductId() == v))
629                 {
630             aProductRelatedByRelProductId = null;
631         }
632       
633               }
634   
635     /**
636      * Get the ProjectId
637      *
638      * @return int
639      */

640     public int getProjectId()
641     {
642         return projectId;
643     }
644
645                               
646     /**
647      * Set the value of ProjectId
648      *
649      * @param v new value
650      */

651     public void setProjectId(int v) throws TorqueException
652     {
653     
654                   if (this.projectId != v)
655               {
656             this.projectId = v;
657             setModified(true);
658         }
659     
660                                                                   
661                 if (aProjectRelatedByProjectId != null && !(aProjectRelatedByProjectId.getProjectId() == v))
662                 {
663             aProjectRelatedByProjectId = null;
664         }
665       
666               }
667   
668     /**
669      * Get the ProductId
670      *
671      * @return int
672      */

673     public int getProductId()
674     {
675         return productId;
676     }
677
678                               
679     /**
680      * Set the value of ProductId
681      *
682      * @param v new value
683      */

684     public void setProductId(int v) throws TorqueException
685     {
686     
687                   if (this.productId != v)
688               {
689             this.productId = v;
690             setModified(true);
691         }
692     
693                                                                   
694                 if (aProductRelatedByProductId != null && !(aProductRelatedByProductId.getProductId() == v))
695                 {
696             aProductRelatedByProductId = null;
697         }
698       
699               }
700   
701     /**
702      * Get the Subject
703      *
704      * @return String
705      */

706     public String JavaDoc getSubject()
707     {
708         return subject;
709     }
710
711                         
712     /**
713      * Set the value of Subject
714      *
715      * @param v new value
716      */

717     public void setSubject(String JavaDoc v)
718     {
719     
720                   if (!ObjectUtils.equals(this.subject, v))
721               {
722             this.subject = v;
723             setModified(true);
724         }
725     
726           
727               }
728   
729     /**
730      * Get the Body
731      *
732      * @return String
733      */

734     public String JavaDoc getBody()
735     {
736         return body;
737     }
738
739                         
740     /**
741      * Set the value of Body
742      *
743      * @param v new value
744      */

745     public void setBody(String JavaDoc v)
746     {
747     
748                   if (!ObjectUtils.equals(this.body, v))
749               {
750             this.body = v;
751             setModified(true);
752         }
753     
754           
755               }
756   
757     /**
758      * Get the Notes
759      *
760      * @return String
761      */

762     public String JavaDoc getNotes()
763     {
764         return notes;
765     }
766
767                         
768     /**
769      * Set the value of Notes
770      *
771      * @param v new value
772      */

773     public void setNotes(String JavaDoc v)
774     {
775     
776                   if (!ObjectUtils.equals(this.notes, v))
777               {
778             this.notes = v;
779             setModified(true);
780         }
781     
782           
783               }
784   
785     /**
786      * Get the Created
787      *
788      * @return Date
789      */

790     public Date JavaDoc getCreated()
791     {
792         return created;
793     }
794
795                         
796     /**
797      * Set the value of Created
798      *
799      * @param v new value
800      */

801     public void setCreated(Date JavaDoc v)
802     {
803     
804                   if (!ObjectUtils.equals(this.created, v))
805               {
806             this.created = v;
807             setModified(true);
808         }
809     
810           
811               }
812   
813     /**
814      * Get the Modified
815      *
816      * @return Date
817      */

818     public Date JavaDoc getModified()
819     {
820         return modified;
821     }
822
823                         
824     /**
825      * Set the value of Modified
826      *
827      * @param v new value
828      */

829     public void setModified(Date JavaDoc v)
830     {
831     
832                   if (!ObjectUtils.equals(this.modified, v))
833               {
834             this.modified = v;
835             setModified(true);
836         }
837     
838           
839               }
840   
841     /**
842      * Get the CreatedBy
843      *
844      * @return String
845      */

846     public String JavaDoc getCreatedBy()
847     {
848         return createdBy;
849     }
850
851                         
852     /**
853      * Set the value of CreatedBy
854      *
855      * @param v new value
856      */

857     public void setCreatedBy(String JavaDoc v)
858     {
859     
860                   if (!ObjectUtils.equals(this.createdBy, v))
861               {
862             this.createdBy = v;
863             setModified(true);
864         }
865     
866           
867               }
868   
869     /**
870      * Get the ModifiedBy
871      *
872      * @return String
873      */

874     public String JavaDoc getModifiedBy()
875     {
876         return modifiedBy;
877     }
878
879                         
880     /**
881      * Set the value of ModifiedBy
882      *
883      * @param v new value
884      */

885     public void setModifiedBy(String JavaDoc v)
886     {
887     
888                   if (!ObjectUtils.equals(this.modifiedBy, v))
889               {
890             this.modifiedBy = v;
891             setModified(true);
892         }
893     
894           
895               }
896   
897       
898     
899                   
900     
901         private CustomerCategory aCustomerCategory;
902
903     /**
904      * Declares an association between this object and a CustomerCategory object
905      *
906      * @param v CustomerCategory
907      * @throws TorqueException
908      */

909     public void setCustomerCategory(CustomerCategory v) throws TorqueException
910     {
911             if (v == null)
912         {
913                           setCustomerCatId( 999);
914               }
915         else
916         {
917             setCustomerCatId(v.getCustomerCatId());
918         }
919             aCustomerCategory = v;
920     }
921
922                                             
923     /**
924      * Get the associated CustomerCategory object
925      *
926      * @return the associated CustomerCategory object
927      * @throws TorqueException
928      */

929     public CustomerCategory getCustomerCategory() throws TorqueException
930     {
931         if (aCustomerCategory == null && (this.customerCatId != 0))
932         {
933                           aCustomerCategory = CustomerCategoryPeer.retrieveByPK(SimpleKey.keyFor(this.customerCatId));
934               
935             /* The following can be used instead of the line above to
936                guarantee the related object contains a reference
937                to this object, but this level of coupling
938                may be undesirable in many circumstances.
939                As it can lead to a db query with many results that may
940                never be used.
941                CustomerCategory obj = CustomerCategoryPeer.retrieveByPK(this.customerCatId);
942                obj.addNewsletters(this);
943             */

944         }
945         return aCustomerCategory;
946     }
947
948     /**
949      * Provides convenient way to set a relationship based on a
950      * ObjectKey, for example
951      * <code>bar.setFooKey(foo.getPrimaryKey())</code>
952      *
953          */

954     public void setCustomerCategoryKey(ObjectKey key) throws TorqueException
955     {
956       
957                         setCustomerCatId(((NumberKey) key).intValue());
958                   }
959     
960     
961                         
962         
963         private Project aProjectRelatedByProjectId;
964
965     /**
966      * Declares an association between this object and a Project object
967      *
968      * @param v Project
969      * @throws TorqueException
970      */

971     public void setProjectRelatedByProjectId(Project v) throws TorqueException
972     {
973             if (v == null)
974         {
975                           setProjectId( 1000);
976               }
977         else
978         {
979             setProjectId(v.getProjectId());
980         }
981             aProjectRelatedByProjectId = v;
982     }
983
984                                             
985     /**
986      * Get the associated Project object
987      *
988      * @return the associated Project object
989      * @throws TorqueException
990      */

991     public Project getProjectRelatedByProjectId() throws TorqueException
992     {
993         if (aProjectRelatedByProjectId == null && (this.projectId != 0))
994         {
995                           aProjectRelatedByProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectId));
996               
997             /* The following can be used instead of the line above to
998                guarantee the related object contains a reference
999                to this object, but this level of coupling
1000               may be undesirable in many circumstances.
1001               As it can lead to a db query with many results that may
1002               never be used.
1003               Project obj = ProjectPeer.retrieveByPK(this.projectId);
1004               obj.addNewslettersRelatedByProjectId(this);
1005            */

1006        }
1007        return aProjectRelatedByProjectId;
1008    }
1009
1010    /**
1011     * Provides convenient way to set a relationship based on a
1012     * ObjectKey, for example
1013     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1014     *
1015         */

1016    public void setProjectRelatedByProjectIdKey(ObjectKey key) throws TorqueException
1017    {
1018      
1019                        setProjectId(((NumberKey) key).intValue());
1020                  }
1021    
1022    
1023                        
1024        
1025        private Product aProductRelatedByProductId;
1026
1027    /**
1028     * Declares an association between this object and a Product object
1029     *
1030     * @param v Product
1031     * @throws TorqueException
1032     */

1033    public void setProductRelatedByProductId(Product v) throws TorqueException
1034    {
1035            if (v == null)
1036        {
1037                          setProductId( 1000);
1038              }
1039        else
1040        {
1041            setProductId(v.getProductId());
1042        }
1043            aProductRelatedByProductId = v;
1044    }
1045
1046                                            
1047    /**
1048     * Get the associated Product object
1049     *
1050     * @return the associated Product object
1051     * @throws TorqueException
1052     */

1053    public Product getProductRelatedByProductId() throws TorqueException
1054    {
1055        if (aProductRelatedByProductId == null && (this.productId != 0))
1056        {
1057                          aProductRelatedByProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.productId));
1058              
1059            /* The following can be used instead of the line above to
1060               guarantee the related object contains a reference
1061               to this object, but this level of coupling
1062               may be undesirable in many circumstances.
1063               As it can lead to a db query with many results that may
1064               never be used.
1065               Product obj = ProductPeer.retrieveByPK(this.productId);
1066               obj.addNewslettersRelatedByProductId(this);
1067            */

1068        }
1069        return aProductRelatedByProductId;
1070    }
1071
1072    /**
1073     * Provides convenient way to set a relationship based on a
1074     * ObjectKey, for example
1075     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1076     *
1077         */

1078    public void setProductRelatedByProductIdKey(ObjectKey key) throws TorqueException
1079    {
1080      
1081                        setProductId(((NumberKey) key).intValue());
1082                  }
1083    
1084    
1085                        
1086        
1087        private Project aProjectRelatedByRelProjectId;
1088
1089    /**
1090     * Declares an association between this object and a Project object
1091     *
1092     * @param v Project
1093     * @throws TorqueException
1094     */

1095    public void setProjectRelatedByRelProjectId(Project v) throws TorqueException
1096    {
1097            if (v == null)
1098        {
1099                          setRelProjectId( 999);
1100              }
1101        else
1102        {
1103            setRelProjectId(v.getProjectId());
1104        }
1105            aProjectRelatedByRelProjectId = v;
1106    }
1107
1108                                            
1109    /**
1110     * Get the associated Project object
1111     *
1112     * @return the associated Project object
1113     * @throws TorqueException
1114     */

1115    public Project getProjectRelatedByRelProjectId() throws TorqueException
1116    {
1117        if (aProjectRelatedByRelProjectId == null && (this.relProjectId != 0))
1118        {
1119                          aProjectRelatedByRelProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.relProjectId));
1120              
1121            /* The following can be used instead of the line above to
1122               guarantee the related object contains a reference
1123               to this object, but this level of coupling
1124               may be undesirable in many circumstances.
1125               As it can lead to a db query with many results that may
1126               never be used.
1127               Project obj = ProjectPeer.retrieveByPK(this.relProjectId);
1128               obj.addNewslettersRelatedByRelProjectId(this);
1129            */

1130        }
1131        return aProjectRelatedByRelProjectId;
1132    }
1133
1134    /**
1135     * Provides convenient way to set a relationship based on a
1136     * ObjectKey, for example
1137     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1138     *
1139         */

1140    public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException
1141    {
1142      
1143                        setRelProjectId(((NumberKey) key).intValue());
1144                  }
1145    
1146    
1147                        
1148        
1149        private Product aProductRelatedByRelProductId;
1150
1151    /**
1152     * Declares an association between this object and a Product object
1153     *
1154     * @param v Product
1155     * @throws TorqueException
1156     */

1157    public void setProductRelatedByRelProductId(Product v) throws TorqueException
1158    {
1159            if (v == null)
1160        {
1161                          setRelProductId( 999);
1162              }
1163        else
1164        {
1165            setRelProductId(v.getProductId());
1166        }
1167            aProductRelatedByRelProductId = v;
1168    }
1169
1170                                            
1171    /**
1172     * Get the associated Product object
1173     *
1174     * @return the associated Product object
1175     * @throws TorqueException
1176     */

1177    public Product getProductRelatedByRelProductId() throws TorqueException
1178    {
1179        if (aProductRelatedByRelProductId == null && (this.relProductId != 0))
1180        {
1181                          aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));
1182              
1183            /* The following can be used instead of the line above to
1184               guarantee the related object contains a reference
1185               to this object, but this level of coupling
1186               may be undesirable in many circumstances.
1187               As it can lead to a db query with many results that may
1188               never be used.
1189               Product obj = ProductPeer.retrieveByPK(this.relProductId);
1190               obj.addNewslettersRelatedByRelProductId(this);
1191            */

1192        }
1193        return aProductRelatedByRelProductId;
1194    }
1195
1196    /**
1197     * Provides convenient way to set a relationship based on a
1198     * ObjectKey, for example
1199     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1200     *
1201         */

1202    public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException
1203    {
1204      
1205                        setRelProductId(((NumberKey) key).intValue());
1206                  }
1207    
1208    
1209                  
1210    
1211        private Country aCountry;
1212
1213    /**
1214     * Declares an association between this object and a Country object
1215     *
1216     * @param v Country
1217     * @throws TorqueException
1218     */

1219    public void setCountry(Country v) throws TorqueException
1220    {
1221            if (v == null)
1222        {
1223                          setCustCountryId( 999);
1224              }
1225        else
1226        {
1227            setCustCountryId(v.getCountryId());
1228        }
1229            aCountry = v;
1230    }
1231
1232                                            
1233    /**
1234     * Get the associated Country object
1235     *
1236     * @return the associated Country object
1237     * @throws TorqueException
1238     */

1239    public Country getCountry() throws TorqueException
1240    {
1241        if (aCountry == null && (this.custCountryId != 0))
1242        {
1243                          aCountry = CountryPeer.retrieveByPK(SimpleKey.keyFor(this.custCountryId));
1244              
1245            /* The following can be used instead of the line above to
1246               guarantee the related object contains a reference
1247               to this object, but this level of coupling
1248               may be undesirable in many circumstances.
1249               As it can lead to a db query with many results that may
1250               never be used.
1251               Country obj = CountryPeer.retrieveByPK(this.custCountryId);
1252               obj.addNewsletters(this);
1253            */

1254        }
1255        return aCountry;
1256    }
1257
1258    /**
1259     * Provides convenient way to set a relationship based on a
1260     * ObjectKey, for example
1261     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1262     *
1263         */

1264    public void setCountryKey(ObjectKey key) throws TorqueException
1265    {
1266      
1267                        setCustCountryId(((NumberKey) key).intValue());
1268                  }
1269    
1270    
1271                        
1272        
1273        private Language aLanguageRelatedByCustLanguageId;
1274
1275    /**
1276     * Declares an association between this object and a Language object
1277     *
1278     * @param v Language
1279     * @throws TorqueException
1280     */

1281    public void setLanguageRelatedByCustLanguageId(Language v) throws TorqueException
1282    {
1283            if (v == null)
1284        {
1285                          setCustLanguageId( 999);
1286              }
1287        else
1288        {
1289            setCustLanguageId(v.getLanguageId());
1290        }
1291            aLanguageRelatedByCustLanguageId = v;
1292    }
1293
1294                                            
1295    /**
1296     * Get the associated Language object
1297     *
1298     * @return the associated Language object
1299     * @throws TorqueException
1300     */

1301    public Language getLanguageRelatedByCustLanguageId() throws TorqueException
1302    {
1303        if (aLanguageRelatedByCustLanguageId == null && (this.custLanguageId != 0))
1304        {
1305                          aLanguageRelatedByCustLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.custLanguageId));
1306              
1307            /* The following can be used instead of the line above to
1308               guarantee the related object contains a reference
1309               to this object, but this level of coupling
1310               may be undesirable in many circumstances.
1311               As it can lead to a db query with many results that may
1312               never be used.
1313               Language obj = LanguagePeer.retrieveByPK(this.custLanguageId);
1314               obj.addNewslettersRelatedByCustLanguageId(this);
1315            */

1316        }
1317        return aLanguageRelatedByCustLanguageId;
1318    }
1319
1320    /**
1321     * Provides convenient way to set a relationship based on a
1322     * ObjectKey, for example
1323     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1324     *
1325         */

1326    public void setLanguageRelatedByCustLanguageIdKey(ObjectKey key) throws TorqueException
1327    {
1328      
1329                        setCustLanguageId(((NumberKey) key).intValue());
1330                  }
1331    
1332    
1333                        
1334        
1335        private Language aLanguageRelatedByLanguageId;
1336
1337    /**
1338     * Declares an association between this object and a Language object
1339     *
1340     * @param v Language
1341     * @throws TorqueException
1342     */

1343    public void setLanguageRelatedByLanguageId(Language v) throws TorqueException
1344    {
1345            if (v == null)
1346        {
1347                          setLanguageId( 1000);
1348              }
1349        else
1350        {
1351            setLanguageId(v.getLanguageId());
1352        }
1353            aLanguageRelatedByLanguageId = v;
1354    }
1355
1356                                            
1357    /**
1358     * Get the associated Language object
1359     *
1360     * @return the associated Language object
1361     * @throws TorqueException
1362     */

1363    public Language getLanguageRelatedByLanguageId() throws TorqueException
1364    {
1365        if (aLanguageRelatedByLanguageId == null && (this.languageId != 0))
1366        {
1367                          aLanguageRelatedByLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.languageId));
1368              
1369            /* The following can be used instead of the line above to
1370               guarantee the related object contains a reference
1371               to this object, but this level of coupling
1372               may be undesirable in many circumstances.
1373               As it can lead to a db query with many results that may
1374               never be used.
1375               Language obj = LanguagePeer.retrieveByPK(this.languageId);
1376               obj.addNewslettersRelatedByLanguageId(this);
1377            */

1378        }
1379        return aLanguageRelatedByLanguageId;
1380    }
1381
1382    /**
1383     * Provides convenient way to set a relationship based on a
1384     * ObjectKey, for example
1385     * <code>bar.setFooKey(foo.getPrimaryKey())</code>
1386     *
1387         */

1388    public void setLanguageRelatedByLanguageIdKey(ObjectKey key) throws TorqueException
1389    {
1390      
1391                        setLanguageId(((NumberKey) key).intValue());
1392                  }
1393       
1394                
1395    private static List JavaDoc fieldNames = null;
1396
1397    /**
1398     * Generate a list of field names.
1399     *
1400     * @return a list of field names
1401     */

1402    public static synchronized List JavaDoc getFieldNames()
1403    {
1404        if (fieldNames == null)
1405        {
1406            fieldNames = new ArrayList JavaDoc();
1407              fieldNames.add("NewsletterId");
1408              fieldNames.add("NewsletterCode");
1409              fieldNames.add("Status");
1410              fieldNames.add("Priority");
1411              fieldNames.add("IssuedDate");
1412              fieldNames.add("ClosedDate");
1413              fieldNames.add("SentTime");
1414              fieldNames.add("EmailFormat");
1415              fieldNames.add("LanguageId");
1416              fieldNames.add("CustomerCatId");
1417              fieldNames.add("CustomerType");
1418              fieldNames.add("CustLanguageId");
1419              fieldNames.add("CustCountryId");
1420              fieldNames.add("RelDocument");
1421              fieldNames.add("RelDocStatus");
1422              fieldNames.add("RelProjectId");
1423              fieldNames.add("RelProductId");
1424              fieldNames.add("ProjectId");
1425              fieldNames.add("ProductId");
1426              fieldNames.add("Subject");
1427              fieldNames.add("Body");
1428              fieldNames.add("Notes");
1429              fieldNames.add("Created");
1430              fieldNames.add("Modified");
1431              fieldNames.add("CreatedBy");
1432              fieldNames.add("ModifiedBy");
1433              fieldNames = Collections.unmodifiableList(fieldNames);
1434        }
1435        return fieldNames;
1436    }
1437
1438    /**
1439     * Retrieves a field from the object by name passed in as a String.
1440     *
1441     * @param name field name
1442     * @return value
1443     */

1444    public Object JavaDoc getByName(String JavaDoc name)
1445    {
1446          if (name.equals("NewsletterId"))
1447        {
1448                return new Integer JavaDoc(getNewsletterId());
1449            }
1450          if (name.equals("NewsletterCode"))
1451        {
1452                return getNewsletterCode();
1453            }
1454          if (name.equals("Status"))
1455        {
1456                return new Integer JavaDoc(getStatus());
1457            }
1458          if (name.equals("Priority"))
1459        {
1460                return new Integer JavaDoc(getPriority());
1461            }
1462          if (name.equals("IssuedDate"))
1463        {
1464                return getIssuedDate();
1465            }
1466          if (name.equals("ClosedDate"))
1467        {
1468                return getClosedDate();
1469            }
1470          if (name.equals("SentTime"))
1471        {
1472                return getSentTime();
1473            }
1474          if (name.equals("EmailFormat"))
1475        {
1476                return new Integer JavaDoc(getEmailFormat());
1477            }
1478          if (name.equals("LanguageId"))
1479        {
1480                return new Integer JavaDoc(getLanguageId());
1481            }
1482          if (name.equals("CustomerCatId"))
1483        {
1484                return new Integer JavaDoc(getCustomerCatId());
1485            }
1486          if (name.equals("CustomerType"))
1487        {
1488                return new Integer JavaDoc(getCustomerType());
1489            }
1490          if (name.equals("CustLanguageId"))
1491        {
1492                return new Integer JavaDoc(getCustLanguageId());
1493            }
1494          if (name.equals("CustCountryId"))
1495        {
1496                return new Integer JavaDoc(getCustCountryId());
1497            }
1498          if (name.equals("RelDocument"))
1499        {
1500                return new Integer JavaDoc(getRelDocument());
1501            }
1502          if (name.equals("RelDocStatus"))
1503        {
1504                return new Integer JavaDoc(getRelDocStatus());
1505            }
1506          if (name.equals("RelProjectId"))
1507        {
1508                return new Integer JavaDoc(getRelProjectId());
1509            }
1510          if (name.equals("RelProductId"))
1511        {
1512                return new Integer JavaDoc(getRelProductId());
1513            }
1514          if (name.equals("ProjectId"))
1515        {
1516                return new Integer JavaDoc(getProjectId());
1517            }
1518          if (name.equals("ProductId"))
1519        {
1520                return new Integer JavaDoc(getProductId());
1521            }
1522          if (name.equals("Subject"))
1523        {
1524                return getSubject();
1525            }
1526          if (name.equals("Body"))
1527        {
1528                return getBody();
1529            }
1530          if (name.equals("Notes"))
1531        {
1532                return getNotes();
1533            }
1534          if (name.equals("Created"))
1535        {
1536                return getCreated();
1537            }
1538          if (name.equals("Modified"))
1539        {
1540                return getModified();
1541            }
1542          if (name.equals("CreatedBy"))
1543        {
1544                return getCreatedBy();
1545            }
1546          if (name.equals("ModifiedBy"))
1547        {
1548                return getModifiedBy();
1549            }
1550          return null;
1551    }
1552    
1553    /**
1554     * Retrieves a field from the object by name passed in
1555     * as a String. The String must be one of the static
1556     * Strings defined in this Class' Peer.
1557     *
1558     * @param name peer name
1559     * @return value
1560     */

1561    public Object JavaDoc getByPeerName(String JavaDoc name)
1562    {
1563          if (name.equals(NewsletterPeer.NEWSLETTER_ID))
1564        {
1565                return new Integer JavaDoc(getNewsletterId());
1566            }
1567          if (name.equals(NewsletterPeer.NEWSLETTER_CODE))
1568        {
1569                return getNewsletterCode();
1570            }
1571          if (name.equals(NewsletterPeer.STATUS))
1572        {
1573                return new Integer JavaDoc(getStatus());
1574            }
1575          if (name.equals(NewsletterPeer.PRIORITY))
1576        {
1577                return new Integer JavaDoc(getPriority());
1578            }
1579          if (name.equals(NewsletterPeer.ISSUED_DATE))
1580        {
1581                return getIssuedDate();
1582            }
1583          if (name.equals(NewsletterPeer.CLOSED_DATE))
1584        {
1585                return getClosedDate();
1586            }
1587          if (name.equals(NewsletterPeer.SENT_TIME))
1588        {
1589                return getSentTime();
1590            }
1591          if (name.equals(NewsletterPeer.EMAIL_FORMAT))
1592        {
1593                return new Integer JavaDoc(getEmailFormat());
1594            }
1595          if (name.equals(NewsletterPeer.LANGUAGE_ID))
1596        {
1597                return new Integer JavaDoc(getLanguageId());
1598            }
1599          if (name.equals(NewsletterPeer.CUSTOMER_CAT_ID))
1600        {
1601                return new Integer JavaDoc(getCustomerCatId());
1602            }
1603          if (name.equals(NewsletterPeer.CUSTOMER_TYPE))
1604        {
1605                return new Integer JavaDoc(getCustomerType());
1606            }
1607          if (name.equals(NewsletterPeer.CUST_LANGUAGE_ID))
1608        {
1609                return new Integer JavaDoc(getCustLanguageId());
1610            }
1611          if (name.equals(NewsletterPeer.CUST_COUNTRY_ID))
1612        {
1613                return new Integer JavaDoc(getCustCountryId());
1614            }
1615          if (name.equals(NewsletterPeer.REL_DOCUMENT))
1616        {
1617                return new Integer JavaDoc(getRelDocument());
1618            }
1619          if (name.equals(NewsletterPeer.REL_DOC_STATUS))
1620        {
1621                return new Integer JavaDoc(getRelDocStatus());
1622            }
1623          if (name.equals(NewsletterPeer.REL_PROJECT_ID))
1624        {
1625                return new Integer JavaDoc(getRelProjectId());
1626            }
1627          if (name.equals(NewsletterPeer.REL_PRODUCT_ID))
1628        {
1629                return new Integer JavaDoc(getRelProductId());
1630            }
1631          if (name.equals(NewsletterPeer.PROJECT_ID))
1632        {
1633                return new Integer JavaDoc(getProjectId());
1634            }
1635          if (name.equals(NewsletterPeer.PRODUCT_ID))
1636        {
1637                return new Integer JavaDoc(getProductId());
1638            }
1639          if (name.equals(NewsletterPeer.SUBJECT))
1640        {
1641                return getSubject();
1642            }
1643          if (name.equals(NewsletterPeer.BODY))
1644        {
1645                return getBody();
1646            }
1647          if (name.equals(NewsletterPeer.NOTES))
1648        {
1649                return getNotes();
1650            }
1651          if (name.equals(NewsletterPeer.CREATED))
1652        {
1653                return getCreated();
1654            }
1655          if (name.equals(NewsletterPeer.MODIFIED))
1656        {
1657                return getModified();
1658            }
1659          if (name.equals(NewsletterPeer.CREATED_BY))
1660        {
1661                return getCreatedBy();
1662            }
1663          if (name.equals(NewsletterPeer.MODIFIED_BY))
1664        {
1665                return getModifiedBy();
1666            }
1667          return null;
1668    }
1669
1670    /**
1671     * Retrieves a field from the object by Position as specified
1672     * in the xml schema. Zero-based.
1673     *
1674     * @param pos position in xml schema
1675     * @return value
1676     */

1677    public Object JavaDoc getByPosition(int pos)
1678    {
1679            if (pos == 0)
1680        {
1681                return new Integer JavaDoc(getNewsletterId());
1682            }
1683              if (pos == 1)
1684        {
1685                return getNewsletterCode();
1686            }
1687              if (pos == 2)
1688        {
1689                return new Integer JavaDoc(getStatus());
1690            }
1691              if (pos == 3)
1692        {
1693                return new Integer JavaDoc(getPriority());
1694            }
1695              if (pos == 4)
1696        {
1697                return getIssuedDate();
1698            }
1699              if (pos == 5)
1700        {
1701                return getClosedDate();
1702            }
1703              if (pos == 6)
1704        {
1705                return getSentTime();
1706            }
1707              if (pos == 7)
1708        {
1709                return new Integer JavaDoc(getEmailFormat());
1710            }
1711              if (pos == 8)
1712        {
1713                return new Integer JavaDoc(getLanguageId());
1714            }
1715              if (pos == 9)
1716        {
1717                return new Integer JavaDoc(getCustomerCatId());
1718            }
1719              if (pos == 10)
1720        {
1721                return new Integer JavaDoc(getCustomerType());
1722            }
1723              if (pos == 11)
1724        {
1725                return new Integer JavaDoc(getCustLanguageId());
1726            }
1727              if (pos == 12)
1728        {
1729                return new Integer JavaDoc(getCustCountryId());
1730            }
1731              if (pos == 13)
1732        {
1733                return new Integer JavaDoc(getRelDocument());
1734            }
1735              if (pos == 14)
1736        {
1737                return new Integer JavaDoc(getRelDocStatus());
1738            }
1739              if (pos == 15)
1740        {
1741                return new Integer JavaDoc(getRelProjectId());
1742            }
1743              if (pos == 16)
1744        {
1745                return new Integer JavaDoc(getRelProductId());
1746            }
1747              if (pos == 17)
1748        {
1749                return new Integer JavaDoc(getProjectId());
1750            }
1751              if (pos == 18)
1752        {
1753                return new Integer JavaDoc(getProductId());
1754            }
1755              if (pos == 19)
1756        {
1757                return getSubject();
1758            }
1759              if (pos == 20)
1760        {
1761                return getBody();
1762            }
1763              if (pos == 21)
1764        {
1765                return getNotes();
1766            }
1767              if (pos == 22)
1768        {
1769                return getCreated();
1770            }
1771              if (pos == 23)
1772        {
1773                return getModified();
1774            }
1775              if (pos == 24)
1776        {
1777                return getCreatedBy();
1778            }
1779              if (pos == 25)
1780        {
1781                return getModifiedBy();
1782            }
1783              return null;
1784    }
1785     
1786    /**
1787     * Stores the object in the database. If the object is new,
1788     * it inserts it; otherwise an update is performed.
1789     *
1790     * @throws Exception
1791     */

1792    public void save() throws Exception JavaDoc
1793    {
1794          save(NewsletterPeer.getMapBuilder()
1795                .getDatabaseMap().getName());
1796      }
1797
1798    /**
1799     * Stores the object in the database. If the object is new,
1800     * it inserts it; otherwise an update is performed.
1801       * Note: this code is here because the method body is
1802     * auto-generated conditionally and therefore needs to be
1803     * in this file instead of in the super class, BaseObject.
1804       *
1805     * @param dbName
1806     * @throws TorqueException
1807     */

1808    public void save(String JavaDoc dbName) throws TorqueException
1809    {
1810        Connection JavaDoc con = null;
1811          try
1812        {
1813            con = Transaction.begin(dbName);
1814            save(con);
1815            Transaction.commit(con);
1816        }
1817        catch(TorqueException e)
1818        {
1819            Transaction.safeRollback(con);
1820            throw e;
1821        }
1822      }
1823
1824      /** flag to prevent endless save loop, if this object is referenced
1825        by another object which falls in this transaction. */

1826    private boolean alreadyInSave = false;
1827      /**
1828     * Stores the object in the database. If the object is new,
1829     * it inserts it; otherwise an update is performed. This method
1830     * is meant to be used as part of a transaction, otherwise use
1831     * the save() method and the connection details will be handled
1832     * internally
1833     *
1834     * @param con
1835     * @throws TorqueException
1836     */

1837    public void save(Connection JavaDoc con) throws TorqueException
1838    {
1839          if (!alreadyInSave)
1840        {
1841            alreadyInSave = true;
1842
1843
1844  
1845            // If this object has been modified, then save it to the database.
1846
if (isModified())
1847            {
1848                if (isNew())
1849                {
1850                    NewsletterPeer.doInsert((Newsletter) this, con);
1851                    setNew(false);
1852                }
1853                else
1854                {
1855                    NewsletterPeer.doUpdate((Newsletter) this, con);
1856                }
1857            }
1858
1859                      alreadyInSave = false;
1860        }
1861      }
1862
1863                  
1864      /**
1865     * Set the PrimaryKey using ObjectKey.
1866     *
1867     * @param key newsletterId ObjectKey
1868     */

1869    public void setPrimaryKey(ObjectKey key)
1870        
1871    {
1872            setNewsletterId(((NumberKey) key).intValue());
1873        }
1874
1875    /**
1876     * Set the PrimaryKey using a String.
1877     *
1878     * @param key
1879     */

1880    public void setPrimaryKey(String JavaDoc key)
1881    {
1882            setNewsletterId(Integer.parseInt(key));
1883        }
1884
1885  
1886    /**
1887     * returns an id that differentiates this object from others
1888     * of its class.
1889     */

1890    public ObjectKey getPrimaryKey()
1891    {
1892          return SimpleKey.keyFor(getNewsletterId());
1893      }
1894 
1895    /**
1896     * get an id that differentiates this object from others
1897     * of its class.
1898     */

1899    public String JavaDoc getQueryKey()
1900    {
1901        if (getPrimaryKey() == null)
1902        {
1903            return "";
1904        }
1905        else
1906        {
1907            return getPrimaryKey().toString();
1908        }
1909    }
1910
1911    /**
1912     * set an id that differentiates this object from others
1913     * of its class.
1914     */

1915    public void setQueryKey(String JavaDoc key)
1916        throws TorqueException
1917    {
1918        setPrimaryKey(key);
1919    }
1920
1921    /**
1922     * Makes a copy of this object.
1923     * It creates a new object filling in the simple attributes.
1924       * It then fills all the association collections and sets the
1925     * related objects to isNew=true.
1926       */

1927      public Newsletter copy() throws TorqueException
1928    {
1929        return copyInto(new Newsletter());
1930    }
1931  
1932    protected Newsletter copyInto(Newsletter copyObj) throws TorqueException
1933    {
1934          copyObj.setNewsletterId(newsletterId);
1935          copyObj.setNewsletterCode(newsletterCode);
1936          copyObj.setStatus(status);
1937          copyObj.setPriority(priority);
1938          copyObj.setIssuedDate(issuedDate);
1939          copyObj.setClosedDate(closedDate);
1940          copyObj.setSentTime(sentTime);
1941          copyObj.setEmailFormat(emailFormat);
1942          copyObj.setLanguageId(languageId);
1943          copyObj.setCustomerCatId(customerCatId);
1944          copyObj.setCustomerType(customerType);
1945          copyObj.setCustLanguageId(custLanguageId);
1946          copyObj.setCustCountryId(custCountryId);
1947          copyObj.setRelDocument(relDocument);
1948          copyObj.setRelDocStatus(relDocStatus);
1949          copyObj.setRelProjectId(relProjectId);
1950          copyObj.setRelProductId(relProductId);
1951          copyObj.setProjectId(projectId);
1952          copyObj.setProductId(productId);
1953          copyObj.setSubject(subject);
1954          copyObj.setBody(body);
1955          copyObj.setNotes(notes);
1956          copyObj.setCreated(created);
1957          copyObj.setModified(modified);
1958          copyObj.setCreatedBy(createdBy);
1959          copyObj.setModifiedBy(modifiedBy);
1960  
1961                            copyObj.setNewsletterId( 0);
1962                                                                                                                                                                  
1963                return copyObj;
1964    }
1965
1966    /**
1967     * returns a peer instance associated with this om. Since Peer classes
1968     * are not to have any instance attributes, this method returns the
1969     * same instance for all member of this class. The method could therefore
1970     * be static, but this would prevent one from overriding the behavior.
1971     */

1972    public NewsletterPeer getPeer()
1973    {
1974        return peer;
1975    }
1976
1977    public String JavaDoc toString()
1978    {
1979        StringBuffer JavaDoc str = new StringBuffer JavaDoc();
1980        str.append("Newsletter:\n");
1981        str.append("NewsletterId = ")
1982               .append(getNewsletterId())
1983             .append("\n");
1984        str.append("NewsletterCode = ")
1985               .append(getNewsletterCode())
1986             .append("\n");
1987        str.append("Status = ")
1988               .append(getStatus())
1989             .append("\n");
1990        str.append("Priority = ")
1991               .append(getPriority())
1992             .append("\n");
1993        str.append("IssuedDate = ")
1994               .append(getIssuedDate())
1995             .append("\n");
1996        str.append("ClosedDate = ")
1997               .append(getClosedDate())
1998             .append("\n");
1999        str.append("SentTime = ")
2000               .append(getSentTime())
2001             .append("\n");
2002        str.append("EmailFormat = ")
2003               .append(getEmailFormat())
2004             .append("\n");
2005        str.append("LanguageId = ")
2006               .append(getLanguageId())
2007             .append("\n");
2008        str.append("CustomerCatId = ")
2009               .append(getCustomerCatId())
2010             .append("\n");
2011        str.append("CustomerType = ")
2012               .append(getCustomerType())
2013             .append("\n");
2014        str.append("CustLanguageId = ")
2015               .append(getCustLanguageId())
2016             .append("\n");
2017        str.append("CustCountryId = ")
2018               .append(getCustCountryId())
2019             .append("\n");
2020        str.append("RelDocument = ")
2021               .append(getRelDocument())
2022             .append("\n");
2023        str.append("RelDocStatus = ")
2024               .append(getRelDocStatus())
2025             .append("\n");
2026        str.append("RelProjectId = ")
2027               .append(getRelProjectId())
2028             .append("\n");
2029        str.append("RelProductId = ")
2030               .append(getRelProductId())
2031             .append("\n");
2032        str.append("ProjectId = ")
2033               .append(getProjectId())
2034             .append("\n");
2035        str.append("ProductId = ")
2036               .append(getProductId())
2037             .append("\n");
2038        str.append("Subject = ")
2039               .append(getSubject())
2040             .append("\n");
2041        str.append("Body = ")
2042               .append(getBody())
2043             .append("\n");
2044        str.append("Notes = ")
2045               .append(getNotes())
2046             .append("\n");
2047        str.append("Created = ")
2048               .append(getCreated())
2049             .append("\n");
2050        str.append("Modified = ")
2051               .append(getModified())
2052             .append("\n");
2053        str.append("CreatedBy = ")
2054               .append(getCreatedBy())
2055             .append("\n");
2056        str.append("ModifiedBy = ")
2057               .append(getModifiedBy())
2058             .append("\n");
2059        return(str.toString());
2060    }
2061}
2062
Popular Tags