org.nuiton.topiatest
Class CompanyAbstract

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.nuiton.topiatest.CompanyAbstract
All Implemented Interfaces:
Serializable, org.nuiton.topia.persistence.TopiaEntity, Company
Direct Known Subclasses:
CompanyImpl

public abstract class CompanyAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements Company

See Also:
Serialized Form

Field Summary
protected  Collection<Department> department
          Nom de l'attribut en BD : department
protected  Collection<Employe> employe
          Nom de l'attribut en BD : employe
protected  String name
          Nom de l'attribut en BD : name
protected  int siret
          Nom de l'attribut en BD : siret
protected  Collection<Bill> storeBill
          Nom de l'attribut en BD : store
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface org.nuiton.topiatest.Company
PROPERTY_DEPARTMENT, PROPERTY_EMPLOYE, PROPERTY_NAME, PROPERTY_SIRET, PROPERTY_STORE_BILL
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
CompanyAbstract()
           
 
Method Summary
 void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
          accept : Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.
 void addAllDepartment(Collection<Department> department)
          addAllDepartment :
 void addAllEmploye(Collection<Employe> employe)
          addAllEmploye :
 void addAllStoreBill(Collection<Bill> storeBill)
          addAllStoreBill :
 void addDepartment(Department department)
          addDepartment :
 void addEmploye(Employe employe)
          addEmploye :
 void addStoreBill(Bill storeBill)
          addStoreBill :
 void clearDepartment()
          clearDepartment :
 void clearEmploye()
          clearEmploye :
 void clearStoreBill()
          clearStoreBill :
 List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
          getAggregate :
 List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
          getComposite :
 Collection<Department> getDepartment()
          getDepartment :
 Department getDepartmentByTopiaId(String topiaId)
          getDepartmentByTopiaId :
 Collection<Employe> getEmploye()
          getEmploye :
 Employe getEmployeByTopiaId(String topiaId)
          getEmployeByTopiaId :
 String getName()
          getName :
 int getSiret()
          getSiret :
 Collection<Bill> getStoreBill()
          getStoreBill :
 Bill getStoreBill(Store store)
          getStoreBill :
 Bill getStoreBillByTopiaId(String topiaId)
          getStoreBillByTopiaId :
 boolean isDepartmentEmpty()
          isDepartmentEmpty :
 boolean isEmployeEmpty()
          isEmployeEmpty :
 boolean isStoreBillEmpty()
          isStoreBillEmpty :
 void removeDepartment(Department department)
          removeDepartment :
 void removeEmploye(Employe employe)
          removeEmploye :
 void removeStoreBill(Bill storeBill)
          removeStoreBill :
 void setDepartment(Collection<Department> department)
          setDepartment :
 void setEmploye(Collection<Employe> employe)
          setEmploye :
 void setName(String name)
          setName :
 void setSiret(int siret)
          setSiret :
 void setStoreBill(Collection<Bill> storeBill)
          setStoreBill :
 int sizeDepartment()
          sizeDepartment :
 int sizeEmploye()
          sizeEmploye :
 int sizeStoreBill()
          sizeStoreBill :
 String toString()
          toString :
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

name

protected String name
Nom de l'attribut en BD : name


siret

protected int siret
Nom de l'attribut en BD : siret


employe

protected Collection<Employe> employe
Nom de l'attribut en BD : employe


storeBill

protected Collection<Bill> storeBill
Nom de l'attribut en BD : store


department

protected Collection<Department> department
Nom de l'attribut en BD : department

Constructor Detail

CompanyAbstract

public CompanyAbstract()
Method Detail

accept

public void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
            throws org.nuiton.topia.TopiaException
accept : Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.

Specified by:
accept in interface org.nuiton.topia.persistence.TopiaEntity
Parameters:
visitor - le visiteur de l'entite.
Throws:
org.nuiton.topia.TopiaException

setName

public void setName(String name)
setName :

Specified by:
setName in interface Company
Parameters:
name -

getName

public String getName()
getName :

Specified by:
getName in interface Company
Returns:
String

setSiret

public void setSiret(int siret)
setSiret :

Specified by:
setSiret in interface Company
Parameters:
siret -

getSiret

public int getSiret()
getSiret :

Specified by:
getSiret in interface Company
Returns:
int

addEmploye

public void addEmploye(Employe employe)
addEmploye :

Specified by:
addEmploye in interface Company
Parameters:
employe -

addAllEmploye

public void addAllEmploye(Collection<Employe> employe)
addAllEmploye :

Specified by:
addAllEmploye in interface Company
Parameters:
employe -

setEmploye

public void setEmploye(Collection<Employe> employe)
setEmploye :

Specified by:
setEmploye in interface Company
Parameters:
employe -

removeEmploye

public void removeEmploye(Employe employe)
removeEmploye :

