Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.data
Class Customer  view Customer download Customer.java

java.lang.Object
  extended bycom.globalretailtech.data.DBRecord
      extended bycom.globalretailtech.data.Customer

public class Customer
extends DBRecord

Customer maintains basci customer information.


Field Summary
private  java.lang.String addr1
           
private  java.lang.String addr2
           
private  java.lang.String addr3
           
private  java.lang.String addr4
           
private  java.lang.String addr5
           
private static int[] col_types
           
private static java.lang.String[] columns
           
private  int customerid
           
private  java.lang.String customername
           
private  java.lang.String customerno
           
private  java.lang.String email
           
private  java.lang.String fax
           
private  java.lang.String phone
           
private static java.lang.String table
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
Customer()
           
 
Method Summary
 java.lang.String addr1()
           
 java.lang.String addr2()
           
 java.lang.String addr3()
           
 java.lang.String addr4()
           
 java.lang.String addr5()
           
 java.util.Vector columnObjects()
          Temporary base class implementations for xml import/export.
 DBRecord copy()
          Copies the record, used to create a new record during population.
 int customerID()
           
 java.lang.String customerName()
           
 java.lang.String customerNo()
           
 java.lang.String email()
           
 java.lang.String fax()
           
static java.lang.String getByCustomerNo(java.lang.String no)
           
static java.lang.String getByID(int id)
           
static java.lang.String getByPhoneNo(java.lang.String no)
           
 java.lang.String phone()
           
 void populate(java.sql.ResultSet rset)
          Called by fetch method in DBContext to move entity data from the result set to the record
 void relations()
          Called by fetch method in DBContext to service any entity relationships (child records).
 boolean save()
          Entity save.
 void setAddr1(java.lang.String value)
           
 void setAddr2(java.lang.String value)
           
 void setAddr3(java.lang.String value)
           
 void setAddr4(java.lang.String value)
           
 void setAddr5(java.lang.String value)
           
 void setCustomerID(int value)
           
 void setCustomerName(java.lang.String value)
           
 void setCustomerNo(java.lang.String value)
           
 void setEMail(java.lang.String value)
           
 void setFax(java.lang.String value)
           
 void setPhone(java.lang.String value)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toXML()
          Converts the entity to an XML string.
 boolean update()
          Entity update.
 
Methods inherited from class com.globalretailtech.data.DBRecord
getUpdateString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

private static java.lang.String table

columns

private static java.lang.String[] columns

col_types

private static int[] col_types

customerid

private int customerid

customerno

private java.lang.String customerno

customername

private java.lang.String customername

addr1

private java.lang.String addr1

addr2

private java.lang.String addr2

addr3

private java.lang.String addr3

addr4

private java.lang.String addr4

addr5

private java.lang.String addr5

phone

private java.lang.String phone

fax

private java.lang.String fax

email

private java.lang.String email
Constructor Detail

Customer

public Customer()
Method Detail

customerID

public int customerID()

customerNo

public java.lang.String customerNo()

customerName

public java.lang.String customerName()

addr1

public java.lang.String addr1()

addr2

public java.lang.String addr2()

addr3

public java.lang.String addr3()

addr4

public java.lang.String addr4()

addr5

public java.lang.String addr5()

phone

public java.lang.String phone()

fax

public java.lang.String fax()

email

public java.lang.String email()

setCustomerID

public void setCustomerID(int value)

setCustomerNo

public void setCustomerNo(java.lang.String value)

setCustomerName

public void setCustomerName(java.lang.String value)

setAddr1

public void setAddr1(java.lang.String value)

setAddr2

public void setAddr2(java.lang.String value)

setAddr3

public void setAddr3(java.lang.String value)

setAddr4

public void setAddr4(java.lang.String value)

setAddr5

public void setAddr5(java.lang.String value)

setPhone

public void setPhone(java.lang.String value)

setFax

public void setFax(java.lang.String value)

setEMail

public void setEMail(java.lang.String value)

getByID

public static java.lang.String getByID(int id)

getByCustomerNo

public static java.lang.String getByCustomerNo(java.lang.String no)

getByPhoneNo

public static java.lang.String getByPhoneNo(java.lang.String no)

copy

public DBRecord copy()
Description copied from class: DBRecord
Copies the record, used to create a new record during population.

Specified by:
copy in class DBRecord

populate

public void populate(java.sql.ResultSet rset)
Description copied from class: DBRecord
Called by fetch method in DBContext to move entity data from the result set to the record

Specified by:
populate in class DBRecord

save

public boolean save()
Description copied from class: DBRecord
Entity save.

Specified by:
save in class DBRecord

update

public boolean update()
Description copied from class: DBRecord
Entity update.

Specified by:
update in class DBRecord

toXML

public java.lang.String toXML()
Description copied from class: DBRecord
Converts the entity to an XML string.

Specified by:
toXML in class DBRecord

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


relations

public void relations()
Description copied from class: DBRecord
Called by fetch method in DBContext to service any entity relationships (child records).

Specified by:
relations in class DBRecord

columnObjects

public java.util.Vector columnObjects()
Description copied from class: DBRecord
Temporary base class implementations for xml import/export. Some of these will eventually become abstract.

Overrides:
columnObjects in class DBRecord