org.equanda.test.dm.client
Class Choices

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

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

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

See Also:
Serialized Form

Field Summary
protected  boolean _obtainedCountries
           
 
Fields inherited from class org.equanda.persistence.EquandaProxy
equandaModificationDate, equandaStatusModified, equandaType, equandaVersion, id, update
 
Constructor Summary
  Choices()
          Creator which is used to build value objects based on the real object.
protected Choices(EquandaChoicesState proxy)
           
protected Choices(int immutableWeight, String immutableName)
           
protected Choices(Uoid uoid, ObjectType equandaType, Timestamp equandaCreationDate, Timestamp equandaModificationDate, String equandaStatus, long equandaVersion, String season, int monitorSize, int immutableWeight, String immutableName, String country2Letter, String country3Letter, String country3LetterShortField, String countryCodeString, int countryCodeValue)
           
 
Method Summary
 Choices equandaClone(boolean cloneUoid)
           
static Choices equandaCreate()
           
static Choices equandaCreate(String type)
           
 void equandaReset()
          Reset the proxy state.
 void equandaUpdate(boolean updateTypeFieldsOnly)
           
 Collection<String> getCountries()
           
 String getCountry2Letter()
          Simple field with 2 letter ISO country code.
 String getCountry3Letter()
          Simple field with 3 letter ISO country code.
 String getCountry3LetterShortField()
          Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.
 String getCountryCodeString()
          Simple field with a numeric ISO country code, stored as string.
 int getCountryCodeValue()
          Simple field with a numeric ISO country code, stored as an integer.
 Timestamp getEquandaCreationDate()
           
 String getEquandaStatus()
           
 String getImmutableName()
           
 int getImmutableWeight()
           
 int getMonitorSize()
           
 String getSeason()
           
 boolean isCountriesModified()
           
 boolean isCountry2LetterModified()
          Simple field with 2 letter ISO country code.
 boolean isCountry3LetterModified()
          Simple field with 3 letter ISO country code.
 boolean isCountry3LetterShortFieldModified()
          Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.
 boolean isCountryCodeStringModified()
          Simple field with a numeric ISO country code, stored as string.
 boolean isCountryCodeValueModified()
          Simple field with a numeric ISO country code, stored as an integer.
 boolean isImmutableNameModified()
           
 boolean isImmutableWeightModified()
           
 boolean isModified(boolean typeFieldsOnly)
           
 boolean isMonitorSizeModified()
           
 boolean isSeasonModified()
           
 void removeEntityBean()
           
static List<Choices> selectEquandaAll()
           
static Choices selectId(Uoid uoid)
           
 void setCountries(Collection<String> value)
           
 void setCountry2Letter(String value)
          Simple field with 2 letter ISO country code.
 void setCountry3Letter(String value)
          Simple field with 3 letter ISO country code.
 void setCountry3LetterShortField(String value)
          Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.
 void setCountryCodeString(String value)
          Simple field with a numeric ISO country code, stored as string.
 void setCountryCodeValue(int value)
          Simple field with a numeric ISO country code, stored as an integer.
 void setEquandaStatus(String status)
           
 void setEquandaType(String type)
          Set the type of object which should be used.
