com.activequant.domainmodel
Class PersistentEntity

java.lang.Object
  extended by com.activequant.domainmodel.PersistentEntity
Direct Known Subclasses:
Country, Instrument, MarketDataInstrument, Portfolio, Position, Region, SecurityChain, StreamEvent, TradeableInstrument, Venue

public abstract class PersistentEntity
extends Object


Constructor Summary
PersistentEntity()
           
PersistentEntity(String className)
           
 
Method Summary
protected  void clearMap()
           
 Object convertValueToType(Class<?> targetType, Object input)
          very underdeveloped converter.
 String getClassName()
           
 long getCreationTime()
           
 long getDeletionTime()
           
abstract  String getId()
           
 long getSnapshotTime()
           
 void initFromMap(Map<String,Object> inMap)
           
 String nullSafe(Object val)
           
 Map<String,Object> propertyMap()
           
 void setClassName(String className)
           
 void setCreationTime(long creationTime)
           
 void setDeletionTime(long deletionTime)
           
 void setSnapshotTime(long snapshotTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentEntity

public PersistentEntity()

PersistentEntity

public PersistentEntity(String className)
Method Detail

clearMap

protected void clearMap()

getClassName

public String getClassName()

getCreationTime

public long getCreationTime()

getDeletionTime

public long getDeletionTime()

getId

public abstract String getId()

getSnapshotTime

public long getSnapshotTime()
Returns:
when this value was stored, in ordinary milliseconds.

convertValueToType

public Object convertValueToType(Class<?> targetType,
                                 Object input)
very underdeveloped converter.

Parameters:
targetType -
input -
Returns:

initFromMap

public void initFromMap(Map<String,Object> inMap)
Parameters:
inMap - the incoming map will be cloned.

nullSafe

public String nullSafe(Object val)

propertyMap

public Map<String,Object> propertyMap()
Returns:
a clone of the property map.

setClassName

public void setClassName(String className)

setCreationTime

public void setCreationTime(long creationTime)

setDeletionTime

public void setDeletionTime(long deletionTime)

setSnapshotTime

public void setSnapshotTime(long snapshotTime)


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.