org.marketcetera.ors.history
Class InstrumentSummaryFields<I extends Instrument>

java.lang.Object
  extended by org.marketcetera.core.instruments.InstrumentFunctionHandler<I>
      extended by org.marketcetera.ors.history.InstrumentSummaryFields<I>
Type Parameters:
I - The type of instrument handled by this function
Direct Known Subclasses:
EquitySummaryFields, FutureSummaryFields, OptionSummaryFields

public abstract class InstrumentSummaryFields<I extends Instrument>
extends InstrumentFunctionHandler<I>

A class that helps extract the instrument specific fields for persistence within ExecutionReportSummary.

Since:
2.0.0
Version:
$Id: InstrumentSummaryFields.java 16154 2012-07-14 16:34:05Z colin $
Author:
anshul@marketcetera.com

Field Summary
static StaticInstrumentFunctionSelector<InstrumentSummaryFields> SELECTOR
          The selector that provides the appropriate instance of this class for an instrument.
 
Constructor Summary
protected InstrumentSummaryFields(Class<I> inInstrument)
          Creates an instance that handles the specified instrument subclass.
 
Method Summary
abstract  String getExpiry(Instrument inInstrument)
          Returns the expiry value of the instrument.
abstract  OptionType getOptionType(Instrument inInstrument)
          Returns the option type of the instrument.
abstract  BigDecimal getStrikePrice(Instrument inInstrument)
          Returns the strike price of the instrument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTOR

public static final StaticInstrumentFunctionSelector<InstrumentSummaryFields> SELECTOR
The selector that provides the appropriate instance of this class for an instrument.

Constructor Detail

InstrumentSummaryFields

protected InstrumentSummaryFields(Class<I> inInstrument)
Creates an instance that handles the specified instrument subclass.

Parameters:
inInstrument - the instrument subclass handled by this instance.
Method Detail

getExpiry

public abstract String getExpiry(Instrument inInstrument)
Returns the expiry value of the instrument.

Parameters:
inInstrument - the instrument.
Returns:
the expiry or null if no expiry is available for the instrument.

getStrikePrice

public abstract BigDecimal getStrikePrice(Instrument inInstrument)
Returns the strike price of the instrument.

Parameters:
inInstrument - the instrument.
Returns:
the strike price or null if no strike price is available for the instrument.

getOptionType

public abstract OptionType getOptionType(Instrument inInstrument)
Returns the option type of the instrument.

Parameters:
inInstrument - the instrument.
Returns:
the option type or null if no option type is available for the instrument.


Copyright © 2012. All Rights Reserved.