protected  void setId(Uoid uoid)
           
 void setImmutableName(String value)
           
 void setImmutableWeight(int value)
           
 void setMonitorSize(int value)
           
 void setSeason(String 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
 

Field Detail

_obtainedCountries

protected boolean _obtainedCountries
Constructor Detail

Choices

protected Choices(EquandaChoicesState proxy)

Choices

public Choices()
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()


Choices

protected Choices(int immutableWeight,
                  String immutableName)

Choices

protected Choices(Uoid uoid,
                  ObjectType equandaType,
                  Timestamp equandaCreationDate,
                  Timestamp equandaModificationDate,
                  String equandaStatus,
                  long equandaVersion,
                  String season,
                  int monitorSize,
                  int immutableWeight,
                  String immutableName,
                  String country2Letter,
                  String country3Letter,
                  String country3LetterShortField,
                  String countryCodeString,
                  int countryCodeValue)
Method Detail

equandaClone

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

setId

protected void setId(Uoid uoid)

updateInternalState

protected void updateInternalState()

equandaCreate

public static Choices equandaCreate()
                             throws EquandaPersistenceException
Throws:
EquandaPersistenceException

equandaCreate

public static Choices 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,Choices>
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,Choices>

getEquandaStatus

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

setEquandaStatus

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

getEquandaCreationDate

public Timestamp getEquandaCreationDate()

getSeason

public String getSeason()
                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setSeason

public void setSeason(String value)

isSeasonModified

public boolean isSeasonModified()

getMonitorSize

public int getMonitorSize()
                   throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setMonitorSize

public void setMonitorSize(int value)

isMonitorSizeModified

public boolean isMonitorSizeModified()

getImmutableWeight

public int getImmutableWeight()
                       throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setImmutableWeight

public void setImmutableWeight(int value)

isImmutableWeightModified

public boolean isImmutableWeightModified()

getImmutableName

public String getImmutableName()
                        throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setImmutableName

public void setImmutableName(String value)

isImmutableNameModified

public boolean isImmutableNameModified()

getCountries

public Collection<String> getCountries()
                                throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setCountries

public void setCountries(Collection<String> value)

isCountriesModified

public boolean isCountriesModified()

getCountry2Letter

public String getCountry2Letter()
                         throws EquandaPersistenceException
Simple field with 2 letter ISO country code.

Throws:
EquandaPersistenceException

setCountry2Letter

public void setCountry2Letter(String value)
Simple field with 2 letter ISO country code.


isCountry2LetterModified

public boolean isCountry2LetterModified()
Simple field with 2 letter ISO country code.


getCountry3Letter

public String getCountry3Letter()
                         throws EquandaPersistenceException
Simple field with 3 letter ISO country code.

Throws:
EquandaPersistenceException

setCountry3Letter

public void setCountry3Letter(String value)
Simple field with 3 letter ISO country code.


isCountry3LetterModified

public boolean isCountry3LetterModified()
Simple field with 3 letter ISO country code.


getCountry3LetterShortField

public String getCountry3LetterShortField()
                                   throws EquandaPersistenceException
Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.

Throws:
EquandaPersistenceException

setCountry3LetterShortField

public void setCountry3LetterShortField(String value)
Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.


isCountry3LetterShortFieldModified

public boolean isCountry3LetterShortFieldModified()
Simple field with 3 letter ISO country code, but for which the string field is too short which should make it impossible to store a valid value.


getCountryCodeString

public String getCountryCodeString()
                            throws EquandaPersistenceException
Simple field with a numeric ISO country code, stored as string.

Throws:
EquandaPersistenceException

setCountryCodeString

public void setCountryCodeString(String value)
Simple field with a numeric ISO country code, stored as string.


isCountryCodeStringModified

public boolean isCountryCodeStringModified()
Simple field with a numeric ISO country code, stored as string.


getCountryCodeValue

public int getCountryCodeValue()
                        throws EquandaPersistenceException
Simple field with a numeric ISO country code, stored as an integer.

Throws:
EquandaPersistenceException

setCountryCodeValue

public void setCountryCodeValue(int value)
Simple field with a numeric ISO country code, stored as an integer.


isCountryCodeValueModified

public boolean isCountryCodeValueModified()
Simple field with a numeric ISO country code, stored as an integer.


equandaUpdate

public void equandaUpdate(boolean updateTypeFieldsOnly)
                   throws EquandaPersistenceException
Specified by:
equandaUpdate in class EquandaProxy<Uoid,Choices>
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,Choices>
Throws:
EquandaPersistenceException - oops

removeEntityBean

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

selectId

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

selectEquandaAll

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


Copyright © 2007-2008. All Rights Reserved.