org.equanda.test.dm.server
Class OwnerBean

java.lang.Object
  extended by org.equanda.test.dm.server.OwnerBean
All Implemented Interfaces:
Serializable, EquandaEJB<Uoid>, ExceptionCodes, HasId<Uoid>, OwnerBase, OwnerEJB, OwnerEJBLocal

public class OwnerBean
extends Object
implements OwnerEJB, OwnerEJBLocal, ExceptionCodes, Serializable

Owner

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.equanda.persistence.ExceptionCodes
CME_DATA_HAS_BEEN_ALREADY_CHANGED, ECV_CANNOT_ADD_NULL_TO_MULTIPLE_FIELD, ECV_COMPARE_CONSTRAINT_NOT_SATISFIED, ECV_COMPARE_TYPE_CONSTRAINT_NOT_SATISFIED, ECV_CONSTRAINT_VIOLATION, ECV_COULD_NOT_TEST_CHOICES_USING_CLASS, ECV_DOWNCAST_CREATE_ERROR, ECV_DOWNCAST_FAILED_CANNOT_DOWNCAST_ROOT, ECV_DOWNCAST_SELECTOR_ERROR, ECV_FAILED_TO_CREATE_INCLUDED_VALUE, ECV_FAILED_TO_UPDATE_VALUE, ECV_FIELD_IS_REQUIRED, ECV_FIELD_IS_UNIQUE, ECV_IMMUTABLE_IF_OTHER_FIELD_IS_SET, ECV_INCLUDE_VALUE_HAS_WRONG_TYPE, ECV_INTERNAL_ERROR_ON_CREATE_INCLUDED_VALUE, ECV_INVALID_TABLE_TYPE, ECV_OTHERSIDE_EMBEDDED_FIELD_IMMUTABLE_ONCE_SET, ECV_VALUE_IS_NOT_ONE_OF_THE_CHOICES, UONA_OPERATION_NOT_ALLOWED, UPE_AUTO_FIELD_PROBLEM, UPE_CANNOT_CREATE_LAZYCOLLECTION, UPE_CANNOT_CREATE_SESSION_FACADE, UPE_CANNOT_INIT_BEAN, UPE_CASCADE_KEEP, UPE_FAILED_PROXY_REMOVE, UPE_FAILED_TO_UPDATE_VALUE, UPE_NULL_UOID_INVALID, UPE_OBJECT_NOT_FOUND, UPE_PERSISTENCE_EXCEPTION, UPE_TRYING_TO_UPDATE_OBJECT_WITH_UOID_NULL, UPE_UOID_NOT_FOUND
 
Constructor Summary
OwnerBean()
           
 
Method Summary
 void addCar(CarEJB el)
           
 void addCarsWichHeLike(CarEJB el)
           
 void addEquandaLinkCar(Uoid el)
           
 void addEquandaLinkCarsWichHeLike(Uoid el)
           
 void addEquandaLinkLazyInstEmbeddedMul(Uoid el)
           
 void addEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
           
 void addGarageCar(String el)
           
 void addLazyInstEmbeddedMul(LazyInstEJB el)
           
 void addLazyInstEmbeddedMulBi(LazyInstEJB el)
           
 void addLicencePlate(String el)
           
 void ejbActivate()
           
 void ejbPassivate()
           
 Collection<CarEJB> getCars()
           
 Collection<CarEJB> getCarsWichHeLikes()
           
 String getDreamCar()
           
 Owner getEquanda()
           
 Collection<Uoid> getEquandaLinkCars()
           
 Collection<Uoid> getEquandaLinkCarsWichHeLikes()
           
 Uoid getEquandaLinkLazyInstEmbedded()
           
 Uoid getEquandaLinkLazyInstEmbeddedBi()
           
 Collection<Uoid> getEquandaLinkLazyInstEmbeddedMul()
           
 Collection<Uoid> getEquandaLinkLazyInstEmbeddedMulBi()
           
 Uoid getEquandaLinkPassport()
           
 Uoid getEquandaLinkPreferedCar()
           
 Timestamp getEquandaModificationDate()
           
 String getEquandaName()
           
 String getEquandaStatus()
           
 String getEquandaType()
           
 long getEquandaVersion()
           
 Collection<String> getGarageCars()
           
 int getGarageCount()
           
 double getGarageM2()
           
 Uoid getId()
           
 LazyInstEJB getLazyInstEmbedded()
           
 LazyInstEJB getLazyInstEmbeddedBi()
           
 Collection<LazyInstEJB> getLazyInstEmbeddedMul()
           
 Collection<LazyInstEJB> getLazyInstEmbeddedMulBi()
           
 Collection<String> getLicencePlate()
           
 String getName()
           
 PassportEJB getPassport()
           
 CarEJB getPreferedCar()
           
 boolean hasCar(CarEJB el)
           
 boolean hasCarsWichHeLike(CarEJB el)
           
 boolean hasEquandaLinkCar(Uoid el)
           
 boolean hasEquandaLinkCarsWichHeLike(Uoid el)
           
 boolean hasEquandaLinkLazyInstEmbeddedMul(Uoid el)
           
 boolean hasEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
           
 boolean hasGarageCar(String el)
           
 boolean hasLazyInstEmbeddedMul(LazyInstEJB el)
           
 boolean hasLazyInstEmbeddedMulBi(LazyInstEJB el)
           
 boolean hasLicencePlate(String el)
           
 void init()
           
 void init(String type)
           
 void init(Uoid id)
           
 void initEntity(EquandaEntity entity)
           
 boolean isEquandaType(String type)
           
