|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEvePersistenceFactory
The implementor of this interface provides persistence functions to the data and market data layers. Stored data is referenced by a key ID, which corresponds to the key ID of the customized API key used for synchronizing data with the EVE servers. External market data is public information and is therefore not associated with a key ID. NOTE: The way this API is structured requires that you use a separate customizable API key (i.e. unique key ID) for each character. This API does NOT allow you to reuse a single key ID for all your characters even though the customizable API key system allows this.
Method Summary | |
---|---|
java.util.Collection<java.lang.Integer> |
getCharacterKeys()
Returns a list of key IDs corresponding to characters stored by this persistence factory. |
java.util.Collection<java.lang.Integer> |
getCorporationKeys()
Returns a list of key IDs corresponding to corporations stored by this persistence factory. |
org.hibernate.SessionFactory |
getGenericDataSessionFactory()
Retrieve a session factory which may be used to access generic information tables, for example external market data. |
org.hibernate.SessionFactory |
getKeySessionFactory(int keyID)
Retrieve a session factory with access to the tables associated with the specified key ID. |
ICharacterContactNotificationRecord |
getNewCharacterContactNotificationRecord(int keyID,
long charID,
long notificationID)
Instantiate a new CharacterContactNotificationRecord ready for population. |
ICharacterMailMessageBodyRecord |
getNewCharacterMailMessageBodyRecord(int keyID,
long charID,
long messageID)
Instantiate a new CharacterMailMessageBodyRecord ready for population. |
ICharacterMailMessageDestinationRecord |
getNewCharacterMailMessageDestinationRecord(int keyID,
long charID,
long messageID,
long toCharID)
Instantiate a new CharacterMailMessageDestinationRecord ready for population. |
ICharacterMailMessageRecord |
getNewCharacterMailMessageRecord(int keyID,
long charID,
long messageID)
Instantiate a new CharacterMailMessageRecord ready for population. |
ICharacterNotificationRecord |
getNewCharacterNotificationRecord(int keyID,
long charID,
long notificationID)
Instantiate a new CharacterNotificationRecord ready for population. |
ICharacterNotificationTextRecord |
getNewCharacterNotificationTextRecord(int keyID,
long charID,
long notificationID)
Instantiate a new CharacterNotificationTextRecord ready for population. |
IContainerLogRecord |
getNewContainerLogRecord(int keyID,
long corpID,
long logTime,
long itemID,
long actorID,
java.lang.String action)
Instantiate a new ContainerLogRecord ready for population. |
IExternalHistoricTradeRecord |
getNewExternalHistoricTradeRecord(int typeID,
long regionID,
long date,
java.lang.String source)
Instantiate a new ExtenralHistoricTradeRecord ready for population. |
IExternalMarketOrderRecord |
getNewExternalMarketOrderRecord(long orderID,
int typeID,
long stationID,
java.lang.String source)
Instantiate a new ExternalMarketOrderRecord ready for population. |
IIndustryJobRecord |
getNewIndustryJobRecord(int keyID,
long charOrCorpID,
long jobID,
long assemblyID,
long containerID)
Instantiate a new IndustryJobRecord ready for population. |
IWalletJournalRecord |
getNewJournalRecord(int keyID,
long charOrCorpID,
int accountKey,
long refID)
Instantiate a new WalletJournalRecord ready for population. |
IKillAttackerRecord |
getNewKillAttackerRecord(int keyID,
long charOrCorpID,
long killID,
long attackerID)
Instantiate a new KillAttackerRecord ready for population. |
IKillItemRecord |
getNewKillItemRecord(int keyID,
long charOrCorpID,
long killID,
int typeID)
Instantiate a new KillItemRecord ready for population. |
IKillRecord |
getNewKillRecord(int keyID,
long charOrCorpID,
long killID)
Instantiate a new KillRecord ready for population. |
IKillVictimRecord |
getNewKillVictimRecord(int keyID,
long charOrCorpID,
long killID)
Instantiate a new KillVictimRecord ready for population. |
IMarketOrderRecord |
getNewMarketOrderRecord(int keyID,
long charOrCorpID,
long orderID)
Instantiate a new MarketOrderRecord ready for population. |
IMemberSecurityLogRecord |
getNewMemberSecurityLogRecord(int keyID,
long corpID,
long changeTime,
long changedCharID,
long issuerID)
Instantiate a new MemberSecurityLogRecord ready for population. |
IMemberSecurityLogRoleRecord |
getNewMemberSecurityLogRoleRecord(int keyID,
long corpID,
long changeTime,
long changedCharID,
long issuerID,
boolean newRole,
long roleID)
Instantiate a new MemberSecurityLogRoleRecord ready for population. |
IWalletTransactionRecord |
getNewTransactionRecord(int keyID,
long charOrCorpID,
int accountKey,
long transID)
Instantiate a new WalletTransactionRecord ready for population. |
Capsuleer |
loadCharacter(int keyID)
Reload a persisted Character instance corresponding to the given key ID. |
Corporation |
loadCorporation(int keyID)
Reload a persisted Corporation instance corresponding to the given key ID. |
void |
saveCharacter(Capsuleer c)
Persist the given Character instance. |
void |
saveCorporation(Corporation c)
Persist the given Corporation instance. |
Method Detail |
---|
java.util.Collection<java.lang.Integer> getCharacterKeys()
java.util.Collection<java.lang.Integer> getCorporationKeys()
Capsuleer loadCharacter(int keyID) throws java.io.IOException, NoSuchCharacterException, java.lang.ClassNotFoundException
keyID
- the key ID under which this character was persisted.
java.io.IOException
- if an IO error occurs during restoration.
NoSuchCharacterException
- if the given key ID does not correspond to a persisted
Character.
java.lang.ClassNotFoundException
- if a type error occurs while restoring the Character (this
can occur due to a version difference, or if an implementor
chooses to extend the data model with their own classes).void saveCharacter(Capsuleer c) throws java.io.IOException
c
- the Character to persist. The persisted character may be
retrieved according to the key ID stored in the character.
java.io.IOException
- if an IO error occurs while persisting the character.Corporation loadCorporation(int keyID) throws java.io.IOException, NoSuchCorporationException, java.lang.ClassNotFoundException
keyID
- the key ID under which this corporation was persisted.
java.io.IOException
- if an IO error occurs during restoration.
NoSuchCorporationException
- if the given key ID does not correspond to a persisted
Corporation.
java.lang.ClassNotFoundException
- if a type error occurs while restoring the Corporation(this
can occur due to a version difference, or if an implementor
chooses to extend the data model with their own classes).void saveCorporation(Corporation c) throws java.io.IOException
c
- the Corporation to persist. The persisted corporation may be
retrieved according to the key ID stored in the corporation.
java.io.IOException
- if an IO error occurs while persisting the corporation.org.hibernate.SessionFactory getKeySessionFactory(int keyID) throws org.hibernate.HibernateException
keyID
- the key ID for which a session factory is being requested.
org.hibernate.HibernateException
- if an error occurs while setting up the factory.org.hibernate.SessionFactory getGenericDataSessionFactory() throws org.hibernate.HibernateException
org.hibernate.HibernateException
- if an error occurs while setting up the factory.IWalletJournalRecord getNewJournalRecord(int keyID, long charOrCorpID, int accountKey, long refID)
keyID
- the key ID of the character or corporation storing the record.charOrCorpID
- the character or corporation ID on whose behalf the record is
being stored.accountKey
- the character or corporation account number where the record
was recorded.refID
- the unique reference ID for the record.
IWalletTransactionRecord getNewTransactionRecord(int keyID, long charOrCorpID, int accountKey, long transID)
keyID
- the key ID of the character or corporation storing the record.charOrCorpID
- the character or corporation ID on whose behalf the record is
being stored.accountKey
- the character or corporation account number where the record
was recorded.transID
- the unique transaction ID for the record.
ICharacterNotificationRecord getNewCharacterNotificationRecord(int keyID, long charID, long notificationID)
keyID
- key ID of receiving character.charID
- character ID of receiving character.notificationID
- unique ID of notification.
ICharacterNotificationTextRecord getNewCharacterNotificationTextRecord(int keyID, long charID, long notificationID)
keyID
- key ID of receiving character.charID
- character ID of receiving character.notificationID
- unique ID of notification.
ICharacterMailMessageRecord getNewCharacterMailMessageRecord(int keyID, long charID, long messageID)
keyID
- key ID of receiving character.charID
- character ID of receiving character.messageID
- unique ID of message
ICharacterMailMessageDestinationRecord getNewCharacterMailMessageDestinationRecord(int keyID, long charID, long messageID, long toCharID)
keyID
- key ID of receiving character.charID
- character ID of receiving character.messageID
- unique ID of messagetoCharID
- character ID of a character which received this message.
ICharacterMailMessageBodyRecord getNewCharacterMailMessageBodyRecord(int keyID, long charID, long messageID)
keyID
- key ID of receiving character.charID
- character ID of receiving character.messageID
- unique ID of message
IKillRecord getNewKillRecord(int keyID, long charOrCorpID, long killID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.killID
- unique ID of this kill.
IKillAttackerRecord getNewKillAttackerRecord(int keyID, long charOrCorpID, long killID, long attackerID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.killID
- unique ID of this killattackerID
- character ID of attacker identified by this record.
IKillItemRecord getNewKillItemRecord(int keyID, long charOrCorpID, long killID, int typeID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.killID
- unique ID of this kill.typeID
- type ID of item.
IKillVictimRecord getNewKillVictimRecord(int keyID, long charOrCorpID, long killID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.killID
- unique ID of this kill.
ICharacterContactNotificationRecord getNewCharacterContactNotificationRecord(int keyID, long charID, long notificationID)
keyID
- key ID of character owning or accessing record.charID
- character ID of character owning or accessing record.notificationID
- ID of this notification.
IIndustryJobRecord getNewIndustryJobRecord(int keyID, long charOrCorpID, long jobID, long assemblyID, long containerID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.jobID
- job ID for this job.assemblyID
- assembly line ID where this job was installed.containerID
- container ID where the assembly for this job is hosted.
IMarketOrderRecord getNewMarketOrderRecord(int keyID, long charOrCorpID, long orderID)
keyID
- key ID of character owning or accessing record.charOrCorpID
- character or corporation ID to whom the record belongs.orderID
- order ID for this order.
IContainerLogRecord getNewContainerLogRecord(int keyID, long corpID, long logTime, long itemID, long actorID, java.lang.String action)
keyID
- key ID of character owning or accessing record.corpID
- corporation ID of corporation which owns the container being
logged.logTime
- time which the container action occurred.itemID
- ID of the container on which the action was performed.actorID
- ID of character which made the change.action
- change made to the container.
IMemberSecurityLogRecord getNewMemberSecurityLogRecord(int keyID, long corpID, long changeTime, long changedCharID, long issuerID)
keyID
- key ID of character owning or accessing record.corpID
- corporation ID to which this log record belongs.changeTime
- time at which the security change was made.changedCharID
- character ID of character which was changed.issuerID
- character ID of character making the change.
IMemberSecurityLogRoleRecord getNewMemberSecurityLogRoleRecord(int keyID, long corpID, long changeTime, long changedCharID, long issuerID, boolean newRole, long roleID)
keyID
- key ID of character owning or accessing record.corpID
- corporation ID to which this log record belongs.changeTime
- time at which the security change was made.changedCharID
- character ID of character which was changed.issuerID
- character ID of character making the change.newRole
- true if this is information about a new role for the changed
character, false otherwise.roleID
- the role ID of the role being described.
IExternalMarketOrderRecord getNewExternalMarketOrderRecord(long orderID, int typeID, long stationID, java.lang.String source)
orderID
- the unique order ID for this order.typeID
- the type being bought or sold for this order.stationID
- the station where the order was placed.source
- the source from which this data is being provided.
IExternalHistoricTradeRecord getNewExternalHistoricTradeRecord(int typeID, long regionID, long date, java.lang.String source)
typeID
- the type for which the historic trade information corresponds.regionID
- the region where the historic trade occurred.date
- the timestamp on which the historic trade occurred.source
- the source from which this data is being provided.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |