Quote store
A quote store Gosu object converts
quote data to and from XML. The quote store implements the gw.quoting.QuoteStore interface.
This interface provides methods to store, locate, retrieve, and remove
a policy quote in XML format in an external database. This interface
also provides a callback method that the system of record PolicyCenter
calls after successfully reconstituting a quote from XML format to a
policy period entity instance. PolicyCenter provides a demonstration
implementation of QuoteStore,
gw.quoting.impl.StandAloneQuoteStore,
which emulates an external database as hash maps in memory. Use this
class as a basis for your own implementation of the QuoteStore interface.
The QuoteStore interface provides
the following methods:
onReconstitute– A callback method that you use to make changes to the quote record in the external quote database. The system of record PolicyCenter calls this method after successfully reconstituting a quote from XML format to a policy period entity instance. The types of changes that this method makes include setting the submission number from the system of record to show that the quote was accepted. The quote-only instance can use this submission number value, for example, when searching for quote records to purge from the external quote database.removeQuote– Removes a quote record specified by a QuoteKey parameter from the external quote database and returns a Boolean value to indicate success or failure.retrieveQuote– Retrieves a quote specified by a QuoteKey parameter from the external quote database as an object that implements theRestoreQuoteRepresentationinterface.search– Uses quote search criteria to locate matching quotes in the external quote database. This method takes an object that implementsQuoteSearchCriteriaas a parameter and returns aListof gw.quoting.QuoteSummarySearchResult objects.storeQuote– Stores a quote on the external quote database. This method takes an object that implements theQuoteRepresentationinterface and a PolicyPeriod entity instance as parameters and returns a QuoteKey object.
See also
