com.activequant.dao.mybatis
Class MarketDataInstrumentDao

java.lang.Object
  extended by com.activequant.dao.mybatis.GenericMapperDao<MarketDataInstrument>
      extended by com.activequant.dao.mybatis.MarketDataInstrumentDao
All Implemented Interfaces:
IEntityDao<MarketDataInstrument>, IMarketDataInstrumentDao

public class MarketDataInstrumentDao
extends GenericMapperDao<MarketDataInstrument>
implements IMarketDataInstrumentDao


Field Summary
 
Fields inherited from class com.activequant.dao.mybatis.GenericMapperDao
mapper
 
Constructor Summary
MarketDataInstrumentDao(GenericRowMapper mapper)
           
 
Method Summary
 int countForProvider(String providerId)
           
 MarketDataInstrument findByProvId(String providerId, String provSpecInstId)
           
 MarketDataInstrument[] findFor(Instrument instrument)
           
 MarketDataInstrument findFor(String providerId, Instrument instrument)
           
 MarketDataInstrument[] findForProvider(String providerId)
          fetch all mdinstruments for a specific provider.
 MarketDataInstrument[] findForProvider(String providerId, int startIndex, int maxAmount)
           
 MarketDataInstrument[] findLike(String providerId, String provSpecInstId)
           
 String[] getProviders()
           
 
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
 

Constructor Detail

MarketDataInstrumentDao

public MarketDataInstrumentDao(GenericRowMapper mapper)
Method Detail

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 BBGT
instrument - 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.