protected  boolean objectEquals(Object obj1, Object obj2)
          utility routine to test equality of objects without relying on one of them being not null.
 void remove()
           
 void removeCar(CarEJB el)
           
 void removeCarsWichHeLike(CarEJB el)
           
 void removeEntityBean()
           
 void removeEquandaLinkCar(Uoid el)
           
 void removeEquandaLinkCarsWichHeLike(Uoid el)
           
 void removeEquandaLinkLazyInstEmbeddedMul(Uoid el)
           
 void removeEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
           
 void removeGarageCar(String el)
           
 void removeLazyInstEmbeddedMul(LazyInstEJB el)
           
 void removeLazyInstEmbeddedMulBi(LazyInstEJB el)
           
 void removeLicencePlate(String el)
           
 void setDreamCar(String dreamCar)
           
 void setEquandaLinkLazyInstEmbedded(Uoid lazyInstEmbedded)
           
 void setEquandaLinkLazyInstEmbeddedBi(Uoid lazyInstEmbeddedBi)
           
 void setEquandaLinkPassport(Uoid passport)
           
 void setEquandaLinkPreferedCar(Uoid preferedCar)
           
 void setEquandaStatus(String status)
           
 void setGarageCount(int garageCount)
           
 void setGarageM2(double garageM2)
           
 void setLazyInstEmbedded(LazyInstEJB lazyInstEmbedded)
           
 void setLazyInstEmbeddedBi(LazyInstEJB lazyInstEmbeddedBi)
           
 void setName(String name)
           
 void setPassport(PassportEJB passport)
           
 void setPreferedCar(CarEJB preferedCar)
           
 void updateEquanda(Owner proxy)
          Internal routine to update based on a proxy object, update indicates whether all fields need setting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnerBean

public OwnerBean()
Method Detail

init

public void init(Uoid id)
          throws EquandaPersistenceException
Specified by:
init in interface EquandaEJB<Uoid>
Throws:
EquandaPersistenceException

initEntity

public void initEntity(EquandaEntity entity)
                throws EquandaPersistenceException
Specified by:
initEntity in interface EquandaEJB<Uoid>
Throws:
EquandaPersistenceException

init

public void init(String type)
          throws EquandaPersistenceException
Specified by:
init in interface OwnerBase
Throws:
EquandaPersistenceException

init

public void init()
          throws EquandaPersistenceException
Specified by:
init in interface OwnerBase
Throws:
EquandaPersistenceException

getId

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getId()
Specified by:
getId in interface HasId<Uoid>

getEquandaModificationDate

@PermitAll
public Timestamp getEquandaModificationDate()
Specified by:
getEquandaModificationDate in interface EquandaEJB<Uoid>

getEquandaVersion

@PermitAll
public long getEquandaVersion()

getEquandaStatus

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getEquandaStatus()
Specified by:
getEquandaStatus in interface EquandaEJB<Uoid>

setEquandaStatus

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void setEquandaStatus(String status)
Specified by:
setEquandaStatus in interface EquandaEJB<Uoid>

getEquandaType

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getEquandaType()
Specified by:
getEquandaType in interface EquandaEJB<Uoid>

isEquandaType

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean isEquandaType(String type)
Specified by:
isEquandaType in interface EquandaEJB<Uoid>

getEquandaName

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getEquandaName()
Specified by:
getEquandaName in interface EquandaEJB<Uoid>

getEquanda

@PermitAll
public Owner getEquanda()
Specified by:
getEquanda in interface OwnerBase

