org.equanda.test.dm.server
Class CocoonManBean

java.lang.Object
  extended by org.equanda.test.dm.server.CocoonManBean
All Implemented Interfaces:
Serializable, EquandaEJB<Uoid>, ExceptionCodes, HasId<Uoid>, CocoonManBase, CocoonManEJB, CocoonManEJBLocal

public class CocoonManBean
extends Object
implements CocoonManEJB, CocoonManEJBLocal, ExceptionCodes, Serializable

CocoonMan

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
CocoonManBean()
           
 
Method Summary
 void addDatesToRemember(Date el)
           
 void addEquandaLinkManyCar(Uoid el)
           
 void addManyCar(CarEJB el)
           
 void addPreviousJob(String el)
           
 void ejbActivate()
           
 void ejbPassivate()
           
 byte[] getBlob()
           
 CarEJB getCar()
          an ajax select link
 String getClob()
           
 Date getDateOfBirth()
           
 Collection<Date> getDatesToRemember()
           
 boolean getEmployed()
           
 CocoonMan getEquanda()
           
 Uoid getEquandaLinkCar()
          an ajax select link
 Uoid getEquandaLinkHiddenCar()
           
 Uoid getEquandaLinkLazyInst()
          a combobox link
 Collection<Uoid> getEquandaLinkManyCars()
           
 Uoid getEquandaLinkPassport()
          a button select link
 Timestamp getEquandaModificationDate()
           
 String getEquandaName()
           
 String getEquandaStatus()
           
 String getEquandaType()
           
 long getEquandaVersion()
           
 String getFirstName()
           
 double getHeight()
           
 CarEJB getHiddenCar()
           
 int getHiddenInt()
           
 Uoid getId()
           
 String getLastName()
           
 LazyInstEJB getLazyInst()
          a combobox link
 Collection<CarEJB> getManyCars()
           
 int getNoOfChildren()
           
 PassportEJB getPassport()
          a button select link
 Collection<String> getPreviousJobs()
           
 String getProxy()
          Field added to assure possible name clashes don't cause troubles.
 Timestamp getSometime()
           
 String getWikiClob()
           
 String getWikiString()
           
 boolean hasDatesToRemember(Date el)
           
 boolean hasEquandaLinkManyCar(Uoid el)
           
 boolean hasManyCar(CarEJB el)
           
 boolean hasPreviousJob(String el)
           
 void init()
           
 void init(String type)
           
 void init(Uoid id)
           
 void initEntity(EquandaEntity entity)
           
 boolean isEmployed()
           
 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 removeDatesToRemember(Date el)
           
 void removeEntityBean()
           
 void removeEquandaLinkManyCar(Uoid el)
           
 void removeManyCar(CarEJB el)
           
 void removePreviousJob(String el)
           
 void setBlob(byte[] blob)
           
 void setCar(CarEJB car)
           
 void setClob(String clob)
           
 void setDateOfBirth(Date dateOfBirth)
           
 void setEmployed(boolean employed)
           
 void setEquandaLinkCar(Uoid car)
          an ajax select link
 void setEquandaLinkHiddenCar(Uoid hiddenCar)
           
 void setEquandaLinkLazyInst(Uoid lazyInst)
          a combobox link
 void setEquandaLinkPassport(Uoid passport)
          a button select link
 void setEquandaStatus(String status)
           
 void setFirstName(String firstName)
           
 void setHeight(double height)
           
 void setHiddenCar(CarEJB hiddenCar)
           
 void setHiddenInt(int hiddenInt)
           
 void setLastName(String lastName)
           
 void setLazyInst(LazyInstEJB lazyInst)
           
 void setNoOfChildren(int noOfChildren)
           
 void setPassport(PassportEJB passport)
           
 void setProxy(String proxy)
           
 void setSometime(Timestamp sometime)
           
 void setWikiClob(String wikiClob)
           
 void setWikiString(String wikiString)
           
 void TestAction()
           
 void updateEquanda(CocoonMan 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

CocoonManBean

public CocoonManBean()
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 CocoonManBase
Throws:
EquandaPersistenceException

init

public void init()
          throws EquandaPersistenceException
Specified by:
init in interface CocoonManBase
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 CocoonMan getEquanda()
Specified by:
getEquanda in interface CocoonManBase

updateEquanda

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

Specified by:
updateEquanda in interface CocoonManBase
Throws:
EquandaPersistenceException

getFirstName

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

setFirstName

public void setFirstName(String firstName)
                  throws EquandaPersistenceException
Specified by:
setFirstName in interface CocoonManBase
Throws:
EquandaPersistenceException

getLastName

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

setLastName

public void setLastName(String lastName)
                 throws EquandaPersistenceException
Specified by:
setLastName in interface CocoonManBase
Throws:
EquandaPersistenceException

getDateOfBirth

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Date getDateOfBirth()
Specified by:
getDateOfBirth in interface CocoonManBase

setDateOfBirth

public void setDateOfBirth(Date dateOfBirth)
                    throws EquandaPersistenceException
Specified by:
setDateOfBirth in interface CocoonManBase
Throws:
EquandaPersistenceException

getSometime

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Timestamp getSometime()
Specified by:
getSometime in interface CocoonManBase

setSometime

public void setSometime(Timestamp sometime)
                 throws EquandaPersistenceException
Specified by:
setSometime in interface CocoonManBase
Throws:
EquandaPersistenceException

getEmployed

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean getEmployed()
Specified by:
getEmployed in interface CocoonManBase

isEmployed

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean isEmployed()
Specified by:
isEmployed in interface CocoonManBase

setEmployed

public void setEmployed(boolean employed)
                 throws EquandaPersistenceException
Specified by:
setEmployed in interface CocoonManBase
Throws:
EquandaPersistenceException

getHeight

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

setHeight

public void setHeight(double height)
               throws EquandaPersistenceException
Specified by:
setHeight in interface CocoonManBase
Throws:
EquandaPersistenceException

getNoOfChildren

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

setNoOfChildren

public void setNoOfChildren(int noOfChildren)
                     throws EquandaPersistenceException
Specified by:
setNoOfChildren in interface CocoonManBase
Throws:
EquandaPersistenceException

getPreviousJobs

public Collection<String> getPreviousJobs()
Specified by:
getPreviousJobs in interface CocoonManBase

addPreviousJob

public void addPreviousJob(String el)
                    throws EquandaPersistenceException
Specified by:
addPreviousJob in interface CocoonManBase
Throws:
EquandaPersistenceException

removePreviousJob

public void removePreviousJob(String el)
                       throws EquandaPersistenceException
Specified by:
removePreviousJob in interface CocoonManBase
Throws:
EquandaPersistenceException

hasPreviousJob

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

getDatesToRemember

public Collection<Date> getDatesToRemember()
Specified by:
getDatesToRemember in interface CocoonManBase

addDatesToRemember

public void addDatesToRemember(Date el)
                        throws EquandaPersistenceException
Specified by:
addDatesToRemember in interface CocoonManBase
Throws:
EquandaPersistenceException

removeDatesToRemember

public void removeDatesToRemember(Date el)
                           throws EquandaPersistenceException
Specified by:
removeDatesToRemember in interface CocoonManBase
Throws:
EquandaPersistenceException

hasDatesToRemember

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasDatesToRemember(Date el)
Specified by:
hasDatesToRemember in interface CocoonManBase

getCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public CarEJB getCar()
an ajax select link

Specified by:
getCar in interface CocoonManBase

getEquandaLinkCar

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkCar()
an ajax select link

Specified by:
getEquandaLinkCar in interface CocoonManBase

setCar

public void setCar(CarEJB car)
            throws EquandaPersistenceException
Specified by:
setCar in interface CocoonManBase
Throws:
EquandaPersistenceException

setEquandaLinkCar

public void setEquandaLinkCar(Uoid car)
                       throws EquandaPersistenceException
an ajax select link

Specified by:
setEquandaLinkCar in interface CocoonManBase
Throws:
EquandaPersistenceException

getHiddenInt

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

setHiddenInt

public void setHiddenInt(int hiddenInt)
                  throws EquandaPersistenceException
Specified by:
setHiddenInt in interface CocoonManBase
Throws:
EquandaPersistenceException

getHiddenCar

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

getEquandaLinkHiddenCar

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

setHiddenCar

public void setHiddenCar(CarEJB hiddenCar)
                  throws EquandaPersistenceException
Specified by:
setHiddenCar in interface CocoonManBase
Throws:
EquandaPersistenceException

setEquandaLinkHiddenCar

public void setEquandaLinkHiddenCar(Uoid hiddenCar)
                             throws EquandaPersistenceException
Specified by:
setEquandaLinkHiddenCar in interface CocoonManBase
Throws:
EquandaPersistenceException

getManyCars

public Collection<CarEJB> getManyCars()
Specified by:
getManyCars in interface CocoonManBase

addManyCar

public void addManyCar(CarEJB el)
                throws EquandaPersistenceException
Specified by:
addManyCar in interface CocoonManBase
Throws:
EquandaPersistenceException

removeManyCar

public void removeManyCar(CarEJB el)
                   throws EquandaPersistenceException
Specified by:
removeManyCar in interface CocoonManBase
Throws:
EquandaPersistenceException

hasManyCar

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

getEquandaLinkManyCars

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

addEquandaLinkManyCar

public void addEquandaLinkManyCar(Uoid el)
                           throws EquandaPersistenceException
Specified by:
addEquandaLinkManyCar in interface CocoonManBase
Throws:
EquandaPersistenceException

removeEquandaLinkManyCar

public void removeEquandaLinkManyCar(Uoid el)
                              throws EquandaPersistenceException
Specified by:
removeEquandaLinkManyCar in interface CocoonManBase
Throws:
EquandaPersistenceException

hasEquandaLinkManyCar

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

getBlob

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public byte[] getBlob()
Specified by:
getBlob in interface CocoonManBase

setBlob

public void setBlob(byte[] blob)
             throws EquandaPersistenceException
Specified by:
setBlob in interface CocoonManBase
Throws:
EquandaPersistenceException

getClob

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

setClob

public void setClob(String clob)
             throws EquandaPersistenceException
Specified by:
setClob in interface CocoonManBase
Throws:
EquandaPersistenceException

getWikiString

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

setWikiString

public void setWikiString(String wikiString)
                   throws EquandaPersistenceException
Specified by:
setWikiString in interface CocoonManBase
Throws:
EquandaPersistenceException

getWikiClob

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

setWikiClob

public void setWikiClob(String wikiClob)
                 throws EquandaPersistenceException
Specified by:
setWikiClob in interface CocoonManBase
Throws:
EquandaPersistenceException

getPassport

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public PassportEJB getPassport()
a button select link

Specified by:
getPassport in interface CocoonManBase

getEquandaLinkPassport

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkPassport()
a button select link

Specified by:
getEquandaLinkPassport in interface CocoonManBase

setPassport

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

setEquandaLinkPassport

public void setEquandaLinkPassport(Uoid passport)
                            throws EquandaPersistenceException
a button select link

Specified by:
setEquandaLinkPassport in interface CocoonManBase
Throws:
EquandaPersistenceException

getProxy

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getProxy()
Field added to assure possible name clashes don't cause troubles.

Specified by:
getProxy in interface CocoonManBase

setProxy

public void setProxy(String proxy)
              throws EquandaPersistenceException
Specified by:
setProxy in interface CocoonManBase
Throws:
EquandaPersistenceException

getLazyInst

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public LazyInstEJB getLazyInst()
a combobox link

Specified by:
getLazyInst in interface CocoonManBase

getEquandaLinkLazyInst

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkLazyInst()
a combobox link

Specified by:
getEquandaLinkLazyInst in interface CocoonManBase

setLazyInst

public void setLazyInst(LazyInstEJB lazyInst)
                 throws EquandaPersistenceException
Specified by:
setLazyInst in interface CocoonManBase
Throws:
EquandaPersistenceException

setEquandaLinkLazyInst

public void setEquandaLinkLazyInst(Uoid lazyInst)
                            throws EquandaPersistenceException
a combobox link

Specified by:
setEquandaLinkLazyInst in interface CocoonManBase
Throws:
EquandaPersistenceException

TestAction

@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void TestAction()
                throws EquandaPersistenceException
Specified by:
TestAction in interface CocoonManBase
Throws:
EquandaPersistenceException

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 CocoonManBase
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.