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