updateEquanda

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void updateEquanda(Owner proxy)
                   throws EquandaPersistenceException
Internal routine to update based on a proxy object, update indicates whether all fields need setting

Specified by:
updateEquanda in interface OwnerBase
Throws:
EquandaPersistenceException

getDreamCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getDreamCar()
Specified by:
getDreamCar in interface OwnerBase

setDreamCar

public void setDreamCar(String dreamCar)
                 throws EquandaPersistenceException
Specified by:
setDreamCar in interface OwnerBase
Throws:
EquandaPersistenceException

getGarageCars

public Collection<String> getGarageCars()
Specified by:
getGarageCars in interface OwnerBase

addGarageCar

public void addGarageCar(String el)
                  throws EquandaPersistenceException
Specified by:
addGarageCar in interface OwnerBase
Throws:
EquandaPersistenceException

removeGarageCar

public void removeGarageCar(String el)
                     throws EquandaPersistenceException
Specified by:
removeGarageCar in interface OwnerBase
Throws:
EquandaPersistenceException

hasGarageCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasGarageCar(String el)
Specified by:
hasGarageCar in interface OwnerBase

getCars

public Collection<CarEJB> getCars()
Specified by:
getCars in interface OwnerBase

addCar

public void addCar(CarEJB el)
            throws EquandaPersistenceException
Specified by:
addCar in interface OwnerBase
Throws:
EquandaPersistenceException

removeCar

public void removeCar(CarEJB el)
               throws EquandaPersistenceException
Specified by:
removeCar in interface OwnerBase
Throws:
EquandaPersistenceException

hasCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasCar(CarEJB el)
Specified by:
hasCar in interface OwnerBase

getEquandaLinkCars

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Collection<Uoid> getEquandaLinkCars()
Specified by:
getEquandaLinkCars in interface OwnerBase

addEquandaLinkCar

public void addEquandaLinkCar(Uoid el)
                       throws EquandaPersistenceException
Specified by:
addEquandaLinkCar in interface OwnerBase
Throws:
EquandaPersistenceException

removeEquandaLinkCar

public void removeEquandaLinkCar(Uoid el)
                          throws EquandaPersistenceException
Specified by:
removeEquandaLinkCar in interface OwnerBase
Throws:
EquandaPersistenceException

hasEquandaLinkCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasEquandaLinkCar(Uoid el)
Specified by:
hasEquandaLinkCar in interface OwnerBase

getPreferedCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public CarEJB getPreferedCar()
Specified by:
getPreferedCar in interface OwnerBase

getEquandaLinkPreferedCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkPreferedCar()
Specified by:
getEquandaLinkPreferedCar in interface OwnerBase

setPreferedCar

public void setPreferedCar(CarEJB preferedCar)
                    throws EquandaPersistenceException
Specified by:
setPreferedCar in interface OwnerBase
Throws:
EquandaPersistenceException

setEquandaLinkPreferedCar

public void setEquandaLinkPreferedCar(Uoid preferedCar)
                               throws EquandaPersistenceException
Specified by:
setEquandaLinkPreferedCar in interface OwnerBase
Throws:
EquandaPersistenceException

getCarsWichHeLikes

public Collection<CarEJB> getCarsWichHeLikes()
Specified by:
getCarsWichHeLikes in interface OwnerBase

addCarsWichHeLike

public void addCarsWichHeLike(CarEJB el)
                       throws EquandaPersistenceException
Specified by:
addCarsWichHeLike in interface OwnerBase
Throws:
EquandaPersistenceException

removeCarsWichHeLike

public void removeCarsWichHeLike(CarEJB el)
                          throws EquandaPersistenceException
Specified by:
removeCarsWichHeLike in interface OwnerBase
Throws:
EquandaPersistenceException

hasCarsWichHeLike

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasCarsWichHeLike(CarEJB el)
Specified by:
hasCarsWichHeLike in interface OwnerBase

getEquandaLinkCarsWichHeLikes

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Collection<Uoid> getEquandaLinkCarsWichHeLikes()
Specified by:
getEquandaLinkCarsWichHeLikes in interface OwnerBase

addEquandaLinkCarsWichHeLike

public void addEquandaLinkCarsWichHeLike(Uoid el)
                                  throws EquandaPersistenceException
Specified by:
addEquandaLinkCarsWichHeLike in interface OwnerBase
Throws:
EquandaPersistenceException

removeEquandaLinkCarsWichHeLike

