object.common
Class Contact_client

java.lang.Object
  extended by object.common.Contact_client
All Implemented Interfaces:
java.io.Serializable

public class Contact_client
extends java.lang.Object
implements java.io.Serializable

Description
Contact_client object
Infos : KLB - IPMC - 12/2005

See Also:
Serialized Form

Field Summary
private  int client_id
          ID of User Object who is the client
private  int contact_client_id
          ID of Contact_client Object
private  java.util.Date date
          Date of contact client
private  java.lang.String demande
          Client question or problem
private  java.lang.String reponse
          Answer done to the client
private  java.lang.String type_contact
          Type contact (mail or phone)
private  int user_id
          ID of User object who get the contatc whith the client
 
Constructor Summary
Contact_client()
          Default constructor
Contact_client(int contact_client_id)
          Constructs a Contact_client object from Contact_client ID
 
Method Summary
 int getClient_id()
          ID of User Object who is the client
 int getContact_client_id()
          ID of Contact_client Object
 java.util.Date getDate()
          Date of contact client
 java.lang.String getDemande()
          Client question or problem
 java.lang.String getReponse()
          Answer done to the client
 java.lang.String getType_contact()
          Type contact (mail or phone)
 int getUser_id()
          ID of User object who get the contatc whith the client
 void loadParams(java.util.Hashtable hashParams)
          This function loadParams from HTML form
 boolean save()
          This function save this Contact_client Object into database Note that all attributes must be not null and not empty
 void setClient_id(int client_id)
           
 void setContact_client_id(int contact_client_id)
           
 void setDate(java.util.Date date)
           
 void setDemande(java.lang.String demande)
           
 void setReponse(java.lang.String reponse)
           
 void setType_contact(java.lang.String type_contact)
           
 void setUser_id(int user_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contact_client_id

private int contact_client_id
ID of Contact_client Object


client_id

private int client_id
ID of User Object who is the client


user_id

private int user_id
ID of User object who get the contatc whith the client


date

private java.util.Date date
Date of contact client


type_contact

private java.lang.String type_contact
Type contact (mail or phone)


demande

private java.lang.String demande
Client question or problem


reponse

private java.lang.String reponse
Answer done to the client

Constructor Detail

Contact_client

public Contact_client()
Default constructor


Contact_client

public Contact_client(int contact_client_id)
Constructs a Contact_client object from Contact_client ID

Parameters:
contact_client_id - ID of existing Contact_client
Method Detail

getContact_client_id

public int getContact_client_id()
ID of Contact_client Object


setContact_client_id

public void setContact_client_id(int contact_client_id)

getClient_id

public int getClient_id()
ID of User Object who is the client


setClient_id

public void setClient_id(int client_id)

getUser_id

public int getUser_id()
ID of User object who get the contatc whith the client


setUser_id

public void setUser_id(int user_id)

getDate

public java.util.Date getDate()
Date of contact client


setDate

public void setDate(java.util.Date date)

getType_contact

public java.lang.String getType_contact()
Type contact (mail or phone)


setType_contact

public void setType_contact(java.lang.String type_contact)

getDemande

public java.lang.String getDemande()
Client question or problem


setDemande

public void setDemande(java.lang.String demande)

getReponse

public java.lang.String getReponse()
Answer done to the client


setReponse

public void setReponse(java.lang.String reponse)

loadParams

public void loadParams(java.util.Hashtable hashParams)
This function loadParams from HTML form

Parameters:
hashParams - Hashtable contains
- client_id param
- user_id param
- date param
- type_contact param
- demande param
- reponse param

save

public boolean save()
This function save this Contact_client Object into database Note that all attributes must be not null and not empty

Returns:
boolean true if everything ok, false if not.