com.activequant.dao
Interface IEntityDao<T extends PersistentEntity>

All Known Subinterfaces:
ICountryDao, IInstrumentDao, IMarketDataInstrumentDao, IPortfolioDao, IPositionDao, IRegionDao, ISecurityChainDao, ITradeableInstrumentDao, IVenueDao
All Known Implementing Classes:
CountryDao, EntityDao, InstrumentDao, MarketDataInstrumentDao, PortfolioDao, PositionDao, RegionDao, SecurityChainDao, TradeableInstrumentDao, VenueDao

public interface IEntityDao<T extends PersistentEntity>


Method Summary
 int count()
           
 int countForAttributeValue(String key, Double dValue)
           
 int countForAttributeValue(String key, Long lValue)
           
 int countForAttributeValue(String key, String sValue)
           
 void create(T t)
           
 void delete(T t)
           
 String[] findIDs(int startIndex, int endIndex)
           
 String[] findIDs(String key, Double dValue)
           
 String[] findIDs(String key, Long lValue)
           
 String[] findIDs(String key, String sValue)
           
 String[] findIDsWhereCreationDateBetween(TimeStamp startTs, TimeStamp endTs)
           
 T load(String primaryKey)
           
 T[] loadAll()
           
 String[] loadIDs()
           
 void update(T t)
           
 

Method Detail

load

T load(String primaryKey)
                                throws DaoException
Throws:
DaoException

loadAll

T[] loadAll()
                                     throws DaoException
Throws:
DaoException

loadIDs

String[] loadIDs()
                 throws DaoException
Throws:
DaoException

create

void create(T t)
            throws DaoException
Throws:
DaoException

delete

void delete(T t)
            throws DaoException
Throws:
DaoException

update

void update(T t)
            throws DaoException
Throws:
DaoException

findIDs

String[] findIDs(String key,
                 String sValue)

findIDs

String[] findIDs(String key,
                 Double dValue)

findIDs

String[] findIDs(String key,
                 Long lValue)

findIDs

String[] findIDs(int startIndex,
                 int endIndex)

count

int count()

countForAttributeValue

int countForAttributeValue(String key,
                           String sValue)

countForAttributeValue

int countForAttributeValue(String key,
                           Double dValue)

countForAttributeValue

int countForAttributeValue(String key,
                           Long lValue)

findIDsWhereCreationDateBetween

String[] findIDsWhereCreationDateBetween(TimeStamp startTs,
                                         TimeStamp endTs)


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.