object.common
Class Foq

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

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

Description
Foq Object
Infos : KLB - IPMC - 12/2005

See Also:
Serialized Form

Field Summary
private  java.lang.String ac_ref
          Corrective action reference
private  boolean action_corrective
          Is there a corrective action launch whith this Foq Object
private  boolean action_ok
          Efficacity of action
private  java.util.Date date
          Date of Foq creation
private  int foq_id
          ID of Foq Object
private  java.lang.String precision
          Precision concerning the type of Foq Object
private  java.lang.String probleme
          Problem observed
private  java.lang.String solution
          Action anwser to the problem observed
private  java.lang.String type_foq
          Type of the Foq Object
private  int user_dest_id
          ID of User Object for which the Foq Object is destinate
private  int user_id
          ID of User Object who describe the Foq Object
 
Constructor Summary
Foq()
          Default constructor
Foq(int foq_id)
          Constructs a Foq object from Foq ID
 
Method Summary
 java.lang.String getAc_ref()
          Corrective action reference
 boolean getAction_corrective()
          Is there a corrective action launch whith this Foq Object
 boolean getAction_ok()
          Efficacity of action
 java.util.Date getDate()
          Date of Foq creation
 int getFoq_id()
          ID of Foq Object
 java.lang.String getPrecision()
          Precision concerning the type of Foq Object
 java.lang.String getProbleme()
          Problem observed
 java.lang.String getSolution()
          Action anwser to the problem observed
 java.lang.String getType_foq()
          Type of the Foq Object
 int getUser_dest_id()
          ID of User Object for which the Foq Object is destinate
 int getUser_id()
          ID of User Object who describe the Foq Object
 void loadParams(java.util.Hashtable hashParams)
          This function loadParams from HTML form.
 boolean save()
          This function save or update this Foq Object into database
NB : (user_id, date, type_foq, probleme, solution) !
 void setAc_ref(java.lang.String ac_ref)
           
 void setAction_corrective(boolean action_corrective)
           
 void setAction_ok(boolean action_ok)
           
 void setDate(java.util.Date date)
           
 void setFoq_id(int foq_id)
           
 void setPrecision(java.lang.String precision)
           
 void setProbleme(java.lang.String probleme)
           
 void setSolution(java.lang.String solution)
           
 void setType_foq(java.lang.String type_foq)
           
 void setUser_dest_id(int user_dest_id)
           
 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

foq_id

private int foq_id
ID of Foq Object


user_id

private int user_id
ID of User Object who describe the Foq Object


user_dest_id

private int user_dest_id
ID of User Object for which the Foq Object is destinate


date

private java.util.Date date
Date of Foq creation


type_foq

private java.lang.String type_foq
Type of the Foq Object


precision

private java.lang.String precision
Precision concerning the type of Foq Object


probleme

private java.lang.String probleme
Problem observed


solution

private java.lang.String solution
Action anwser to the problem observed


action_ok

private boolean action_ok
Efficacity of action


action_corrective

private boolean action_corrective
Is there a corrective action launch whith this Foq Object


ac_ref

private java.lang.String ac_ref
Corrective action reference

Constructor Detail

Foq

public Foq()
Default constructor


Foq

public Foq(int foq_id)
Constructs a Foq object from Foq ID

Parameters:
foq_id - ID of existing Foq
Method Detail

getFoq_id

public int getFoq_id()
ID of Foq Object


setFoq_id

public void setFoq_id(int foq_id)

getUser_id

public int getUser_id()
ID of User Object who describe the Foq Object


setUser_id

public void setUser_id(int user_id)

getUser_dest_id

public int getUser_dest_id()
ID of User Object for which the Foq Object is destinate


setUser_dest_id

public void setUser_dest_id(int user_dest_id)

getDate

public java.util.Date getDate()
Date of Foq creation


setDate

public void setDate(java.util.Date date)

getType_foq

public java.lang.String getType_foq()
Type of the Foq Object


setType_foq

public void setType_foq(java.lang.String type_foq)

getPrecision

public java.lang.String getPrecision()
Precision concerning the type of Foq Object


setPrecision

public void setPrecision(java.lang.String precision)

getProbleme

public java.lang.String getProbleme()
Problem observed


setProbleme

public void setProbleme(java.lang.String probleme)

getSolution

public java.lang.String getSolution()
Action anwser to the problem observed


setSolution

public void setSolution(java.lang.String solution)

getAction_ok

public boolean getAction_ok()
Efficacity of action


setAction_ok

public void setAction_ok(boolean action_ok)

getAction_corrective

public boolean getAction_corrective()
Is there a corrective action launch whith this Foq Object


setAction_corrective

public void setAction_corrective(boolean action_corrective)

getAc_ref

public java.lang.String getAc_ref()
Corrective action reference


setAc_ref

public void setAc_ref(java.lang.String ac_ref)

loadParams

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

Parameters:
hashParams - Hashtable containing :
- user_id param
- date param
- type_foq param
- precision param
- probleme param
- solution param
- action_ok param
- action_corrective param
- ac_ref param
- comment param

save

public boolean save()
This function save or update this Foq Object into database
NB : (user_id, date, type_foq, probleme, solution) != (null && "" && 0)

Returns:
bool true if everything ok and false if error occur