com.activequant.dao.mybatis
Class MarketDataInstrumentDao
java.lang.Object
com.activequant.dao.mybatis.GenericMapperDao<MarketDataInstrument>
com.activequant.dao.mybatis.MarketDataInstrumentDao
- All Implemented Interfaces:
- IEntityDao<MarketDataInstrument>, IMarketDataInstrumentDao
public class MarketDataInstrumentDao
- extends GenericMapperDao<MarketDataInstrument>
- implements IMarketDataInstrumentDao
| Methods inherited from class com.activequant.dao.mybatis.GenericMapperDao |
count, countForAttributeValue, countForAttributeValue, countForAttributeValue, create, delete, findIDs, findIDs, findIDs, findIDs, findIDsLike, findIDsWhereCreationDateBetween, findIDsWhereLongValGreater, load, loadAll, loadIDs, selectDistinctDoubleVal, selectDistinctLongVal, selectDistinctStringVal, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.activequant.dao.IEntityDao |
count, countForAttributeValue, countForAttributeValue, countForAttributeValue, create, delete, findIDs, findIDs, findIDs, findIDs, findIDsWhereCreationDateBetween, load, loadAll, loadIDs, update |
MarketDataInstrumentDao
public MarketDataInstrumentDao(GenericRowMapper mapper)
findFor
public MarketDataInstrument[] findFor(Instrument instrument)
- Specified by:
findFor in interface IMarketDataInstrumentDao
findForProvider
public MarketDataInstrument[] findForProvider(String providerId)
- Description copied from interface:
IMarketDataInstrumentDao
- fetch all mdinstruments for a specific provider.
- Specified by:
findForProvider in interface IMarketDataInstrumentDao
- Parameters:
providerId - f.e. Bloomberg
- Returns:
findByProvId
public MarketDataInstrument findByProvId(String providerId,
String provSpecInstId)
- Specified by:
findByProvId in interface IMarketDataInstrumentDao
countForProvider
public int countForProvider(String providerId)
- Specified by:
countForProvider in interface IMarketDataInstrumentDao
findForProvider
public MarketDataInstrument[] findForProvider(String providerId,
int startIndex,
int maxAmount)
- Specified by:
findForProvider in interface IMarketDataInstrumentDao
findLike
public MarketDataInstrument[] findLike(String providerId,
String provSpecInstId)
- Specified by:
findLike in interface IMarketDataInstrumentDao
findFor
public MarketDataInstrument findFor(String providerId,
Instrument instrument)
- Specified by:
findFor in interface IMarketDataInstrumentDao
- Parameters:
providerId - for example BBGTinstrument - any instrument
- Returns:
- the MDI, in case it exists. if not, then null.
getProviders
public String[] getProviders()
- Specified by:
getProviders in interface IMarketDataInstrumentDao
Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.