KickJava   Java API By Example, From Geeks To Geeks.

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


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  * This class was autogenerated by Torque on:
30  *
31  * [Wed May 04 09:10:56 CEST 2005]
32  *
33  * You should not use this class directly. It should not even be
34  * extended all references should be to NewsSubscription
35  */

36 public abstract class BaseNewsSubscription extends BaseObject
37     implements org.apache.turbine.om.Retrievable
38 {
39     /** The Peer class */
40     private static final NewsSubscriptionPeer peer =
41         new NewsSubscriptionPeer();
42
43         
44     /** The value for the newsSubsId field */
45     private int newsSubsId;
46                                                 
47     /** The value for the newsSubsCode field */
48     private String JavaDoc newsSubsCode = "AUTO";
49                                           
50     /** The value for the status field */
51     private int status = 30;
52                                           
53     /** The value for the priority field */
54     private int priority = 30;
55       
56     /** The value for the issuedDate field */
57     private Date JavaDoc issuedDate;
58       
59     /** The value for the closedDate field */
60     private Date JavaDoc closedDate;
61       
62     /** The value for the email field */
63     private String JavaDoc email;
64                                           
65     /** The value for the projectId field */
66     private int projectId = 1000;
67                                           
68     /** The value for the productId field */
69     private int productId = 1000;
70                                                 
71     /** The value for the subject field */
72     private String JavaDoc subject = "---";
73       
74     /** The value for the notes field */
75     private String JavaDoc notes;
76       
77     /** The value for the created field */
78     private Date JavaDoc created;
79       
80     /** The value for the modified field */
81     private Date JavaDoc modified;
82       
83     /** The value for the createdBy field */
84     private String JavaDoc createdBy;
85       
86     /** The value for the modifiedBy field */
87     private String JavaDoc modifiedBy;
88   
89     
90     /**
91      * Get the NewsSubsId
92      *
93      * @return int
94      */

95     public int getNewsSubsId()
96     {
97         return newsSubsId;
98     }
99
100                         
101     /**
102      * Set the value of NewsSubsId
103      *
104      * @param v new value
105      */

106     public void setNewsSubsId(int v)
107     {
108     
109                   if (this.newsSubsId != v)
110               {
111             this.newsSubsId = v;
112             setModified(true);
113         }
114     
115           
116               }
117   
118     /**
119      * Get the NewsSubsCode
120      *
121      * @return String
122      */

123     public String JavaDoc getNewsSubsCode()
124     {
125         return newsSubsCode;
126     }
127
128                         
129     /**
130      * Set the value of NewsSubsCode
131      *
132      * @param v new value
133      */

134     public void setNewsSubsCode(String JavaDoc v)
135     {
136     
137                   if (!ObjectUtils.equals(this.newsSubsCode, v))
138               {
139             this.newsSubsCode = v;
140             setModified(true);
141         }
142     
143           
144               }
145   
146     /**
147      * Get the Status
148      *
149      * @return int
150      */

151     public int getStatus()
152     {
153         return status;
154     }
155
156                         
157     /**
158      * Set the value of Status
159      *
160      * @param v new value
161      */

162     public void setStatus(int v)
163     {
164     
165                   if (this.status != v)
166               {
167             this.status = v;
168             setModified(true);
169         }
170     
171           
172               }
173   
174     /**
175      * Get the Priority
176      *
177      * @return int
178      */

179     public int getPriority()
180     {
181         return priority;
182     }
183
184                         
185     /**
186      * Set the value of Priority
187      *
188      * @param v new value
189      */

190     public void setPriority(int v)
191     {
192     
193                   if (this.priority != v)
194               {
195             this.priority = v;
196             setModified(true);
197         }
198     
199           
200               }
201   
202     /**
203      * Get the IssuedDate
204      *
205      * @return Date
206      */

207     public Date JavaDoc getIssuedDate()
208     {
209         return issuedDate;
210     }
211
212                         
213     /**
214      * Set the value of IssuedDate
215      *
216      * @param v new value
217      */

218     public void setIssuedDate(Date JavaDoc v)
219     {
220     
221                   if (!ObjectUtils.equals(this.issuedDate, v))
222               {
223             this.issuedDate = v;
224             setModified(true);
225         }
226     
227           
228               }
229   
230     /**
231      * Get the ClosedDate
232      *
233      * @return Date
234      */

235     public Date JavaDoc getClosedDate()
236     {
237         return closedDate;
238     }
239
240                         
241     /**
242      * Set the value of ClosedDate
243      *
244      * @param v new value
245      */

246     public void setClosedDate(Date JavaDoc v)
247     {
248     
249                   if (!ObjectUtils.equals(this.closedDate, v))
250               {
251             this.closedDate = v;
252             setModified(true);
253         }
254     
255           
256               }
257   
258     /**
259      * Get the Email
260      *
261      * @return String
262      */

263     public String JavaDoc getEmail()
264     {
265         return email;
266     }
267
268                         
269     /**
270      * Set the value of Email
271      *
272      * @param v new value
273      */

274     public void setEmail(String JavaDoc v)
275     {
276     
277                   if (!ObjectUtils.equals(this.email, v))
278               {
279             this.email = v;
280             setModified(true);
281         }
282     
283           
284               }
285   
286     /**
287      * Get the ProjectId
288      *
289      * @return int
290      */

291     public int getProjectId()
292     {
293         return projectId;
294     }
295
296                               
297     /**
298      * Set the value of ProjectId
299      *
300      * @param v new value
301      */

302     public void setProjectId(int v) throws TorqueException
303     {
304     
305                   if (this.projectId != v)
306               {
307             this.projectId = v;
308             setModified(true);
309         }
310     
311                           
312                 if (aProject != null && !(aProject.getProjectId() == v))
313                 {
314             aProject = null;
315         }
316       
317               }
318   
319     /**
320      * Get the ProductId
321      *
322      * @return int
323      */

324     public int getProductId()
325     {
326         return productId;
327     }
328
329                               
330     /**
331      * Set the value of ProductId
332      *
333      * @param v new value
334      */

335     public void setProductId(int v) throws TorqueException
336     {
337     
338                   if (this.productId != v)
339               {
340             this.productId = v;
341             setModified(true);
342         }
343     
344                           
345                 if (aProduct != null && !(aProduct.getProductId() == v))
346                 {
347             aProduct = null;
348         }
349       
350               }
351   
352     /**
353      * Get the Subject
354      *
355      * @return String
356      */

357     public String JavaDoc getSubject()
358     {
359         return subject;
360     }
361
362                         
363     /**
364      * Set the value of Subject
365      *
366      * @param v new value
367      */

368     public void setSubject(String JavaDoc v)
369     {
370     
371                   if (!ObjectUtils.equals(this.subject, v))
372               {
373             this.subject = v;
374             setModified(true);
375         }
376     
377           
378               }
379   
380     /**
381      * Get the Notes
382      *
383      * @return String
384      */

385     public String JavaDoc getNotes()
386     {
387         return notes;
388     }
389
390                         
391     /**
392      * Set the value of Notes
393      *
394      * @param v new value
395      */

396     public void setNotes(String JavaDoc v)
397     {
398     
399                   if (!ObjectUtils.equals(this.notes, v))
400               {
401             this.notes = v;
402             setModified(true);
403         }
404     
405           
406               }
407   
408     /**
409      * Get the Created
410      *
411      * @return Date
412      */

413     public Date JavaDoc getCreated()
414     {
415         return created;
416     }
417
418                         
419     /**
420      * Set the value of Created
421      *
422      * @param v new value
423      */

424     public void setCreated(Date JavaDoc v)
425     {
426     
427                   if (!ObjectUtils.equals(this.created, v))
428               {
429             this.created = v;
430             setModified(true);
431         }
432     
433           
434               }
435   
436     /**
437      * Get the Modified
438      *
439      * @return Date
440      */

441     public Date JavaDoc getModified()
442     {
443         return modified;
444     }
445
446                         
447     /**
448      * Set the value of Modified
449      *
450      * @param v new value
451      */

452     public void setModified(Date JavaDoc v)
453     {
454     
455                   if (!ObjectUtils.equals(this.modified, v))
456               {
457             this.modified = v;
458             setModified(true);
459         }
460     
461           
462               }
463   
464     /**
465      * Get the CreatedBy
466      *
467      * @return String
468      */

469     public String JavaDoc getCreatedBy()
470     {
471         return createdBy;
472     }
473
474                         
475     /**
476      * Set the value of CreatedBy
477      *
478      * @param v new value
479      */

480     public void setCreatedBy(String JavaDoc v)
481     {
482     
483                   if (!ObjectUtils.equals(this.createdBy, v))
484               {
485             this.createdBy = v;
486             setModified(true);
487         }
488     
489           
490               }
491   
492     /**
493      * Get the ModifiedBy
494      *
495      * @return String
496      */

497     public String JavaDoc getModifiedBy()
498     {
499         return modifiedBy;
500     }
501
502                         
503     /**
504      * Set the value of ModifiedBy
505      *
506      * @param v new value
507      */

508     public void setModifiedBy(String JavaDoc v)
509     {
510     
511                   if (!ObjectUtils.equals(this.modifiedBy, v))
512               {
513             this.modifiedBy = v;
514             setModified(true);
515         }
516     
517           
518               }
519   
520       
521     
522                   
523     
524         private Project aProject;
525
526     /**
527      * Declares an association between this object and a Project object
528      *
529      * @param v Project
530      * @throws TorqueException
531      */

532     public void setProject(Project v) throws TorqueException
533     {
534             if (v == null)
535         {
536                           setProjectId( 1000);
537               }
538         else
539         {
540             setProjectId(v.getProjectId());
541         }
542             aProject = v;
543     }
544
545                                             
546     /**
547      * Get the associated Project object
548      *
549      * @return the associated Project object
550      * @throws TorqueException
551      */

552     public Project getProject() throws TorqueException
553     {
554         if (aProject == null && (this.projectId != 0))
555         {
556                           aProject = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectId));
557               
558             /* The following can be used instead of the line above to
559                guarantee the related object contains a reference
560                to this object, but this level of coupling
561                may be undesirable in many circumstances.
562                As it can lead to a db query with many results that may
563                never be used.
564                Project obj = ProjectPeer.retrieveByPK(this.projectId);
565                obj.addNewsSubscriptions(this);
566             */

567         }
568         return aProject;
569     }
570
571     /**
572      * Provides convenient way to set a relationship based on a
573      * ObjectKey, for example
574      * <code>bar.setFooKey(foo.getPrimaryKey())</code>
575      *
576          */