public void removeEquandaLinkCarsWichHeLike(Uoid el)
                                     throws EquandaPersistenceException
Specified by:
removeEquandaLinkCarsWichHeLike in interface OwnerBase
Throws:
EquandaPersistenceException

hasEquandaLinkCarsWichHeLike

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasEquandaLinkCarsWichHeLike(Uoid el)
Specified by:
hasEquandaLinkCarsWichHeLike in interface OwnerBase

getName

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getName()
Specified by:
getName in interface OwnerBase

setName

public void setName(String name)
             throws EquandaPersistenceException
Specified by:
setName in interface OwnerBase
Throws:
EquandaPersistenceException

getPassport

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public PassportEJB getPassport()
Specified by:
getPassport in interface OwnerBase

getEquandaLinkPassport

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkPassport()
Specified by:
getEquandaLinkPassport in interface OwnerBase

setPassport

public void setPassport(PassportEJB passport)
                 throws EquandaPersistenceException
Specified by:
setPassport in interface OwnerBase
Throws:
EquandaPersistenceException

setEquandaLinkPassport

public void setEquandaLinkPassport(Uoid passport)
                            throws EquandaPersistenceException
Specified by:
setEquandaLinkPassport in interface OwnerBase
Throws:
EquandaPersistenceException

getLazyInstEmbeddedBi

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public LazyInstEJB getLazyInstEmbeddedBi()
Specified by:
getLazyInstEmbeddedBi in interface OwnerBase

getEquandaLinkLazyInstEmbeddedBi

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkLazyInstEmbeddedBi()
Specified by:
getEquandaLinkLazyInstEmbeddedBi in interface OwnerBase

setLazyInstEmbeddedBi

public void setLazyInstEmbeddedBi(LazyInstEJB lazyInstEmbeddedBi)
                           throws EquandaPersistenceException
Specified by:
setLazyInstEmbeddedBi in interface OwnerBase
Throws:
EquandaPersistenceException

setEquandaLinkLazyInstEmbeddedBi

public void setEquandaLinkLazyInstEmbeddedBi(Uoid lazyInstEmbeddedBi)
                                      throws EquandaPersistenceException
Specified by:
setEquandaLinkLazyInstEmbeddedBi in interface OwnerBase
Throws:
EquandaPersistenceException

getLazyInstEmbedded

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public LazyInstEJB getLazyInstEmbedded()
Specified by:
getLazyInstEmbedded in interface OwnerBase

getEquandaLinkLazyInstEmbedded

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkLazyInstEmbedded()
Specified by:
getEquandaLinkLazyInstEmbedded in interface OwnerBase

setLazyInstEmbedded

public void setLazyInstEmbedded(LazyInstEJB lazyInstEmbedded)
                         throws EquandaPersistenceException
Specified by:
setLazyInstEmbedded in interface OwnerBase
Throws:
EquandaPersistenceException

setEquandaLinkLazyInstEmbedded

public void setEquandaLinkLazyInstEmbedded(Uoid lazyInstEmbedded)
                                    throws EquandaPersistenceException
Specified by:
setEquandaLinkLazyInstEmbedded in interface OwnerBase
Throws:
EquandaPersistenceException

getLazyInstEmbeddedMulBi

public Collection<LazyInstEJB> getLazyInstEmbeddedMulBi()
Specified by:
getLazyInstEmbeddedMulBi in interface OwnerBase

addLazyInstEmbeddedMulBi

public void addLazyInstEmbeddedMulBi(LazyInstEJB el)
                              throws EquandaPersistenceException
Specified by:
addLazyInstEmbeddedMulBi in interface OwnerBase
Throws:
EquandaPersistenceException

removeLazyInstEmbeddedMulBi

public void removeLazyInstEmbeddedMulBi(LazyInstEJB el)
                                 throws EquandaPersistenceException
Specified by:
removeLazyInstEmbeddedMulBi in interface OwnerBase
Throws:
EquandaPersistenceException

hasLazyInstEmbeddedMulBi

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasLazyInstEmbeddedMulBi(LazyInstEJB el)
Specified by:
hasLazyInstEmbeddedMulBi in interface OwnerBase

getEquandaLinkLazyInstEmbeddedMulBi

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Collection<Uoid> getEquandaLinkLazyInstEmbeddedMulBi()
Specified by:
getEquandaLinkLazyInstEmbeddedMulBi in interface OwnerBase

addEquandaLinkLazyInstEmbeddedMulBi

public void addEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
                                         throws EquandaPersistenceException
