org.equanda.test.dm.client
Class Vehicle

java.lang.Object
  extended by org.equanda.persistence.EquandaProxy<Uoid,Vehicle>
      extended by org.equanda.test.dm.client.Vehicle
All Implemented Interfaces:
Serializable, HasId<Uoid>

public class Vehicle
extends EquandaProxy<Uoid,Vehicle>
implements Serializable

Proxy object for table Vehicle No constraints are being checked when modifying this object, this only happens when setting the value!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.equanda.persistence.EquandaProxy
equandaModificationDate, equandaStatusModified, equandaType, equandaVersion, id, update
 
Constructor Summary
  Vehicle()
          Creator which is used to build value objects based on the real object.
protected Vehicle(EquandaVehicleState proxy)
           
protected Vehicle(Uoid uoid, ObjectType equandaType, Timestamp equandaCreationDate, Timestamp equandaModificationDate, String equandaStatus, long equandaVersion, String name, int colourCode, int speed, double spanWidth, int radius, int wheelCount)
           
 
Method Summary
 Vehicle equandaClone(boolean cloneUoid)
           
static Vehicle equandaCreate()
           
static Vehicle equandaCreate(String type)
           
 void equandaReset()
          Reset the proxy state.
 void equandaUpdate(boolean updateTypeFieldsOnly)
           
 int getColourCode()
           
 Timestamp getEquandaCreationDate()
           
 String getEquandaStatus()
           
 String getName()
           
 int getRadius()
           
 double getSpanWidth()
           
 int getSpeed()
           
 int getWheelCount()
           
 boolean isColourCodeModified()
           
 boolean isModified(boolean typeFieldsOnly)
           
 boolean isNameModified()
           
 boolean isRadiusModified()
           
 boolean isSpanWidthModified()
           
 boolean isSpeedModified()
           
 boolean isWheelCountModified()
           
 void removeEntityBean()
           
static List<Vehicle> selectColour_AscendingName(int colourCode)
           
static List<Vehicle> selectColour_DescendingName(int colourCode)
           
static List<Vehicle> selectColourCode(int colourCode)
           
static Vehicle selectColourSingle(int colourCode)
           
static List<Vehicle> selectEquandaAll()
           
static Vehicle selectId(Uoid uoid)
           
static List<Vehicle> selectMultiOrder(String name)
           
static List<Vehicle> selectMultiOrderDesc(String name)
           
static List<Vehicle> selectName(String name)
           
static Vehicle selectNameStartingWith(String name)
           
static List<Vehicle> selectNoname()
           
static Vehicle selectSpeed(int speed)
           
static List<Vehicle> selectTestNotParameter(String name)
           
static Vehicle selectTestNotParameterSingle(String name)
           
 void setColourCode(int value)
           
 void setEquandaStatus(String status)
           
 void setEquandaType(String type)
          Set the type of object which should be used.
protected  void setId(Uoid uoid)
           
 void setName(String value)
           
 void setRadius(int value)
           
 void setSpanWidth(double value)
           
 void setSpeed(int value)
           
 void setWheelCount(int value)
           
protected  void updateInternalState()
           
 
Methods inherited from class org.equanda.persistence.EquandaProxy
equals, equandaClone, equandaUpdate, getEquandaModificationDate, getEquandaName, getEquandaType, getEquandaVersion, getId, hashCode, isEquandaModificationDateModified, isEquandaType, isModified, objectEquals, setEquandaUpdate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vehicle

protected Vehicle(EquandaVehicleState proxy)

Vehicle

public Vehicle()
Creator which is used to build value objects based on the real object. Should only be used server side, client side proxies should be obtained using equandaCreate()


Vehicle

protected Vehicle(Uoid uoid,
                  ObjectType equandaType,
                  Timestamp equandaCreationDate,
                  Timestamp equandaModificationDate,
                  String equandaStatus,
                  long equandaVersion,
                  String name,
                  int colourCode,
                  int speed,
                  double spanWidth,
                  int radius,
                  int wheelCount)
Method Detail

equandaClone

public Vehicle equandaClone(boolean cloneUoid)
Specified by:
equandaClone in class EquandaProxy<Uoid,Vehicle>

setId

