|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEveMarketData
An interface for storing an accessing EVE exported market data.
| Method Summary | |
|---|---|
void |
begin()
Start a new transaction for interacting with the Eve External Market Data tables. |
void |
close()
Close the session (if any) associated with the current thread. |
void |
commit()
Commit a previously started transaction on the current thread. |
EveMarketQuote |
getBBO(int typeID,
long[] regions,
long[] solarSystems,
long[] stations,
java.lang.String[] sources,
java.lang.Long ignoreBefore,
java.lang.Long asOf)
Retrieve the best bid and offer for a given type. |
org.hibernate.Session |
getSession()
Retrieve a session for use in interacting with the Eve External Market Data tables. |
void |
loadExportedClientMarketData(java.io.InputStream inData,
long sampleTime,
java.lang.String source)
Convenience method for loading market orders from data in the format of market data exports provided by the EVE client. |
void |
loadExportedHistoricTradeData(java.io.InputStream inData,
java.lang.String source)
Convenience method for loading historic trade data in the format provided in the experimental download from CCP (see development site docs for more info). |
void |
rollback()
Rollback a previously started transaction on the current thread. |
IExternalHistoricTradeRecord |
storeEntry(IExternalHistoricTradeRecord entry)
Convenience method for the common action of adding a new entry to the external historic trade table. |
IExternalMarketOrderRecord |
storeEntry(IExternalMarketOrderRecord entry)
Convenience method for the common action of adding a new entry to the external market order table. |
| Method Detail |
|---|
org.hibernate.Session getSession()
void begin()
void commit()
void rollback()
void close()
IExternalMarketOrderRecord storeEntry(IExternalMarketOrderRecord entry)
throws org.hibernate.HibernateException
entry - the entry to be stored.
org.hibernate.HibernateException
IExternalHistoricTradeRecord storeEntry(IExternalHistoricTradeRecord entry)
throws org.hibernate.HibernateException
entry - the entry to be stored.
org.hibernate.HibernateException
EveMarketQuote getBBO(int typeID,
long[] regions,
long[] solarSystems,
long[] stations,
java.lang.String[] sources,
java.lang.Long ignoreBefore,
java.lang.Long asOf)
throws java.io.IOException
typeID - the type for which the BBO will be computed.regions - a list of regions over which the query is restricted.solarSystems - a list of solarsystems over which the query is restricted. If
specified, this overrides the list of regions.stations - a list of stations over which the query is restricted. If
specified, this overrides the list of regions or solar
systems.sources - if not null, then only consider quotes from the specified
sources.ignoreBefore - if not null, then ignore external market orders with a sample
time before the specified time.asOf - if non null, then only consider orders active on the given
date. Otherwise, consider only those orders which are active
now.
java.io.IOException - if an error occurs while querying the external market orders
table.
void loadExportedClientMarketData(java.io.InputStream inData,
long sampleTime,
java.lang.String source)
throws java.io.IOException
inData - an input stream from which market orders will be read. We
continue loading rows until the input stream is exhausted.sampleTime - the timestamp to use for the sample time of the new records.source - the source to use for the new records.
java.io.IOException - if an error occurs while loading rows.
void loadExportedHistoricTradeData(java.io.InputStream inData,
java.lang.String source)
throws java.io.IOException
inData - an input stream from which historic trades will be read. We
continue loading rows until the input stream is exhausted.source - the source to use for the new records.
java.io.IOException - if an error occurs while loading rows.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||