577     public void setProjectKey(ObjectKey key) throws TorqueException
578     {
579       
580                         setProjectId(((NumberKey) key).intValue());
581                   }
582     
583     
584                   
585     
586         private Product aProduct;
587
588     /**
589      * Declares an association between this object and a Product object
590      *
591      * @param v Product
592      * @throws TorqueException
593      */

594     public void setProduct(Product v) throws TorqueException
595     {
596             if (v == null)
597         {
598                           setProductId( 1000);
599               }
600         else
601         {
602             setProductId(v.getProductId());
603         }
604             aProduct = v;
605     }
606
607                                             
608     /**
609      * Get the associated Product object
610      *
611      * @return the associated Product object
612      * @throws TorqueException
613      */

614     public Product getProduct() throws TorqueException
615     {
616         if (aProduct == null && (this.productId != 0))
617         {
618                           aProduct = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.productId));
619               
620             /* The following can be used instead of the line above to
621                guarantee the related object contains a reference
622                to this object, but this level of coupling
623                may be undesirable in many circumstances.
624                As it can lead to a db query with many results that may
625                never be used.
626                Product obj = ProductPeer.retrieveByPK(this.productId);
627                obj.addNewsSubscriptions(this);
628             */

629         }
630         return aProduct;
631     }
632
633     /**
634      * Provides convenient way to set a relationship based on a
635      * ObjectKey, for example
636      * <code>bar.setFooKey(foo.getPrimaryKey())</code>
637      *
638          */

