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