org.equanda.test.dm.client
Class FootballPlayer

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

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

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

See Also:
Serialized Form

Field Summary
protected  boolean _obtainedTags
           
 
Fields inherited from class org.equanda.persistence.EquandaProxy
equandaModificationDate, equandaStatusModified, equandaType, equandaVersion, id, update
 
Constructor Summary
  FootballPlayer()
          Creator which is used to build value objects based on the real object.
protected FootballPlayer(EquandaFootballPlayerState proxy)
           
protected FootballPlayer(Uoid uoid, ObjectType equandaType, Timestamp equandaCreationDate, Timestamp equandaModificationDate, String equandaStatus, long equandaVersion, String name, String team, boolean goalkeeper, boolean defender, boolean midfielder, boolean striker)
           
 
Method Summary
 FootballPlayer equandaClone(boolean cloneUoid)
           
static FootballPlayer equandaCreate()
           
static FootballPlayer equandaCreate(String type)
           
 void equandaReset()
          Reset the proxy state.
 void equandaUpdate(boolean updateTypeFieldsOnly)
           
 boolean getDefender()
           
 Timestamp getEquandaCreationDate()
           
 String getEquandaStatus()
           
 boolean getGoalkeeper()
           
 boolean getMidfielder()
           
 String getName()
           
 boolean getStriker()
           
 Collection<String> getTags()
           
 String getTeam()
           
 boolean isDefender()
           
 boolean isDefenderModified()
           
 boolean isGoalkeeper()
           
 boolean isGoalkeeperModified()
           
 boolean isMidfielder()
           
 boolean isMidfielderModified()
           
 boolean isModified(boolean typeFieldsOnly)
           
 boolean isNameModified()
           
 boolean isStriker()
           
 boolean isStrikerModified()
           
 boolean isTagsModified()
           
 boolean isTeamModified()
           
 void removeEntityBean()
           
static List<FootballPlayer> selectAll()
           
static List<FootballPlayer> selectDefensePlayers()
           
static List<FootballPlayer> selectEquandaAll()
           
static List<FootballPlayer> selectFieldPlayers()
           
static FootballPlayer selectId(Uoid uoid)
           
 void setDefender(boolean value)
           
 void setEquandaStatus(String status)
           
 void setEquandaType(String type)
          Set the type of object which should be used.
 void setGoalkeeper(boolean value)
           
protected  void setId(Uoid uoid)
           
 void setMidfielder(boolean value)
           
 void setName(String value)
           
 void setStriker(boolean value)
           
 void setTags(Collection<String> value)
           
 void setTeam(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

_obtainedTags

protected boolean _obtainedTags
Constructor Detail

FootballPlayer

protected FootballPlayer(EquandaFootballPlayerState proxy)

FootballPlayer

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


FootballPlayer

protected FootballPlayer(Uoid uoid,
                         ObjectType equandaType,
                         Timestamp equandaCreationDate,
                         Timestamp equandaModificationDate,
                         String equandaStatus,
                         long equandaVersion,
                         String name,
                         String team,
                         boolean goalkeeper,
                         boolean defender,
                         boolean midfielder,
                         boolean striker)
Method Detail

equandaClone

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

setId

protected void setId(Uoid uoid)

updateInternalState

protected void updateInternalState()

equandaCreate

public static FootballPlayer equandaCreate()
                                    throws EquandaPersistenceException
Throws:
EquandaPersistenceException

equandaCreate

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

getEquandaStatus

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

setEquandaStatus

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

getEquandaCreationDate

public Timestamp getEquandaCreationDate()

getName

public String getName()
               throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setName

public void setName(String value)

isNameModified

public boolean isNameModified()

getTeam

public String getTeam()
               throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setTeam

public void setTeam(String value)

isTeamModified

public boolean isTeamModified()

getGoalkeeper

public boolean getGoalkeeper()
                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

isGoalkeeper

public boolean isGoalkeeper()

setGoalkeeper

public void setGoalkeeper(boolean value)

isGoalkeeperModified

public boolean isGoalkeeperModified()

getDefender

public boolean getDefender()
                    throws EquandaPersistenceException
Throws:
EquandaPersistenceException

isDefender

public boolean isDefender()

setDefender

public void setDefender(boolean value)

isDefenderModified

public boolean isDefenderModified()

getMidfielder

public boolean getMidfielder()
                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

isMidfielder

public boolean isMidfielder()

setMidfielder

public void setMidfielder(boolean value)

isMidfielderModified

public boolean isMidfielderModified()

getStriker

public boolean getStriker()
                   throws EquandaPersistenceException
Throws:
EquandaPersistenceException

isStriker

public boolean isStriker()

setStriker

public void setStriker(boolean value)

isStrikerModified

public boolean isStrikerModified()

getTags

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

setTags

public void setTags(Collection<String> value)

isTagsModified

public boolean isTagsModified()

equandaUpdate

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

removeEntityBean

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

selectId

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

selectAll

public static List<FootballPlayer> selectAll()
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectFieldPlayers

public static List<FootballPlayer> selectFieldPlayers()
                                               throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectDefensePlayers

public static List<FootballPlayer> selectDefensePlayers()
                                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaAll

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


Copyright © 2007-2008. All Rights Reserved.