639     public void setProductKey(ObjectKey key) throws TorqueException
640     {
641       
642                         setProductId(((NumberKey) key).intValue());
643                   }
644        
645                 
646     private static List JavaDoc fieldNames = null;
647
648     /**
649      * Generate a list of field names.
650      *
651      * @return a list of field names
652      */

653     public static synchronized List JavaDoc getFieldNames()
654     {
655         if (fieldNames == null)
656         {
657             fieldNames = new ArrayList JavaDoc();
658               fieldNames.add("NewsSubsId");
659               fieldNames.add("NewsSubsCode");
660               fieldNames.add("Status");
661               fieldNames.add("Priority");
662               fieldNames.add("IssuedDate");
663               fieldNames.add("ClosedDate");
664               fieldNames.add("Email");
665               fieldNames.add("ProjectId");
666               fieldNames.add("ProductId");
667               fieldNames.add("Subject");
668               fieldNames.add("Notes");
669               fieldNames.add("Created");
670               fieldNames.add("Modified");
671               fieldNames.add("CreatedBy");
672               fieldNames.add("ModifiedBy");
673               fieldNames = Collections.unmodifiableList(fieldNames);
674         }
675         return fieldNames;
676     }
677
678     /**
679      * Retrieves a field from the object by name passed in as a String.
680      *
681      * @param name field name
682      * @return value
683      */

