org.equanda.test.dm.server
Class CompareBean
java.lang.Object
org.equanda.test.dm.server.CompareBean
- All Implemented Interfaces:
- Serializable, EquandaEJB<Uoid>, ExceptionCodes, HasId<Uoid>, CompareBase, CompareEJB, CompareEJBLocal
public class CompareBean
- extends Object
- implements CompareEJB, CompareEJBLocal, ExceptionCodes, Serializable
Compare
- See Also:
- Serialized Form
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompareBean
public CompareBean()
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,
int testImmutableInt,
double testImmutableDouble)
throws EquandaPersistenceException
- Specified by:
init
in interface CompareBase
- Throws:
EquandaPersistenceException
init
public void init(int testImmutableInt,
double testImmutableDouble)
throws EquandaPersistenceException
- Specified by:
init
in interface CompareBase
- 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 Compare getEquanda()
- Specified by:
getEquanda
in interface CompareBase
updateEquanda
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void updateEquanda(Compare proxy)
throws EquandaPersistenceException
- Internal routine to update based on a proxy object, update indicates whether all fields need setting
- Specified by:
updateEquanda
in interface CompareBase
- Throws:
EquandaPersistenceException
getBool1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean getBool1()
- Specified by:
getBool1
in interface CompareBase
isBool1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean isBool1()
- Specified by:
isBool1
in interface CompareBase
setBool1
public void setBool1(boolean bool1)
throws EquandaPersistenceException
- Specified by:
setBool1
in interface CompareBase
- Throws:
EquandaPersistenceException
getInt1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public int getInt1()
- Specified by:
getInt1
in interface CompareBase
setInt1
public void setInt1(int int1)
throws EquandaPersistenceException
- Specified by:
setInt1
in interface CompareBase
- Throws:
EquandaPersistenceException
getDouble1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public double getDouble1()
- Specified by:
getDouble1
in interface CompareBase
setDouble1
public void setDouble1(double double1)
throws EquandaPersistenceException
- Specified by:
setDouble1
in interface CompareBase
- Throws:
EquandaPersistenceException
getStr1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getStr1()
- Specified by:
getStr1
in interface CompareBase
setStr1
public void setStr1(String str1)
throws EquandaPersistenceException
- Specified by:
setStr1
in interface CompareBase
- Throws:
EquandaPersistenceException
getDat1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Date getDat1()
- Specified by:
getDat1
in interface CompareBase
setDat1
public void setDat1(Date dat1)
throws EquandaPersistenceException
- Specified by:
setDat1
in interface CompareBase
- Throws:
EquandaPersistenceException
getTime1
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Timestamp getTime1()
- Specified by:
getTime1
in interface CompareBase
setTime1
public void setTime1(Timestamp time1)
throws EquandaPersistenceException
- Specified by:
setTime1
in interface CompareBase
- Throws:
EquandaPersistenceException
getBool2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean getBool2()
- Specified by:
getBool2
in interface CompareBase
isBool2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean isBool2()
- Specified by:
isBool2
in interface CompareBase
setBool2
public void setBool2(boolean bool2)
throws EquandaPersistenceException
- Specified by:
setBool2
in interface CompareBase
- Throws:
EquandaPersistenceException
getInt2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public int getInt2()
- Specified by:
getInt2
in interface CompareBase
setInt2
public void setInt2(int int2)
throws EquandaPersistenceException
- Specified by:
setInt2
in interface CompareBase
- Throws:
EquandaPersistenceException
getDouble2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public double getDouble2()
- Specified by:
getDouble2
in interface CompareBase
setDouble2
public void setDouble2(double double2)
throws EquandaPersistenceException
- Specified by:
setDouble2
in interface CompareBase
- Throws:
EquandaPersistenceException
getStr2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public String getStr2()
- Specified by:
getStr2
in interface CompareBase
setStr2
public void setStr2(String str2)
throws EquandaPersistenceException
- Specified by:
setStr2
in interface CompareBase
- Throws:
EquandaPersistenceException
getDat2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Date getDat2()
- Specified by:
getDat2
in interface CompareBase
setDat2
public void setDat2(Date dat2)
throws EquandaPersistenceException
- Specified by:
setDat2
in interface CompareBase
- Throws:
EquandaPersistenceException
getTime2
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Timestamp getTime2()
- Specified by:
getTime2
in interface CompareBase
setTime2
public void setTime2(Timestamp time2)
throws EquandaPersistenceException
- Specified by:
setTime2
in interface CompareBase
- Throws:
EquandaPersistenceException
getDateFuture
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Date getDateFuture()
- Specified by:
getDateFuture
in interface CompareBase
setDateFuture
public void setDateFuture(Date dateFuture)
throws EquandaPersistenceException
- Specified by:
setDateFuture
in interface CompareBase
- Throws:
EquandaPersistenceException
getTimePast
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Timestamp getTimePast()
- Specified by:
getTimePast
in interface CompareBase
setTimePast
public void setTimePast(Timestamp timePast)
throws EquandaPersistenceException
- Specified by:
setTimePast
in interface CompareBase
- Throws:
EquandaPersistenceException
getTestImmutableInt
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public int getTestImmutableInt()
- Specified by:
getTestImmutableInt
in interface CompareBase
getTestImmutableDouble
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public double getTestImmutableDouble()
- Specified by:
getTestImmutableDouble
in interface CompareBase
getWheeledVehicle
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public VehicleEJB getWheeledVehicle()
- Specified by:
getWheeledVehicle
in interface CompareBase
getEquandaLinkWheeledVehicle
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Uoid getEquandaLinkWheeledVehicle()
- Specified by:
getEquandaLinkWheeledVehicle
in interface CompareBase
setWheeledVehicle
public void setWheeledVehicle(VehicleEJB wheeledVehicle)
throws EquandaPersistenceException
- Specified by:
setWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
setEquandaLinkWheeledVehicle
public void setEquandaLinkWheeledVehicle(Uoid wheeledVehicle)
throws EquandaPersistenceException
- Specified by:
setEquandaLinkWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
getWheeledVehicles
public Collection<VehicleEJB> getWheeledVehicles()
- Specified by:
getWheeledVehicles
in interface CompareBase
addWheeledVehicle
public void addWheeledVehicle(VehicleEJB el)
throws EquandaPersistenceException
- Specified by:
addWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
removeWheeledVehicle
public void removeWheeledVehicle(VehicleEJB el)
throws EquandaPersistenceException
- Specified by:
removeWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
hasWheeledVehicle
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasWheeledVehicle(VehicleEJB el)
- Specified by:
hasWheeledVehicle
in interface CompareBase
getEquandaLinkWheeledVehicles
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public Collection<Uoid> getEquandaLinkWheeledVehicles()
- Specified by:
getEquandaLinkWheeledVehicles
in interface CompareBase
addEquandaLinkWheeledVehicle
public void addEquandaLinkWheeledVehicle(Uoid el)
throws EquandaPersistenceException
- Specified by:
addEquandaLinkWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
removeEquandaLinkWheeledVehicle
public void removeEquandaLinkWheeledVehicle(Uoid el)
throws EquandaPersistenceException
- Specified by:
removeEquandaLinkWheeledVehicle
in interface CompareBase
- Throws:
EquandaPersistenceException
hasEquandaLinkWheeledVehicle
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public boolean hasEquandaLinkWheeledVehicle(Uoid el)
- Specified by:
hasEquandaLinkWheeledVehicle
in interface CompareBase
ejbActivate
public void ejbActivate()
ejbPassivate
public void ejbPassivate()
remove
@PermitAll
public void remove()
- Specified by:
remove
in interface EquandaEJB<Uoid>
removeEntityBean
@RolesAllowed(value={"LocalUser","LocalAdmin"})
public void removeEntityBean()
throws EquandaPersistenceException
- Specified by:
removeEntityBean
in interface CompareBase
- 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 compareobj2
- other object to compare
- Returns:
- true when bot objects are equal
Copyright © 2007-2008. All Rights Reserved.