protected void setId(Uoid uoid)

updateInternalState

protected void updateInternalState()

equandaCreate

public static Vehicle equandaCreate()
                             throws EquandaPersistenceException
Throws:
EquandaPersistenceException

equandaCreate

public static Vehicle equandaCreate(String type)
                             throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setEquandaType

public void setEquandaType(String type)
Set the type of object which should be used. This is a helper routine to allow using isEquandaType() for checking of object type. This method is only allowed for object building (not for objects which already exists on the server. When an invalid type identifier is specified, then later calls to read the type will throw IllegalStateException.

Specified by:
setEquandaType in class EquandaProxy<Uoid,Vehicle>
Parameters:
type - base type which will be used to build the actual object
Throws:
IllegalStateException

isModified

public boolean isModified(boolean typeFieldsOnly)
Specified by:
isModified in class EquandaProxy<Uoid,Vehicle>

getEquandaStatus

public String getEquandaStatus()
Specified by:
getEquandaStatus in class EquandaProxy<Uoid,Vehicle>

setEquandaStatus

public void setEquandaStatus(String status)
Specified by:
setEquandaStatus in class EquandaProxy<Uoid,Vehicle>

getEquandaCreationDate

public Timestamp getEquandaCreationDate()

getName

public String getName()
               throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setName

public void setName(String value)

isNameModified

public boolean isNameModified()

getColourCode

public int getColourCode()
                  throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setColourCode

public void setColourCode(int value)

isColourCodeModified

public boolean isColourCodeModified()

getSpeed

public int getSpeed()
             throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setSpeed

public void setSpeed(int value)

isSpeedModified

public boolean isSpeedModified()

getSpanWidth

public double getSpanWidth()
                    throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setSpanWidth

public void setSpanWidth(double value)

isSpanWidthModified

public boolean isSpanWidthModified()

getRadius

public int getRadius()
              throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setRadius

public void setRadius(int value)

isRadiusModified

public boolean isRadiusModified()

getWheelCount

public int getWheelCount()
                  throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setWheelCount

public void setWheelCount(int value)

isWheelCountModified

public boolean isWheelCountModified()

equandaUpdate

public void equandaUpdate(boolean updateTypeFieldsOnly)
                   throws EquandaPersistenceException
Specified by:
equandaUpdate in class EquandaProxy<Uoid,Vehicle>
Throws:
EquandaPersistenceException

equandaReset

public void equandaReset()
                  throws EquandaPersistenceException
Reset the proxy state. If the proxy was not modified, nothing happens, otherwise the state is retrieved from the server again.

Specified by:
equandaReset in class EquandaProxy<Uoid,Vehicle>
Throws:
EquandaPersistenceException - oops

removeEntityBean

public void removeEntityBean()
                      throws EquandaPersistenceException
Overrides:
removeEntityBean in class EquandaProxy<Uoid,Vehicle>
Throws:
EquandaPersistenceException

selectId

public static Vehicle selectId(Uoid uoid)
                        throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectName

public static List<Vehicle> selectName(String name)
                                throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectMultiOrder

public static List<Vehicle> selectMultiOrder(String name)
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectMultiOrderDesc

public static List<Vehicle> selectMultiOrderDesc(String name)
                                          throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectNoname

public static List<Vehicle> selectNoname()
                                  throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectNameStartingWith

public static Vehicle selectNameStartingWith(String name)
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectColourSingle

public static Vehicle selectColourSingle(int colourCode)
                                  throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectColour_AscendingName

public static List<Vehicle> selectColour_AscendingName(int colourCode)
                                                throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectColour_DescendingName

public static List<Vehicle> selectColour_DescendingName(int colourCode)
                                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectTestNotParameter

public static List<Vehicle> selectTestNotParameter(String name)
                                            throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectTestNotParameterSingle

public static Vehicle selectTestNotParameterSingle(String name)
                                            throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectColourCode

public static List<Vehicle> selectColourCode(int colourCode)
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectSpeed

public static Vehicle selectSpeed(int speed)
                           throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaAll

public static List<Vehicle> selectEquandaAll()
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException


Copyright © 2007-2008. All Rights Reserved.