684     public Object JavaDoc getByName(String JavaDoc name)
685     {
686           if (name.equals("NewsSubsId"))
687         {
688                 return new Integer JavaDoc(getNewsSubsId());
689             }
690           if (name.equals("NewsSubsCode"))
691         {
692                 return getNewsSubsCode();
693             }
694           if (name.equals("Status"))
695         {
696                 return new Integer JavaDoc(getStatus());
697             }
698           if (name.equals("Priority"))
699         {
700                 return new Integer JavaDoc(getPriority());
701             }
702           if (name.equals("IssuedDate"))
703         {
704                 return getIssuedDate();
705             }
706           if (name.equals("ClosedDate"))
707         {
708                 return getClosedDate();
709             }
710           if (name.equals("Email"))
711         {
712                 return getEmail();
713             }
714           if (name.equals("ProjectId"))
715         {
716                 return new Integer JavaDoc(getProjectId());
717             }
718           if (name.equals("ProductId"))
719         {
720                 return new Integer JavaDoc(getProductId());
721             }
722           if (name.equals("Subject"))
723         {
724                 return getSubject();
725             }
726           if (name.equals("Notes"))
727         {
728                 return getNotes();
729             }
730           if (name.equals("Created"))
731         {
732                 return getCreated();
733             }
734           if (name.equals("Modified"))
735         {
736                 return getModified();
737             }
738           if (name.equals("CreatedBy"))
739         {
740                 return getCreatedBy();
741             }
742           if (name.equals("ModifiedBy"))
743         {
744                 return getModifiedBy();
745             }
746           return null;
747     }
748     
749     /**
750      * Retrieves a field from the object by name passed in
751      * as a String. The String must be one of the static
752      * Strings defined in this Class' Peer.
753      *
754      * @param name peer name
755      * @return value
756      */

757     public Object JavaDoc getByPeerName(String JavaDoc name)
758     {
759           if (name.equals(NewsSubscriptionPeer.NEWS_SUBS_ID))
760         {
761                 return new Integer JavaDoc(getNewsSubsId());
762             }
763           if (name.equals(NewsSubscriptionPeer.NEWS_SUBS_CODE))
764         {
765                 return getNewsSubsCode();
766             }
767           if (name.equals(NewsSubscriptionPeer.STATUS))
768         {
769                 return new Integer JavaDoc(getStatus());
770             }
771           if (name.equals(NewsSubscriptionPeer.PRIORITY))
772         {
773                 return new Integer JavaDoc(getPriority());
774             }
775           if (name.equals(NewsSubscriptionPeer.ISSUED_DATE))
776         {
777                 return getIssuedDate();
778             }
779           if (name.equals(NewsSubscriptionPeer.CLOSED_DATE))
780         {
781                 return getClosedDate();
782             }
783           if (name.equals(NewsSubscriptionPeer.EMAIL))
784         {
785                 return getEmail();
786             }
787           if (name.equals(NewsSubscriptionPeer.PROJECT_ID))
788         {
789                 return new Integer JavaDoc(getProjectId());
790             }
791           if (name.equals(NewsSubscriptionPeer.PRODUCT_ID))
792         {
793                 return new Integer JavaDoc(getProductId());
794             }
795           if (name.equals(NewsSubscriptionPeer.SUBJECT))
796         {
797                 return getSubject();
798             }
799           if (name.equals(NewsSubscriptionPeer.NOTES))
800         {
801                 return getNotes();
802             }
803           if (name.equals(NewsSubscriptionPeer.CREATED))
804         {
805                 return getCreated();
806             }
807           if (name.equals(NewsSubscriptionPeer.MODIFIED))
808         {
809                 return getModified();
810             }
811           if (name.equals(NewsSubscriptionPeer.CREATED_BY))
812         {
813                 return getCreatedBy();
814             }
815           if (name.equals(NewsSubscriptionPeer.MODIFIED_BY))
816         {
817                 return getModifiedBy();
818             }
819           return null;
820     }
821
822     /**
823      * Retrieves a field from the object by Position as specified
824      * in the xml schema. Zero-based.
825      *
826      * @param pos position in xml schema
827      * @return value
828      */

