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