Package org.marketcetera.strategy.dao
Class PersistentStrategyInstance
- java.lang.Object
-
- org.marketcetera.persist.EntityBase
-
- org.marketcetera.strategy.dao.PersistentStrategyInstance
-
- All Implemented Interfaces:
Serializable,HasCurrentUser,HasUser,SummaryEntityBase,StrategyInstance
@Entity(name="StrategyInstance") public class PersistentStrategyInstance extends EntityBase implements StrategyInstance, HasUser
Identifies a unique strategy instance.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Stringfilenameindicates the server-local file which contains the strategyprivate Stringhashindicates the strategy hash valueprivate Stringnameuniquely describes the strategyprivate Stringnonceuniquely identifies a strategy upload requestprivate static longserialVersionUIDprivate Datestarteddate strategy was startedprivate StrategyStatusstatusdescribes the state of a loaded strategyprivate PersistentUseruseruser which owns this strategy-
Fields inherited from class org.marketcetera.persist.EntityBase
UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description PersistentStrategyInstance()Create a new PersistentStrategyInstance instance.PersistentStrategyInstance(StrategyInstance inStrategyInstance)Create a new PersistentStrategyInstance instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilename()Get the filename value.StringgetHash()Get the hash value.StringgetName()Get the name value.StringgetNonce()Get the nonce value.DategetStarted()Get the started value.StrategyStatusgetStatus()Get the status value.UsergetUser()Get the user value.voidsetFilename(String inFilename)Set the filename value.voidsetHash(String inHash)Set the hash value.voidsetName(String inName)Set the name value.voidsetNonce(String inNonce)Set the nonce value.voidsetStarted(Date inStarted)Set the started value.voidsetStatus(StrategyStatus inStatus)Set the status value.voidsetUser(User inUser)Set the user value.StringtoString()-
Methods inherited from class org.marketcetera.persist.EntityBase
getId, getLastUpdated, getUpdateCount, setId, setLastUpdated, setUpdateCount
-
-
-
-
Field Detail
-
user
private PersistentUser user
user which owns this strategy
-
name
private String name
uniquely describes the strategy
-
filename
private String filename
indicates the server-local file which contains the strategy
-
hash
private String hash
indicates the strategy hash value
-
nonce
private String nonce
uniquely identifies a strategy upload request
-
started
private Date started
date strategy was started
-
status
private StrategyStatus status
describes the state of a loaded strategy
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistentStrategyInstance
public PersistentStrategyInstance()
Create a new PersistentStrategyInstance instance.
-
PersistentStrategyInstance
public PersistentStrategyInstance(StrategyInstance inStrategyInstance)
Create a new PersistentStrategyInstance instance.- Parameters:
inStrategyInstance- aStrategyInstancevalue
-
-
Method Detail
-
getUser
public User getUser()
Get the user value.
-
setUser
public void setUser(User inUser)
Set the user value.
-
getName
public String getName()
Get the name value.- Specified by:
getNamein interfaceStrategyInstance- Returns:
- a
Stringvalue
-
setName
public void setName(String inName)
Set the name value.- Specified by:
setNamein interfaceStrategyInstance- Parameters:
inName- aStringvalue
-
getFilename
public String getFilename()
Get the filename value.- Specified by:
getFilenamein interfaceStrategyInstance- Returns:
- a
Stringvalue
-
setFilename
public void setFilename(String inFilename)
Set the filename value.- Specified by:
setFilenamein interfaceStrategyInstance- Parameters:
inFilename- aStringvalue
-
getHash
public String getHash()
Get the hash value.- Specified by:
getHashin interfaceStrategyInstance- Returns:
- a
Stringvalue
-
setHash
public void setHash(String inHash)
Set the hash value.- Specified by:
setHashin interfaceStrategyInstance- Parameters:
inHash- aStringvalue
-
getNonce
public String getNonce()
Get the nonce value.- Specified by:
getNoncein interfaceStrategyInstance- Returns:
- a
Stringvalue
-
setNonce
public void setNonce(String inNonce)
Set the nonce value.- Specified by:
setNoncein interfaceStrategyInstance- Parameters:
inNonce- aStringvalue
-
getStarted
public Date getStarted()
Get the started value.- Specified by:
getStartedin interfaceStrategyInstance- Returns:
- a
java.util.Datevalue
-
setStarted
public void setStarted(Date inStarted)
Set the started value.- Specified by:
setStartedin interfaceStrategyInstance- Parameters:
inStarted- ajava.util.Datevalue
-
getStatus
public StrategyStatus getStatus()
Get the status value.- Specified by:
getStatusin interfaceStrategyInstance- Returns:
- an
org.marketcetera.strategy.StrategyStatusvalue
-
setStatus
public void setStatus(StrategyStatus inStatus)
Set the status value.- Specified by:
setStatusin interfaceStrategyInstance- Parameters:
inStatus- anorg.marketcetera.strategy.StrategyStatusvalue
-
toString
public String toString()
- Overrides:
toStringin classEntityBase
-
-