829     public Object JavaDoc getByPosition(int pos)
830     {
831             if (pos == 0)
832         {
833                 return new Integer JavaDoc(getNewsSubsId());
834             }
835               if (pos == 1)
836         {
837                 return getNewsSubsCode();
838             }
839               if (pos == 2)
840         {
841                 return new Integer JavaDoc(getStatus());
842             }
843               if (pos == 3)
844         {
845                 return new Integer JavaDoc(getPriority());
846             }
847               if (pos == 4)
848         {
849                 return getIssuedDate();
850             }
851               if (pos == 5)
852         {
853                 return getClosedDate();
854             }
855               if (pos == 6)
856         {
857                 return getEmail();
858             }
859               if (pos == 7)
860         {
861                 return new Integer JavaDoc(getProjectId());
862             }
863               if (pos == 8)
864         {
865                 return new Integer JavaDoc(getProductId());
866             }
867               if (pos == 9)
868         {
869                 return getSubject();
870             }
871               if (pos == 10)
872         {
873                 return getNotes();
874             }
875               if (pos == 11)
876         {
877                 return getCreated();
878             }
879               if (pos == 12)
880         {
881                 return getModified();
882             }
883               if (pos == 13)
884         {
885                 return getCreatedBy();
886             }
887               if (pos == 14)
888         {
889                 return getModifiedBy();
890             }
891               return null;
892     }
893      
894     /**
895      * Stores the object in the database. If the object is new,
896      * it inserts it; otherwise an update is performed.
897      *
898      * @throws Exception
899      */

900     public void save() throws Exception JavaDoc
901     {
902           save(NewsSubscriptionPeer.getMapBuilder()
903                 .getDatabaseMap().getName());
904       }
905
906     /**
907      * Stores the object in the database. If the object is new,
908      * it inserts it; otherwise an update is performed.
909        * Note: this code is here because the method body is
910      * auto-generated conditionally and therefore needs to be
911      * in this file instead of in the super class, BaseObject.
912        *
913      * @param dbName
914      * @throws TorqueException
915      */

916     public void save(String JavaDoc dbName) throws TorqueException
917     {
918         Connection JavaDoc con = null;
919           try
920         {
921             con = Transaction.begin(dbName);
922             save(con);
923             Transaction.commit(con);
924         }
925         catch(TorqueException e)
926         {
927             Transaction.safeRollback(con);
928             throw e;
929         }
930       }
931
932       /** flag to prevent endless save loop, if this object is referenced
933         by another object which falls in this transaction. */

934     private boolean alreadyInSave = false;
935       /**
936      * Stores the object in the database. If the object is new,
937      * it inserts it; otherwise an update is performed. This method
938      * is meant to be used as part of a transaction, otherwise use
939      * the save() method and the connection details will be handled
940      * internally
941      *
942      * @param con
943      * @throws TorqueException
944      */

945     public void save(Connection JavaDoc con) throws TorqueException
946     {
947           if (!alreadyInSave)
948         {
949             alreadyInSave = true;
950
951
952   
953             // If this object has been modified, then save it to the database.
954
if (isModified())
955             {
956                 if (isNew())
957                 {
958                     NewsSubscriptionPeer.doInsert((NewsSubscription) this, con);
959                     setNew(false);
960                 }
961                 else
962                 {
963                     NewsSubscriptionPeer.doUpdate((NewsSubscription) this, con);
964                 }
965             }
966
967                       alreadyInSave = false;
968         }
969       }
970
971                   
972       /**
973      * Set the PrimaryKey using ObjectKey.
974      *
975      * @param key newsSubsId ObjectKey
976      */

977     public void setPrimaryKey(ObjectKey key)
978         
979     {
980             setNewsSubsId(((NumberKey) key).intValue());
981         }
982
983     /**
984      * Set the PrimaryKey using a String.
985      *
986      * @param key
987      */

