java.lang.Object
com.k_int.OpenRequest.helpers.ISOShippedMessageFactory
- public class ISOShippedMessageFactory
- extends java.lang.Object
Create an ISO ILL Shipped Message.
This class will construct an iso ill shipped message in a variety of different
situations according to the supplied parameters.
- Version:
- $Id: ISOShippedMessageFactory.java,v 1.1.1.1 2002/10/20 10:24:02 ianibbo Exp $
|
Field Summary |
private static LoggingContext |
cat
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
private static LoggingContext cat
ISOShippedMessageFactory
public ISOShippedMessageFactory()
create
public static com.k_int.OpenRequest.isoill.gen.ISO_10161_ILL_1.ILL_APDU_type create(Session database_session,
com.k_int.OpenRequest.db.ILLTransaction transaction,
long shipped_service_type,
java.util.Date date_shipped,
java.util.Date date_due,
java.lang.Boolean renewable,
java.lang.Long chargeable_units,
java.lang.String cost,
java.lang.Long conditions,
ISOExtensionFactory[] extens)
throws java.sql.SQLException,
cirrus.hibernate.HibernateException
- create a Shipped message.
Requires: An ILL Transaction in a state for which SHPreq is a valid action
Provides: A completed ILL Shipped message with data derived as follows:
N.B where a member could be set from the transaction store, speak with k-int
about defaulting that member in, it's better than starting to track transaction data
in databases outside the transaction store.
element name/type M/O Source
retval : ILL_APDU_type (Choice of pdu) M Filled in by factory
.which : int M Filled in by factory
.o : Shipped_type M Filled in by factory
.protocol_version_num
.transaction_id M Constructed field, populated by this method
.initial_requester_id M
.person_or_institution_symbol O Set by factory from database
.name_of_person_or_institution O Not set
.tgq M Set by factory from database
.tq M Set by factory from database
.stq O Set by factory from database
.service_date_time M Constructed by factory
.date_time_of_this_service M Constructed by factory
.date M Set by factory from system clock
.time O Set by factory from system clock
.date_time_of_original_service M Constructed by factory
.date M Set by factory from system clock
.time O Set by factory from system clock
.requester_id M Set by factory from database
.person_or_institution_symbol O Set by factory from database
.person_or_institution_name O Not set
.responder_id M Set by factory from database
.person_or_institution_symbol O Set by factory from database
.person_or_institution_name O Not set
-- End of common elements. Shipped specific follow --
.responder_address O
.telecom_service_identifier O
.telecom_service_address O
.intermediary_id O
.person_or_institution_symbol O
.person_or_institution_name O
.supplier_id O Not currently defaulted
.person_or_institution_symbol O
.person_or_institution_name O
.client_id O
.client_name O
.client_status O
.client_identifier O
.transaction_type M Defaulted to BigInteger.valueOf(1)
1=Simple, 2=Chained, 3=Partitioned
.supplemental_item_description O
.shipped_service_type M Set according to long value passed in
1=Loan, 2=Copy non returnable
.responder_optional_messages O Not currently defaulted
.can_send_SHIPPED M *should* be defaulted from defaults mechanism
.can_send_CHECKED_IN M *should* be defaulted from defaults mechanism
.responder_RECEIVED M *should* be defaulted from defaults mechanism
.responder_RETURNED M *should* be defaulted from defaults mechanism
.supply_details M New structured type created by factory
.date_shipped O Set according to date_shipped factory param
.date_due O Only set if date_due and renewable not null
.date_due_field M set from date_due param
.renewable M set from renewable param
.chargeable_units O not currently defaulted
.cost O not currently defaulted
.shipped_conditions O not currently defaulted
.shipped_via O not currently defaulted
{ choice of eletronic or physical delivery }
...TODO...
.insured_for O not currently defaulted
.return_insurance_require O not currently defaulted
.no_of_units_per_medium O not currently defaulted
.return_to_address O Not currently defaulted
.name_of_person_or_institution O
.extended_postal_delivery_address
.street_and_number
.post_office_box
.city
.region
.country
.postal_code
.responder_note O Not currently defaulted
.shipped_extensions O Not currently defaulted
{ Vector of extensions... }
Ends description of how shipped PDU is populated by this factory method