01: package com.salmonllc.examples.example8;
02:
03: import com.salmonllc.sql.*;
04:
05: /**
06: * ContactQBE: A SOFIA generated model
07: */
08: public class ContactQBE extends QBEBuilder {
09:
10: //constants for qbe
11: public static final String CONTACT_FIRST_NAME = "contact.first_name";
12: public static final String CONTACT_LAST_NAME = "contact.last_name";
13: public static final String CONTACT_EMAIL_ADDRESS = "contact.email_address";
14:
15: //$CUSTOMVARS$
16: //Put custom instance variables between these comments, otherwise they will be overwritten if the model is regenerated
17:
18: //$ENDCUSTOMVARS$
19:
20: /**
21: * Create a new ContactQBE object.
22: */
23: public ContactQBE() {
24: super ();
25:
26: //add criteria columns
27: addCriteria(CONTACT_FIRST_NAME, CRITERIA_TYPE_COMPLEX,
28: CONTACT_FIRST_NAME);
29: addCriteria(CONTACT_LAST_NAME, CRITERIA_TYPE_COMPLEX,
30: CONTACT_LAST_NAME);
31: addCriteria(CONTACT_EMAIL_ADDRESS, CRITERIA_TYPE_COMPLEX,
32: CONTACT_EMAIL_ADDRESS);
33: }
34:
35: /**
36: * Retrieve the value of the contact.first_name column for the current row.
37: * @return String
38: * @throws DataStoreException
39: */
40: public String getContactFirstName() throws DataStoreException {
41: return getString(CONTACT_FIRST_NAME);
42: }
43:
44: /**
45: * Set the value of the contact.first_name column for the current row.
46: * @param newValue the new item value
47: * @throws DataStoreException
48: */
49: public void setContactFirstName(String newValue)
50: throws DataStoreException {
51: setString(CONTACT_FIRST_NAME, newValue);
52: }
53:
54: /**
55: * Retrieve the value of the contact.last_name column for the current row.
56: * @return String
57: * @throws DataStoreException
58: */
59: public String getContactLastName() throws DataStoreException {
60: return getString(CONTACT_LAST_NAME);
61: }
62:
63: /**
64: * Set the value of the contact.last_name column for the current row.
65: * @param newValue the new item value
66: * @throws DataStoreException
67: */
68: public void setContactLastName(String newValue)
69: throws DataStoreException {
70: setString(CONTACT_LAST_NAME, newValue);
71: }
72:
73: /**
74: * Retrieve the value of the contact.email_address column for the current row.
75: * @return String
76: * @throws DataStoreException
77: */
78: public String getContactEmailAddress() throws DataStoreException {
79: return getString(CONTACT_EMAIL_ADDRESS);
80: }
81:
82: /**
83: * Set the value of the contact.email_address column for the current row.
84: * @param newValue the new item value
85: * @throws DataStoreException
86: */
87: public void setContactEmailAddress(String newValue)
88: throws DataStoreException {
89: setString(CONTACT_EMAIL_ADDRESS, newValue);
90: }
91:
92: //$CUSTOMMETHODS$
93: //Put custom methods between these comments, otherwise they will be overwritten if the model is regenerated
94:
95: //$ENDCUSTOMMETHODS$
96:
97: }
|