]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/dbi.pm
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[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_user_map;
523         
524         actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_usr_map' );
525         actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
526         
527         #---------------------------------------------------------------------
528         package actor::card;
529         
530         actor::card->table( 'actor.card' );
531         actor::card->sequence( 'actor.card_id_seq' );
532
533         #---------------------------------------------------------------------
534         package actor::usr_note;
535         
536         actor::usr_note->table( 'actor.usr_note' );
537         actor::usr_note->sequence( 'actor.usr_note_id_seq' );
538
539         #---------------------------------------------------------------------
540
541         #-------------------------------------------------------------------------------
542         package metabib::metarecord;
543
544         metabib::metarecord->table( 'metabib.metarecord' );
545         metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
546
547
548         #-------------------------------------------------------------------------------
549
550         #-------------------------------------------------------------------------------
551         package metabib::identifier_field_entry;
552
553         metabib::identifier_field_entry->table( 'metabib.identifier_field_entry' );
554         metabib::identifier_field_entry->sequence( 'metabib.identifier_field_entry_id_seq' );
555         metabib::identifier_field_entry->columns( 'FTS' => 'index_vector' );
556
557         #-------------------------------------------------------------------------------
558
559         #-------------------------------------------------------------------------------
560         package metabib::title_field_entry;
561
562         metabib::title_field_entry->table( 'metabib.title_field_entry' );
563         metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
564         metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
565
566 #       metabib::title_field_entry->add_trigger(
567 #               before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
568 #       );
569 #       metabib::title_field_entry->add_trigger(
570 #               before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
571 #       );
572
573         #-------------------------------------------------------------------------------
574
575         #-------------------------------------------------------------------------------
576         package metabib::author_field_entry;
577
578         metabib::author_field_entry->table( 'metabib.author_field_entry' );
579         metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
580         metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
581
582         #-------------------------------------------------------------------------------
583
584         #-------------------------------------------------------------------------------
585         package metabib::subject_field_entry;
586
587         metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
588         metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
589         metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
590
591         #-------------------------------------------------------------------------------
592
593         #-------------------------------------------------------------------------------
594         package metabib::keyword_field_entry;
595
596         metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
597         metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
598         metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
599
600         #-------------------------------------------------------------------------------
601         package metabib::series_field_entry;
602
603         metabib::series_field_entry->table( 'metabib.series_field_entry' );
604         metabib::series_field_entry->sequence( 'metabib.series_field_entry_id_seq' );
605         metabib::series_field_entry->columns( 'FTS' => 'index_vector' );
606
607         #-------------------------------------------------------------------------------
608
609         #-------------------------------------------------------------------------------
610         #package metabib::title_field_entry_source_map;
611
612         #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
613
614         #-------------------------------------------------------------------------------
615
616         #-------------------------------------------------------------------------------
617         #package metabib::author_field_entry_source_map;
618
619         #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
620
621         #-------------------------------------------------------------------------------
622
623         #-------------------------------------------------------------------------------
624         #package metabib::subject_field_entry_source_map;
625
626         #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
627
628         #-------------------------------------------------------------------------------
629
630         #-------------------------------------------------------------------------------
631         #package metabib::keyword_field_entry_source_map;
632
633         #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
634
635         #-------------------------------------------------------------------------------
636
637         #-------------------------------------------------------------------------------
638         package metabib::metarecord_source_map;
639
640         metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
641         metabib::metarecord_source_map->sequence( 'metabib.metarecord_source_map_id_seq' );
642
643         #-------------------------------------------------------------------------------
644         package authority::record_descriptor;
645
646         authority::record_descriptor->table( 'authority.rec_descriptor' );
647         authority::record_descriptor->sequence( 'authority.rec_descriptor_id_seq' );
648
649         #-------------------------------------------------------------------------------
650         package metabib::record_descriptor;
651
652         metabib::record_descriptor->table( 'metabib.rec_descriptor' );
653         metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
654
655         #-------------------------------------------------------------------------------
656
657
658         #-------------------------------------------------------------------------------
659         package authority::full_rec;
660
661         authority::full_rec->table( 'authority.full_rec' );
662         authority::full_rec->sequence( 'authority.full_rec_id_seq' );
663         authority::full_rec->columns( 'FTS' => 'index_vector' );
664
665         #-------------------------------------------------------------------------------
666         package metabib::full_rec;
667
668         metabib::full_rec->table( 'metabib.full_rec' );
669         metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
670         metabib::full_rec->columns( 'FTS' => 'index_vector' );
671
672         #-------------------------------------------------------------------------------
673
674         package permission::perm_list;
675
676         permission::perm_list->sequence( 'permission.perm_list_id_seq' );
677         permission::perm_list->table('permission.perm_list');
678
679         #-------------------------------------------------------------------------------
680
681         package permission::grp_tree;
682
683         permission::grp_tree->sequence( 'permission.grp_tree_id_seq' );
684         permission::grp_tree->table('permission.grp_tree');
685
686         #-------------------------------------------------------------------------------
687
688         package permission::usr_grp_map;
689
690         permission::usr_grp_map->sequence( 'permission.usr_grp_map_id_seq' );
691         permission::usr_grp_map->table('permission.usr_grp_map');
692
693         #-------------------------------------------------------------------------------
694
695         package permission::usr_work_ou_map;
696         permission::usr_work_ou_map->sequence('permission.usr_work_ou_map_id_seq');
697         permission::usr_work_ou_map->table('permission.usr_work_ou_map');
698
699         #-------------------------------------------------------------------------------
700
701         package permission::usr_perm_map;
702
703         permission::usr_perm_map->sequence( 'permission.usr_perm_map_id_seq' );
704         permission::usr_perm_map->table('permission.usr_perm_map');
705
706         #-------------------------------------------------------------------------------
707
708         package permission::grp_perm_map;
709
710         permission::grp_perm_map->sequence( 'permission.grp_perm_map_id_seq' );
711         permission::grp_perm_map->table('permission.grp_perm_map');
712
713         #-------------------------------------------------------------------------------
714
715         package action::hold_request;
716
717         action::hold_request->sequence( 'action.hold_request_id_seq' );
718         action::hold_request->table('action.hold_request');
719
720         #-------------------------------------------------------------------------------
721
722         package action::hold_notification;
723
724         action::hold_notification->sequence( 'action.hold_notification_id_seq' );
725         action::hold_notification->table('action.hold_notification');
726
727         #-------------------------------------------------------------------------------
728
729         package action::hold_copy_map;
730
731         action::hold_copy_map->sequence( 'action.hold_copy_map_id_seq' );
732         action::hold_copy_map->table('action.hold_copy_map');
733
734         #-------------------------------------------------------------------------------
735
736         package action::hold_transit_copy;
737
738         action::hold_transit_copy->sequence( 'action.transit_copy_id_seq' );
739         action::hold_transit_copy->table('action.hold_transit_copy');
740
741         #-------------------------------------------------------------------------------
742
743         package action::reservation_transit_copy;
744
745         action::reservation_transit_copy->sequence( 'action.transit_copy_id_seq' );
746         action::reservation_transit_copy->table('action.reservation_transit_copy');
747
748         #-------------------------------------------------------------------------------
749
750         package action::transit_copy;
751
752         action::transit_copy->sequence( 'action.transit_copy_id_seq' );
753         action::transit_copy->table('action.transit_copy');
754
755         #-------------------------------------------------------------------------------
756
757         package action::unfulfilled_hold_list;
758
759         action::unfulfilled_hold_list->sequence( 'action.unfulfilled_hold_list_id_seq' );
760         action::unfulfilled_hold_list->table('action.unfulfilled_hold_list');
761
762         #-------------------------------------------------------------------------------
763
764         package serial::subscription;
765
766         serial::subscription->sequence( 'serial.subscription_id_seq' );
767         serial::subscription->table('serial.subscription');
768
769         #-------------------------------------------------------------------------------
770
771         package serial::issuance;
772
773         serial::issuance->sequence( 'serial.issuance_id_seq' );
774         serial::issuance->table('serial.issuance');
775
776         #-------------------------------------------------------------------------------
777
778         package serial::item;
779
780         serial::item->sequence( 'serial.item_id_seq' );
781         serial::item->table('serial.item');
782
783         #-------------------------------------------------------------------------------
784
785         package serial::unit;
786
787         serial::unit->sequence( 'asset.copy_id_seq' );
788         serial::unit->table('serial.unit');
789
790         #-------------------------------------------------------------------------------
791
792         package config::language_map;
793         config::language_map->table('config.language_map');
794
795         #-------------------------------------------------------------------------------
796
797         package config::i18n_locale;
798         config::i18n_locale->table('config.i18n_locale');
799
800         #-------------------------------------------------------------------------------
801
802         package config::i18n_core;
803         config::i18n_core->sequence( 'config.i18n_core_id_seq' );
804         config::i18n_core->table('config.i18n_core');
805
806         #-------------------------------------------------------------------------------
807
808         package config::item_form_map;
809         config::item_form_map->table('config.item_form_map');
810
811         #-------------------------------------------------------------------------------
812
813         package config::lit_form_map;
814         config::lit_form_map->table('config.lit_form_map');
815
816         #-------------------------------------------------------------------------------
817
818         package config::item_type_map;
819         config::item_type_map->table('config.item_type_map');
820
821         #-------------------------------------------------------------------------------
822         package config::audience_map;
823         config::audience_map->table('config.audience_map');
824
825         #-------------------------------------------------------------------------------
826
827
828 }
829
830 for my $class ( qw/
831                         biblio::record_entry
832                         metabib::metarecord
833                         metabib::title_field_entry
834                         metabib::author_field_entry
835                         metabib::subject_field_entry
836                         metabib::keyword_field_entry
837                         metabib::series_field_entry
838                         metabib::metarecord_source_map
839                         metabib::record_descriptor
840                         metabib::full_rec
841                         authority::record_descriptor
842                         authority::full_rec
843                 / ) {
844
845         (my $method_class = $class) =~ s/::/./go;
846
847         for my $type ( qw/create create_start create_push create_finish/ ) {
848                 my ($name,$part) = split('_', $type);
849
850                 my $apiname = "open-ils.storage.direct.$method_class.batch.$name";
851                 $apiname .= ".$part" if ($part);
852
853                 OpenILS::Application::Storage->register_method(
854                         api_name        => $apiname,
855                         method          => "copy_$type",
856                         api_level       => 1,
857                         'package'       => 'OpenILS::Application::Storage',
858                         cdbi            => $class,
859                 );
860         }
861 }
862
863
864 1;