Specified by:
removeEmploye in interface Company
Parameters:
employe -

clearEmploye

public void clearEmploye()
clearEmploye :

Specified by:
clearEmploye in interface Company

getEmploye

public Collection<Employe> getEmploye()
getEmploye :

Specified by:
getEmploye in interface Company
Returns:
Collection

getEmployeByTopiaId

public Employe getEmployeByTopiaId(String topiaId)
getEmployeByTopiaId :

Specified by:
getEmployeByTopiaId in interface Company
Parameters:
topiaId -
Returns:
Employe

sizeEmploye

public int sizeEmploye()
sizeEmploye :

Specified by:
sizeEmploye in interface Company
Returns:
int

isEmployeEmpty

public boolean isEmployeEmpty()
isEmployeEmpty :

Specified by:
isEmployeEmpty in interface Company
Returns:
boolean

addStoreBill

public void addStoreBill(Bill storeBill)
addStoreBill :

Specified by:
addStoreBill in interface Company
Parameters:
storeBill -

addAllStoreBill

public void addAllStoreBill(Collection<Bill> storeBill)
addAllStoreBill :

Specified by:
addAllStoreBill in interface Company
Parameters:
storeBill -

setStoreBill

public void setStoreBill(Collection<Bill> storeBill)
setStoreBill :

Specified by:
setStoreBill in interface Company
Parameters:
storeBill -

removeStoreBill

public void removeStoreBill(Bill storeBill)
removeStoreBill :

Specified by:
removeStoreBill in interface Company
Parameters:
storeBill -

clearStoreBill

public void clearStoreBill()
clearStoreBill :

Specified by:
clearStoreBill in interface Company

getStoreBill

public Collection<Bill> getStoreBill()
getStoreBill :

Specified by:
getStoreBill in interface Company
Returns:
Collection

getStoreBillByTopiaId

public Bill getStoreBillByTopiaId(String topiaId)
getStoreBillByTopiaId :

Specified by:
getStoreBillByTopiaId in interface Company
Parameters:
topiaId -
Returns:
Bill

getStoreBill

public Bill getStoreBill(Store store)
getStoreBill :

Specified by:
getStoreBill in interface Company
Parameters:
store -
Returns:
Bill

sizeStoreBill

public int sizeStoreBill()
sizeStoreBill :

Specified by:
sizeStoreBill in interface Company
Returns:
int

isStoreBillEmpty

public boolean isStoreBillEmpty()
isStoreBillEmpty :

Specified by:
isStoreBillEmpty in interface Company
Returns:
boolean

addDepartment

public void addDepartment(Department department)
addDepartment :

Specified by:
addDepartment in interface Company
Parameters:
department -

addAllDepartment

public void addAllDepartment(Collection<Department> department)
addAllDepartment :

Specified by:
addAllDepartment in interface Company
Parameters:
department -

setDepartment

public void setDepartment(Collection<Department> department)
setDepartment :

Specified by:
setDepartment in interface Company
Parameters:
department -

removeDepartment

public void removeDepartment(Department department)
removeDepartment :

Specified by:
removeDepartment in interface Company
Parameters:
department -

clearDepartment

public void clearDepartment()
clearDepartment :

Specified by:
clearDepartment in interface Company

getDepartment

public Collection<Department> getDepartment()
getDepartment :

Specified by:
getDepartment in interface Company
Returns:
Collection

getDepartmentByTopiaId

public Department getDepartmentByTopiaId(String topiaId)
getDepartmentByTopiaId :

Specified by:
getDepartmentByTopiaId in interface Company
Parameters:
topiaId -
Returns:
Department

sizeDepartment

public int sizeDepartment()
sizeDepartment :

Specified by:
sizeDepartment in interface Company
Returns:
int

isDepartmentEmpty

public boolean isDepartmentEmpty()
isDepartmentEmpty :

Specified by:
isDepartmentEmpty in interface Company
Returns:
boolean

getAggregate

public List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
                                                            throws org.nuiton.topia.TopiaException
getAggregate :

Specified by:
getAggregate in interface org.nuiton.topia.persistence.TopiaEntity
Overrides:
getAggregate in class org.nuiton.topia.persistence.TopiaEntityAbstract
Returns:
List
Throws:
org.nuiton.topia.TopiaException

getComposite

public List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
                                                            throws org.nuiton.topia.TopiaException
getComposite :

Specified by:
getComposite in interface org.nuiton.topia.persistence.TopiaEntity
Overrides:
getComposite in class org.nuiton.topia.persistence.TopiaEntityAbstract
Returns:
List
Throws:
org.nuiton.topia.TopiaException

toString

public String toString()
toString :

Overrides:
toString in class Object
Returns:
String


Copyright © 2004-2011 CodeLutin. All Rights Reserved.