988     public void setPrimaryKey(String JavaDoc key)
989     {
990             setNewsSubsId(Integer.parseInt(key));
991         }
992
993   
994     /**
995      * returns an id that differentiates this object from others
996      * of its class.
997      */

998     public ObjectKey getPrimaryKey()
999     {
1000          return SimpleKey.keyFor(getNewsSubsId());
1001      }
1002 
1003    /**
1004     * get an id that differentiates this object from others
1005     * of its class.
1006     */

1007    public String JavaDoc getQueryKey()
1008    {
1009        if (getPrimaryKey() == null)
1010        {
1011            return "";
1012        }
1013        else
1014        {
1015            return getPrimaryKey().toString();
1016        }
1017    }
1018
1019    /**
1020     * set an id that differentiates this object from others
1021     * of its class.
1022     */

1023    public void setQueryKey(String JavaDoc key)
1024        throws TorqueException
1025    {
1026        setPrimaryKey(key);
1027    }
1028
1029    /**
1030     * Makes a copy of this object.
1031     * It creates a new object filling in the simple attributes.
1032       * It then fills all the association collections and sets the
1033     * related objects to isNew=true.
1034       */

1035      public NewsSubscription copy() throws TorqueException
1036    {
1037        return copyInto(new NewsSubscription());
1038    }
1039  
1040    protected NewsSubscription copyInto(NewsSubscription copyObj) throws TorqueException
1041    {
1042          copyObj.setNewsSubsId(newsSubsId);
1043          copyObj.setNewsSubsCode(newsSubsCode);
1044          copyObj.setStatus(status);
1045          copyObj.setPriority(priority);
1046          copyObj.setIssuedDate(issuedDate);
1047          copyObj.setClosedDate(closedDate);
1048          copyObj.setEmail(email);
1049          copyObj.setProjectId(projectId);
1050          copyObj.setProductId(productId);
1051          copyObj.setSubject(subject);
1052          copyObj.setNotes(notes);
1053          copyObj.setCreated(created);
1054          copyObj.setModified(modified);
1055          copyObj.setCreatedBy(createdBy);
1056          copyObj.setModifiedBy(modifiedBy);
1057  
1058                            copyObj.setNewsSubsId( 0);
1059                                                                                                
1060                return copyObj;
1061    }
1062
1063    /**
1064     * returns a peer instance associated with this om. Since Peer classes
1065     * are not to have any instance attributes, this method returns the
1066     * same instance for all member of this class. The method could therefore
1067     * be static, but this would prevent one from overriding the behavior.
1068     */

1069    public NewsSubscriptionPeer getPeer()
1070    {
1071        return peer;
1072    }
1073
1074    public String JavaDoc toString()
1075    {
1076        StringBuffer JavaDoc str = new StringBuffer JavaDoc();
1077        str.append("NewsSubscription:\n");
1078        str.append("NewsSubsId = ")
1079               .append(getNewsSubsId())
1080             .append("\n");
1081        str.append("NewsSubsCode = ")
1082               .append(getNewsSubsCode())
1083             .append("\n");
1084        str.append("Status = ")
1085               .append(getStatus())
1086             .append("\n");
1087        str.append("Priority = ")
1088               .append(getPriority())
1089             .append("\n");
1090        str.append("IssuedDate = ")
1091               .append(getIssuedDate())
1092             .append("\n");
1093        str.append("ClosedDate = ")
1094               .append(getClosedDate())
1095             .append("\n");
1096        str.append("Email = ")
1097               .append(getEmail())
1098             .append("\n");
1099        str.append("ProjectId = ")
1100               .append(getProjectId())
1101             .append("\n");
1102        str.append("ProductId = ")
1103               .append(getProductId())
1104             .append("\n");
1105        str.append("Subject = ")
1106               .append(getSubject())
1107             .append("\n");
1108        str.append("Notes = ")
1109               .append(getNotes())
1110             .append("\n");
1111        str.append("Created = ")
1112               .append(getCreated())
1113             .append("\n");
1114        str.append("Modified = ")
1115               .append(getModified())
1116             .append("\n");
1117        str.append("CreatedBy = ")
1118               .append(getCreatedBy())
1119             .append("\n");
1120        str.append("ModifiedBy = ")
1121               .append(getModifiedBy())
1122             .append("\n");
1123        return(str.toString());
1124    }
1125}
1126
Popular Tags