]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/dbi.pm
LP#1811132: add Debit Card payment type
[working/Evergreen.git] / Open-ILS / src / perlmods / lib / OpenILS / Application / Storage / Driver / Pg / dbi.pm
1 {
2
3     #-------------------------------------------------------------------------------
4     package asset::copy_part_map;
5
6     asset::copy_part_map->table( 'asset.copy_part_map' );
7     asset::copy_part_map->sequence( 'asset.copy_part_map_id_seq' );
8
9     #-------------------------------------------------------------------------------
10     package biblio::monograph_part;
11
12     biblio::monograph_part->table( 'biblio.monograph_part' );
13     biblio::monograph_part->sequence( 'biblio.monograph_part_id_seq' );
14
15     #-------------------------------------------------------------------------------
16     package biblio::peer_bib_copy_map;
17
18     biblio::peer_bib_copy_map->table( 'biblio.peer_bib_copy_map' );
19     biblio::peer_bib_copy_map->sequence( 'biblio.peer_bib_copy_map_id_seq' );
20
21     #-------------------------------------------------------------------------------
22     package biblio::peer_type;
23
24     biblio::peer_type->table( 'biblio.peer_type' );
25     biblio::peer_type->sequence( 'biblio.peer_type_id_seq' );
26
27     #-------------------------------------------------------------------------------
28     package container::user_bucket;
29
30     container::user_bucket->table( 'container.user_bucket' );
31     container::user_bucket->sequence( 'container.user_bucket_id_seq' );
32
33     #-------------------------------------------------------------------------------
34     package container::user_bucket_item;
35
36     container::user_bucket_item->table( 'container.user_bucket_item' );
37     container::user_bucket_item->sequence( 'container.user_bucket_item_id_seq' );
38
39     #-------------------------------------------------------------------------------
40     package container::copy_bucket;
41
42     container::copy_bucket->table( 'container.copy_bucket' );
43     container::copy_bucket->sequence( 'container.copy_bucket_id_seq' );
44
45     #-------------------------------------------------------------------------------
46     package container::copy_bucket_item;
47
48     container::copy_bucket_item->table( 'container.copy_bucket_item' );
49     container::copy_bucket_item->sequence( 'container.copy_bucket_item_id_seq' );
50
51     #-------------------------------------------------------------------------------
52     package container::call_number_bucket;
53
54     container::call_number_bucket->table( 'container.call_number_bucket' );
55     container::call_number_bucket->sequence( 'container.call_number_bucket_id_seq' );
56
57     #-------------------------------------------------------------------------------
58     package container::call_number_bucket_item;
59
60     container::call_number_bucket_item->table( 'container.call_number_bucket_item' );
61     container::call_number_bucket_item->sequence( 'container.call_number_bucket_item_id_seq' );
62
63     #-------------------------------------------------------------------------------
64     package container::biblio_record_entry_bucket;
65
66     container::biblio_record_entry_bucket->table( 'container.biblio_record_entry_bucket' );
67     container::biblio_record_entry_bucket->sequence( 'container.biblio_record_entry_bucket_id_seq' );
68
69     #-------------------------------------------------------------------------------
70     package container::biblio_record_entry_bucket_item;
71
72     container::biblio_record_entry_bucket_item->table( 'container.biblio_record_entry_bucket_item' );
73     container::biblio_record_entry_bucket_item->sequence( 'container.biblio_record_entry_bucket_item_id_seq' );
74
75     #---------------------------------------------------------------------
76     package money::grocery;
77     
78     money::grocery->table( 'money.grocery' );
79     money::grocery->sequence( 'money.billable_xact_id_seq' );
80
81     #---------------------------------------------------------------------
82     package money::collections_tracker;
83     
84     money::collections_tracker->table( 'money.collections_tracker' );
85     money::collections_tracker->sequence( 'money.collections_tracker_id_seq' );
86
87     #---------------------------------------------------------------------
88     package money::billable_transaction;
89     
90     money::billable_transaction->table( 'money.billable_xact' );
91     money::billable_transaction->sequence( 'money.billable_xact_id_seq' );
92
93     #---------------------------------------------------------------------
94     package money::billing;
95     
96     money::billing->table( 'money.billing' );
97     money::billing->sequence( 'money.billing_id_seq' );
98
99     #---------------------------------------------------------------------
100     package money::desk_payment;
101     
102     money::desk_payment->table( 'money.desk_payment_view' );
103
104     #---------------------------------------------------------------------
105     package money::payment;
106     
107     money::payment->table( 'money.payment_view' );
108
109     #---------------------------------------------------------------------
110     package money::cash_payment;
111     
112     money::cash_payment->table( 'money.cash_payment' );
113     money::cash_payment->sequence( 'money.payment_id_seq' );
114
115     #---------------------------------------------------------------------
116     package money::check_payment;
117     
118     money::check_payment->table( 'money.check_payment' );
119     money::check_payment->sequence( 'money.payment_id_seq' );
120
121     #---------------------------------------------------------------------
122     package money::credit_payment;
123     
124     money::credit_payment->table( 'money.credit_payment' );
125     money::credit_payment->sequence( 'money.payment_id_seq' );
126
127     #---------------------------------------------------------------------
128     package money::credit_card_payment;
129     
130     money::credit_card_payment->table( 'money.credit_card_payment' );
131     money::credit_card_payment->sequence( 'money.payment_id_seq' );
132
133     #---------------------------------------------------------------------
134     package money::debit_card_payment;
135     
136     money::debit_card_payment->table( 'money.debit_card_payment' );
137     money::debit_card_payment->sequence( 'money.payment_id_seq' );
138
139     #---------------------------------------------------------------------
140     package money::work_payment;
141     
142     money::work_payment->table( 'money.work_payment' );
143     money::work_payment->sequence( 'money.payment_id_seq' );
144
145     #---------------------------------------------------------------------
146     package money::goods_payment;
147     
148     money::goods_payment->table( 'money.goods_payment' );
149     money::goods_payment->sequence( 'money.payment_id_seq' );
150
151     #---------------------------------------------------------------------
152     package money::forgive_payment;
153     
154     money::forgive_payment->table( 'money.forgive_payment' );
155     money::forgive_payment->sequence( 'money.payment_id_seq' );
156
157     #---------------------------------------------------------------------
158     package money::open_billable_transaction_summary;
159     
160     money::open_billable_transaction_summary->table( 'money.open_billable_xact_summary' );
161
162     #---------------------------------------------------------------------
163     package money::billable_transaction_summary;
164     
165     money::billable_transaction_summary->table( 'money.billable_xact_summary' );
166
167     #---------------------------------------------------------------------
168     package money::open_user_summary;
169     
170     money::open_user_summary->table( 'money.open_usr_summary' );
171
172     #---------------------------------------------------------------------
173     package money::user_summary;
174     
175     money::user_summary->table( 'money.usr_summary' );
176
177     #---------------------------------------------------------------------
178     package money::open_user_circulation_summary;
179     
180     money::open_user_circulation_summary->table( 'money.open_usr_circulation_summary' );
181
182     #---------------------------------------------------------------------
183     package money::user_circulation_summary;
184     
185     money::user_circulation_summary->table( 'money.usr_circulation_summary' );
186
187     #---------------------------------------------------------------------
188     package action::circulation;
189     
190     action::circulation->table( 'action.circulation' );
191     action::circulation->sequence( 'money.billable_xact_id_seq' );
192
193     #---------------------------------------------------------------------
194     package booking::resource_type;
195     
196     booking::resource_type->table( 'booking.resource_type' );
197     booking::resource_type->sequence( 'booking.resource_type_id_seq' );
198
199     #---------------------------------------------------------------------
200     package booking::resource;
201     
202     booking::resource->table( 'booking.resource' );
203     booking::resource->sequence( 'booking.resource_id_seq' );
204
205     #---------------------------------------------------------------------
206     package booking::reservation;
207     
208     booking::reservation->table( 'booking.reservation' );
209     booking::reservation->sequence( 'money.billable_xact_id_seq' );
210
211     #---------------------------------------------------------------------
212     package booking::reservation_attr_value_map;
213     
214     booking::reservation_attr_value_map->table( 'booking.reservation_attr_value_map' );
215     booking::reservation_attr_value_map->sequence( 'booking.reservation_attr_value_map_id_seq' );
216
217     #---------------------------------------------------------------------
218     package booking::resource_attr_map;
219     
220     booking::resource_attr_map->table( 'booking.resource_attr_map' );
221     booking::resource_attr_map->sequence( 'booking.resource_attr_map_id_seq' );
222
223     #---------------------------------------------------------------------
224     package action::non_cat_in_house_use;
225     
226     action::non_cat_in_house_use->table( 'action.non_cat_in_house_use' );
227     action::non_cat_in_house_use->sequence( 'action.non_cat_in_house_use_id_seq' );
228
229     #---------------------------------------------------------------------
230     package action::in_house_use;
231     
232     action::in_house_use->table( 'action.in_house_use' );
233     action::in_house_use->sequence( 'action.in_house_use_id_seq' );
234
235     #---------------------------------------------------------------------
236     package action::non_cataloged_circulation;
237     
238     action::non_cataloged_circulation->table( 'action.non_cataloged_circulation' );
239     action::non_cataloged_circulation->sequence( 'action.non_cataloged_circulation_id_seq' );
240
241     #---------------------------------------------------------------------
242     package action::open_circulation;
243     
244     action::open_circulation->table( 'action.open_circulation' );
245
246     #---------------------------------------------------------------------
247     package action::survey;
248     
249     action::survey->table( 'action.survey' );
250     action::survey->sequence( 'action.survey_id_seq' );
251     
252     #---------------------------------------------------------------------
253     package action::survey_question;
254     
255     action::survey_question->table( 'action.survey_question' );
256     action::survey_question->sequence( 'action.survey_question_id_seq' );
257     
258     #---------------------------------------------------------------------
259     package action::survey_answer;
260     
261     action::survey_answer->table( 'action.survey_answer' );
262     action::survey_answer->sequence( 'action.survey_answer_id_seq' );
263     
264     #---------------------------------------------------------------------
265     package action::survey_response;
266     
267     action::survey_response->table( 'action.survey_response' );
268     action::survey_response->sequence( 'action.survey_response_id_seq' );
269     
270     #---------------------------------------------------------------------
271     package config::non_cataloged_type;
272     
273     config::non_cataloged_type->table( 'config.non_cataloged_type' );
274     config::non_cataloged_type->sequence( 'config.non_cataloged_type_id_seq' );
275
276     #---------------------------------------------------------------------
277     package config::copy_status;
278     
279     config::copy_status->table( 'config.copy_status' );
280     config::copy_status->sequence( 'config.copy_status_id_seq' );
281
282     #---------------------------------------------------------------------
283     package config::rules::circ_duration;
284     
285     config::rules::circ_duration->table( 'config.rule_circ_duration' );
286     config::rules::circ_duration->sequence( 'config.rule_circ_duration_id_seq' );
287     
288     #---------------------------------------------------------------------
289     package config::rules::age_hold_protect;
290     
291     config::rules::age_hold_protect->table( 'config.rule_age_hold_protect' );
292     config::rules::age_hold_protect->sequence( 'config.rule_age_hold_protect_id_seq' );
293     
294     #---------------------------------------------------------------------
295     package config::rules::max_fine;
296     
297     config::rules::max_fine->table( 'config.rule_max_fine' );
298     config::rules::max_fine->sequence( 'config.rule_max_fine_id_seq' );
299     
300     #---------------------------------------------------------------------
301     package config::rules::recurring_fine;
302     
303     config::rules::recurring_fine->table( 'config.rule_recurring_fine' );
304     config::rules::recurring_fine->sequence( 'config.rule_recurring_fine_id_seq' );
305     
306     #---------------------------------------------------------------------
307     package config::net_access_level;
308     
309     config::net_access_level->table( 'config.net_access_level' );
310     config::net_access_level->sequence( 'config.net_access_level_id_seq' );
311     
312     #---------------------------------------------------------------------
313     package config::standing;
314     
315     config::standing->table( 'config.standing' );
316     config::standing->sequence( 'config.standing_id_seq' );
317     
318     #---------------------------------------------------------------------
319     package config::metabib_field;
320     
321     config::metabib_field->table( 'config.metabib_field' );
322     config::metabib_field->sequence( 'config.metabib_field_id_seq' );
323     
324     #---------------------------------------------------------------------
325     package config::bib_source;
326     
327     config::bib_source->table( 'config.bib_source' );
328     config::bib_source->sequence( 'config.bib_source_id_seq' );
329     
330     #---------------------------------------------------------------------
331     package config::identification_type;
332     
333     config::identification_type->table( 'config.identification_type' );
334     config::identification_type->sequence( 'config.identification_type_id_seq' );
335     
336     #---------------------------------------------------------------------
337     package asset::call_number_note;
338     
339     asset::call_number_note->table( 'asset.call_number_note' );
340     asset::call_number_note->sequence( 'asset.call_number_note_id_seq' );
341     
342     #---------------------------------------------------------------------
343     package asset::copy_note;
344     
345     asset::copy_note->table( 'asset.copy_note' );
346     asset::copy_note->sequence( 'asset.copy_note_id_seq' );
347
348     #---------------------------------------------------------------------
349     package asset::call_number;
350     
351     asset::call_number->table( 'asset.call_number' );
352     asset::call_number->sequence( 'asset.call_number_id_seq' );
353     
354     #---------------------------------------------------------------------
355     package asset::call_number_suffix;
356     
357     asset::call_number_suffix->table( 'asset.call_number_suffix' );
358     asset::call_number_suffix->sequence( 'asset.call_number_suffix_id_seq' );
359
360     #---------------------------------------------------------------------
361     package asset::call_number_prefix;
362     
363     asset::call_number_prefix->table( 'asset.call_number_prefix' );
364     asset::call_number_prefix->sequence( 'asset.call_number_prefix_id_seq' );
365
366     #---------------------------------------------------------------------
367     package asset::call_number_class;
368     
369     asset::call_number_class->table( 'asset.call_number_class' );
370     asset::call_number_class->sequence( 'asset.call_number_class_id_seq' );
371     
372     #---------------------------------------------------------------------
373     package asset::copy_location_order;
374     
375     asset::copy_location_order->table( 'asset.copy_location_order' );
376     asset::copy_location_order->sequence( 'asset.copy_location_order_id_seq' );
377
378     #---------------------------------------------------------------------
379     package asset::copy_location;
380     
381     asset::copy_location->table( 'asset.copy_location' );
382     asset::copy_location->sequence( 'asset.copy_location_id_seq' );
383
384     #---------------------------------------------------------------------
385     package asset::copy_location_group;
386     
387     asset::copy_location_group->table( 'asset.copy_location_group' );
388     asset::copy_location_group->sequence( 'asset.copy_location_group_id_seq' );
389
390     #---------------------------------------------------------------------
391     package asset::copy;
392     
393     asset::copy->table( 'asset.copy' );
394     asset::copy->sequence( 'asset.copy_id_seq' );
395
396     #---------------------------------------------------------------------
397     package asset::stat_cat;
398     
399     asset::stat_cat->table( 'asset.stat_cat' );
400     asset::stat_cat->sequence( 'asset.stat_cat_id_seq' );
401     
402     #---------------------------------------------------------------------
403     package asset::stat_cat_entry;
404     
405     asset::stat_cat_entry->table( 'asset.stat_cat_entry' );
406     asset::stat_cat_entry->sequence( 'asset.stat_cat_entry_id_seq' );
407     
408     #---------------------------------------------------------------------
409     package asset::stat_cat_entry_copy_map;
410     
411     asset::stat_cat_entry_copy_map->table( 'asset.stat_cat_entry_copy_map' );
412     asset::stat_cat_entry_copy_map->sequence( 'asset.stat_cat_entry_copy_map_id_seq' );
413     
414     #---------------------------------------------------------------------
415     package authority::record_entry;
416     
417     authority::record_entry->table( 'authority.record_entry' );
418     authority::record_entry->sequence( 'authority.record_entry_id_seq' );
419
420     #---------------------------------------------------------------------
421     package biblio::record_entry;
422     
423     biblio::record_entry->table( 'biblio.record_entry' );
424     biblio::record_entry->sequence( 'biblio.record_entry_id_seq' );
425
426     #---------------------------------------------------------------------
427     #package biblio::record_marc;
428     #
429     #biblio::record_marc->table( 'biblio.record_marc' );
430     #biblio::record_marc->sequence( 'biblio.record_marc_id_seq' );
431     #
432     #---------------------------------------------------------------------
433     package authority::record_note;
434     
435     authority::record_note->table( 'authority.record_note' );
436     authority::record_note->sequence( 'authority.record_note_id_seq' );
437
438     #---------------------------------------------------------------------
439     package biblio::record_note;
440     
441     biblio::record_note->table( 'biblio.record_note' );
442     biblio::record_note->sequence( 'biblio.record_note_id_seq' );
443     
444     #---------------------------------------------------------------------
445     package actor::workstation;
446     
447     actor::workstation->table( 'actor.workstation' );
448     actor::workstation->sequence( 'actor.workstation_id_seq' );
449
450     #---------------------------------------------------------------------
451     package actor::user;
452     
453     actor::user->table( 'actor.usr' );
454     actor::user->sequence( 'actor.usr_id_seq' );
455
456     #---------------------------------------------------------------------
457     package actor::org_unit::closed_date;
458     
459     actor::org_unit::closed_date->table( 'actor.org_unit_closed' );
460     actor::org_unit::closed_date->sequence( 'actor.org_unit_closed_id_seq' );
461
462     #---------------------------------------------------------------------
463     package actor::org_unit_setting;
464     
465     actor::org_unit_setting->table( 'actor.org_unit_setting' );
466     actor::org_unit_setting->sequence( 'actor.org_unit_setting_id_seq' );
467
468     #---------------------------------------------------------------------
469     package actor::user_standing_penalty;
470     
471     actor::user_standing_penalty->table( 'actor.usr_standing_penalty' );
472     actor::user_standing_penalty->sequence( 'actor.usr_standing_penalty_id_seq' );
473
474     #---------------------------------------------------------------------
475     package actor::user_setting;
476     
477     actor::user_setting->table( 'actor.usr_setting' );
478     actor::user_setting->sequence( 'actor.usr_setting_id_seq' );
479
480     #---------------------------------------------------------------------
481     package actor::user_address;
482     
483     actor::user_address->table( 'actor.usr_address' );
484     actor::user_address->sequence( 'actor.usr_address_id_seq' );
485
486     #---------------------------------------------------------------------
487     package actor::org_address;
488     
489     actor::org_address->table( 'actor.org_address' );
490     actor::org_address->sequence( 'actor.org_address_id_seq' );
491     
492     #---------------------------------------------------------------------
493     package actor::usr_org_unit_opt_in;
494     
495     actor::usr_org_unit_opt_in->table( 'actor.usr_org_unit_opt_in' );
496     actor::usr_org_unit_opt_in->sequence( 'actor.usr_org_unit_opt_in_id_seq' );
497
498     #---------------------------------------------------------------------
499     package actor::org_unit_proximity;
500     
501     actor::org_unit_proximity->table( 'actor.org_unit_proximity' );
502     actor::org_unit_proximity->sequence( 'actor.org_unit_proximity_id_seq' );
503
504     #---------------------------------------------------------------------
505     package actor::org_unit_type;
506     
507     actor::org_unit_type->table( 'actor.org_unit_type' );
508     actor::org_unit_type->sequence( 'actor.org_unit_type_id_seq' );
509
510     #---------------------------------------------------------------------
511     package actor::org_unit::hours_of_operation;
512     
513     actor::org_unit::hours_of_operation->table( 'actor.hours_of_operation' );
514
515     #---------------------------------------------------------------------
516     package actor::org_unit;
517     
518     actor::org_unit->table( 'actor.org_unit' );
519     actor::org_unit->sequence( 'actor.org_unit_id_seq' );
520
521     #---------------------------------------------------------------------
522     package actor::stat_cat;
523     
524     actor::stat_cat->table( 'actor.stat_cat' );
525     actor::stat_cat->sequence( 'actor.stat_cat_id_seq' );
526     
527     #---------------------------------------------------------------------
528     package actor::stat_cat_entry;
529     
530     actor::stat_cat_entry->table( 'actor.stat_cat_entry' );
531     actor::stat_cat_entry->sequence( 'actor.stat_cat_entry_id_seq' );
532     
533     #---------------------------------------------------------------------
534     package actor::stat_cat_entry_default;
535     
536     actor::stat_cat_entry_default->table( 'actor.stat_cat_entry_default' );
537     actor::stat_cat_entry_default->sequence( 'actor.stat_cat_entry_default_id_seq' );
538
539     #---------------------------------------------------------------------
540     package actor::stat_cat_entry_user_map;
541     
542     actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_usr_map' );
543     actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
544     
545     #---------------------------------------------------------------------
546     package actor::card;
547     
548     actor::card->table( 'actor.card' );
549     actor::card->sequence( 'actor.card_id_seq' );
550
551     #---------------------------------------------------------------------
552     package actor::usr_note;
553     
554     actor::usr_note->table( 'actor.usr_note' );
555     actor::usr_note->sequence( 'actor.usr_note_id_seq' );
556
557     #---------------------------------------------------------------------
558
559     #-------------------------------------------------------------------------------
560     package metabib::metarecord;
561
562     metabib::metarecord->table( 'metabib.metarecord' );
563     metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
564
565
566     #-------------------------------------------------------------------------------
567
568     #-------------------------------------------------------------------------------
569     package metabib::identifier_field_entry;
570
571     metabib::identifier_field_entry->table( 'metabib.identifier_field_entry' );
572     metabib::identifier_field_entry->sequence( 'metabib.identifier_field_entry_id_seq' );
573     metabib::identifier_field_entry->columns( 'FTS' => 'index_vector' );
574
575     #-------------------------------------------------------------------------------
576
577     #-------------------------------------------------------------------------------
578     package metabib::title_field_entry;
579
580     metabib::title_field_entry->table( 'metabib.title_field_entry' );
581     metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
582     metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
583
584 #   metabib::title_field_entry->add_trigger(
585 #       before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
586 #   );
587 #   metabib::title_field_entry->add_trigger(
588 #       before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
589 #   );
590
591     #-------------------------------------------------------------------------------
592
593     #-------------------------------------------------------------------------------
594     package metabib::author_field_entry;
595
596     metabib::author_field_entry->table( 'metabib.author_field_entry' );
597     metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
598     metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
599
600     #-------------------------------------------------------------------------------
601
602     #-------------------------------------------------------------------------------
603     package metabib::subject_field_entry;
604
605     metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
606     metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
607     metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
608
609     #-------------------------------------------------------------------------------
610
611     #-------------------------------------------------------------------------------
612     package metabib::keyword_field_entry;
613
614     metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
615     metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
616     metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
617
618     #-------------------------------------------------------------------------------
619     package metabib::series_field_entry;
620
621     metabib::series_field_entry->table( 'metabib.series_field_entry' );
622     metabib::series_field_entry->sequence( 'metabib.series_field_entry_id_seq' );
623     metabib::series_field_entry->columns( 'FTS' => 'index_vector' );
624
625     #-------------------------------------------------------------------------------
626
627     #-------------------------------------------------------------------------------
628     #package metabib::title_field_entry_source_map;
629
630     #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
631
632     #-------------------------------------------------------------------------------
633
634     #-------------------------------------------------------------------------------
635     #package metabib::author_field_entry_source_map;
636
637     #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
638
639     #-------------------------------------------------------------------------------
640
641     #-------------------------------------------------------------------------------
642     #package metabib::subject_field_entry_source_map;
643
644     #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
645
646     #-------------------------------------------------------------------------------
647
648     #-------------------------------------------------------------------------------
649     #package metabib::keyword_field_entry_source_map;
650
651     #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
652
653     #-------------------------------------------------------------------------------
654
655     #-------------------------------------------------------------------------------
656     package metabib::metarecord_source_map;
657
658     metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
659     metabib::metarecord_source_map->sequence( 'metabib.metarecord_source_map_id_seq' );
660
661     #-------------------------------------------------------------------------------
662     package authority::record_descriptor;
663
664     authority::record_descriptor->table( 'authority.rec_descriptor' );
665     authority::record_descriptor->sequence( 'authority.rec_descriptor_id_seq' );
666
667     #-------------------------------------------------------------------------------
668     package metabib::record_descriptor;
669
670     metabib::record_descriptor->table( 'metabib.rec_descriptor' );
671     metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
672
673     #-------------------------------------------------------------------------------
674
675
676     #-------------------------------------------------------------------------------
677     package authority::full_rec;
678
679     authority::full_rec->table( 'authority.full_rec' );
680     authority::full_rec->sequence( 'authority.full_rec_id_seq' );
681     authority::full_rec->columns( 'FTS' => 'index_vector' );
682
683     #-------------------------------------------------------------------------------
684     package metabib::full_rec;
685
686     metabib::full_rec->table( 'metabib.full_rec' );
687     metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
688     metabib::full_rec->columns( 'FTS' => 'index_vector' );
689
690     #-------------------------------------------------------------------------------
691
692     package permission::perm_list;
693
694     permission::perm_list->sequence( 'permission.perm_list_id_seq' );
695     permission::perm_list->table('permission.perm_list');
696
697     #-------------------------------------------------------------------------------
698
699     package permission::grp_tree;
700
701     permission::grp_tree->sequence( 'permission.grp_tree_id_seq' );
702     permission::grp_tree->table('permission.grp_tree');
703
704     #-------------------------------------------------------------------------------
705
706     package permission::usr_grp_map;
707
708     permission::usr_grp_map->sequence( 'permission.usr_grp_map_id_seq' );
709     permission::usr_grp_map->table('permission.usr_grp_map');
710
711     #-------------------------------------------------------------------------------
712
713     package permission::usr_work_ou_map;
714     permission::usr_work_ou_map->sequence('permission.usr_work_ou_map_id_seq');
715     permission::usr_work_ou_map->table('permission.usr_work_ou_map');
716
717     #-------------------------------------------------------------------------------
718
719     package permission::usr_perm_map;
720
721     permission::usr_perm_map->sequence( 'permission.usr_perm_map_id_seq' );
722     permission::usr_perm_map->table('permission.usr_perm_map');
723
724     #-------------------------------------------------------------------------------
725
726     package permission::grp_perm_map;
727
728     permission::grp_perm_map->sequence( 'permission.grp_perm_map_id_seq' );
729     permission::grp_perm_map->table('permission.grp_perm_map');
730
731     #-------------------------------------------------------------------------------
732
733     package action::hold_request;
734
735     action::hold_request->sequence( 'action.hold_request_id_seq' );
736     action::hold_request->table('action.hold_request');
737
738     #-------------------------------------------------------------------------------
739
740     package action::hold_notification;
741
742     action::hold_notification->sequence( 'action.hold_notification_id_seq' );
743     action::hold_notification->table('action.hold_notification');
744
745     #-------------------------------------------------------------------------------
746
747     package action::hold_copy_map;
748
749     action::hold_copy_map->sequence( 'action.hold_copy_map_id_seq' );
750     action::hold_copy_map->table('action.hold_copy_map');
751
752     #-------------------------------------------------------------------------------
753
754     package action::hold_transit_copy;
755
756     action::hold_transit_copy->sequence( 'action.transit_copy_id_seq' );
757     action::hold_transit_copy->table('action.hold_transit_copy');
758
759     #-------------------------------------------------------------------------------
760
761     package action::reservation_transit_copy;
762
763     action::reservation_transit_copy->sequence( 'action.transit_copy_id_seq' );
764     action::reservation_transit_copy->table('action.reservation_transit_copy');
765
766     #-------------------------------------------------------------------------------
767
768     package action::transit_copy;
769
770     action::transit_copy->sequence( 'action.transit_copy_id_seq' );
771     action::transit_copy->table('action.transit_copy');
772
773     #-------------------------------------------------------------------------------
774
775     package action::unfulfilled_hold_list;
776
777     action::unfulfilled_hold_list->sequence( 'action.unfulfilled_hold_list_id_seq' );
778     action::unfulfilled_hold_list->table('action.unfulfilled_hold_list');
779
780     #-------------------------------------------------------------------------------
781
782     package serial::subscription;
783
784     serial::subscription->sequence( 'serial.subscription_id_seq' );
785     serial::subscription->table('serial.subscription');
786
787     #-------------------------------------------------------------------------------
788
789     package serial::issuance;
790
791     serial::issuance->sequence( 'serial.issuance_id_seq' );
792     serial::issuance->table('serial.issuance');
793
794     #-------------------------------------------------------------------------------
795
796     package serial::item;
797
798     serial::item->sequence( 'serial.item_id_seq' );
799     serial::item->table('serial.item');
800
801     #-------------------------------------------------------------------------------
802
803     package serial::unit;
804
805     serial::unit->sequence( 'asset.copy_id_seq' );
806     serial::unit->table('serial.unit');
807
808     #-------------------------------------------------------------------------------
809
810     package config::language_map;
811     config::language_map->table('config.language_map');
812
813     #-------------------------------------------------------------------------------
814
815     package config::i18n_locale;
816     config::i18n_locale->table('config.i18n_locale');
817
818     #-------------------------------------------------------------------------------
819
820     package config::i18n_core;
821     config::i18n_core->sequence( 'config.i18n_core_id_seq' );
822     config::i18n_core->table('config.i18n_core');
823
824     #-------------------------------------------------------------------------------
825
826     package config::item_form_map;
827     config::item_form_map->table('config.item_form_map');
828
829     #-------------------------------------------------------------------------------
830
831     package config::lit_form_map;
832     config::lit_form_map->table('config.lit_form_map');
833
834     #-------------------------------------------------------------------------------
835
836     package config::item_type_map;
837     config::item_type_map->table('config.item_type_map');
838
839     #-------------------------------------------------------------------------------
840     package config::audience_map;
841     config::audience_map->table('config.audience_map');
842
843     #-------------------------------------------------------------------------------
844
845
846 }
847
848 for my $class ( qw/
849             biblio::record_entry
850             metabib::metarecord
851             metabib::title_field_entry
852             metabib::author_field_entry
853             metabib::subject_field_entry
854             metabib::keyword_field_entry
855             metabib::series_field_entry
856             metabib::metarecord_source_map
857             metabib::record_descriptor
858             metabib::full_rec
859             authority::record_descriptor
860             authority::full_rec
861         / ) {
862
863     (my $method_class = $class) =~ s/::/./go;
864
865     for my $type ( qw/create create_start create_push create_finish/ ) {
866         my ($name,$part) = split('_', $type);
867
868         my $apiname = "open-ils.storage.direct.$method_class.batch.$name";
869         $apiname .= ".$part" if ($part);
870
871         OpenILS::Application::Storage->register_method(
872             api_name    => $apiname,
873             method      => "copy_$type",
874             api_level   => 1,
875             'package'   => 'OpenILS::Application::Storage',
876             cdbi        => $class,
877         );
878     }
879 }
880
881
882 1;