Specified by:
addEquandaLinkLazyInstEmbeddedMulBi in interface OwnerBase
Throws:
EquandaPersistenceException

removeEquandaLinkLazyInstEmbeddedMulBi

public void removeEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
                                            throws EquandaPersistenceException
Specified by:
removeEquandaLinkLazyInstEmbeddedMulBi in interface OwnerBase
Throws:
EquandaPersistenceException

hasEquandaLinkLazyInstEmbeddedMulBi

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasEquandaLinkLazyInstEmbeddedMulBi(Uoid el)
Specified by:
hasEquandaLinkLazyInstEmbeddedMulBi in interface OwnerBase

getLazyInstEmbeddedMul

public Collection<LazyInstEJB> getLazyInstEmbeddedMul()
Specified by:
getLazyInstEmbeddedMul in interface OwnerBase

addLazyInstEmbeddedMul

public void addLazyInstEmbeddedMul(LazyInstEJB el)
                            throws EquandaPersistenceException
Specified by:
addLazyInstEmbeddedMul in interface OwnerBase
Throws:
EquandaPersistenceException

removeLazyInstEmbeddedMul

public void removeLazyInstEmbeddedMul(LazyInstEJB el)
                               throws EquandaPersistenceException
Specified by:
removeLazyInstEmbeddedMul in interface OwnerBase
Throws:
EquandaPersistenceException

hasLazyInstEmbeddedMul

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasLazyInstEmbeddedMul(LazyInstEJB el)
Specified by:
hasLazyInstEmbeddedMul in interface OwnerBase

getEquandaLinkLazyInstEmbeddedMul

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Collection<Uoid> getEquandaLinkLazyInstEmbeddedMul()
Specified by:
getEquandaLinkLazyInstEmbeddedMul in interface OwnerBase

addEquandaLinkLazyInstEmbeddedMul

public void addEquandaLinkLazyInstEmbeddedMul(Uoid el)
                                       throws EquandaPersistenceException
Specified by:
addEquandaLinkLazyInstEmbeddedMul in interface OwnerBase
Throws:
EquandaPersistenceException

removeEquandaLinkLazyInstEmbeddedMul

public void removeEquandaLinkLazyInstEmbeddedMul(Uoid el)
                                          throws EquandaPersistenceException
Specified by:
removeEquandaLinkLazyInstEmbeddedMul in interface OwnerBase
Throws:
EquandaPersistenceException

hasEquandaLinkLazyInstEmbeddedMul

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasEquandaLinkLazyInstEmbeddedMul(Uoid el)
Specified by:
hasEquandaLinkLazyInstEmbeddedMul in interface OwnerBase

getGarageCount

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public int getGarageCount()
Specified by:
getGarageCount in interface OwnerBase

setGarageCount

public void setGarageCount(int garageCount)
                    throws EquandaPersistenceException
Specified by:
setGarageCount in interface OwnerBase
Throws:
EquandaPersistenceException

getGarageM2

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public double getGarageM2()
Specified by:
getGarageM2 in interface OwnerBase

setGarageM2

public void setGarageM2(double garageM2)
                 throws EquandaPersistenceException
Specified by:
setGarageM2 in interface OwnerBase
Throws:
EquandaPersistenceException

getLicencePlate

public Collection<String> getLicencePlate()
Specified by:
getLicencePlate in interface OwnerBase

addLicencePlate

public void addLicencePlate(String el)
                     throws EquandaPersistenceException
Specified by:
addLicencePlate in interface OwnerBase
Throws:
EquandaPersistenceException

removeLicencePlate

public void removeLicencePlate(String el)
                        throws EquandaPersistenceException
Specified by:
removeLicencePlate in interface OwnerBase
Throws:
EquandaPersistenceException

hasLicencePlate

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasLicencePlate(String el)
Specified by:
hasLicencePlate in interface OwnerBase

ejbActivate

public void ejbActivate()

ejbPassivate

public void ejbPassivate()

remove

@PermitAll
public void remove()
Specified by:
remove in interface EquandaEJB<Uoid>

removeEntityBean

@RolesAllowed(value="LocalUser")
public void removeEntityBean()
                      throws EquandaPersistenceException
Specified by:
removeEntityBean in interface OwnerBase
Throws:
EquandaPersistenceException

objectEquals

protected boolean objectEquals(Object obj1,
                               Object obj2)
utility routine to test equality of objects without relying on one of them being not null.

Parameters:
obj1 - one of the objects to compare
obj2 - other object to compare
Returns:
true when bot objects are equal


Copyright © 2007-2008. All Rights Reserved.