final C code logging patchups
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / Driver / Pg / dbi.pm
1 {
2         #---------------------------------------------------------------------
3         package money::grocery;
4         
5         money::grocery->table( 'money.grocery' );
6         money::grocery->sequence( 'money.billable_xact_id_seq' );
7
8         #---------------------------------------------------------------------
9         package money::billable_transaction;
10         
11         money::billable_transaction->table( 'money.billable_xact' );
12         money::billable_transaction->sequence( 'money.billable_xact_id_seq' );
13
14         #---------------------------------------------------------------------
15         package money::billing;
16         
17         money::billing->table( 'money.billing' );
18         money::billing->sequence( 'money.billing_id_seq' );
19
20         #---------------------------------------------------------------------
21         package money::payment;
22         
23         money::payment->table( 'money.payment_view' );
24
25         #---------------------------------------------------------------------
26         package money::cash_payment;
27         
28         money::cash_payment->table( 'money.cash_payment' );
29         money::cash_payment->sequence( 'money.payment_id_seq' );
30
31         #---------------------------------------------------------------------
32         package money::check_payment;
33         
34         money::check_payment->table( 'money.check_payment' );
35         money::check_payment->sequence( 'money.payment_id_seq' );
36
37         #---------------------------------------------------------------------
38         package money::credit_payment;
39         
40         money::credit_payment->table( 'money.credit_payment' );
41         money::credit_payment->sequence( 'money.payment_id_seq' );
42
43         #---------------------------------------------------------------------
44         package money::credit_card_payment;
45         
46         money::credit_card_payment->table( 'money.credit_card_payment' );
47         money::credit_card_payment->sequence( 'money.payment_id_seq' );
48
49         #---------------------------------------------------------------------
50         package money::work_payment;
51         
52         money::work_payment->table( 'money.work_payment' );
53         money::work_payment->sequence( 'money.payment_id_seq' );
54
55         #---------------------------------------------------------------------
56         package money::forgive_payment;
57         
58         money::forgive_payment->table( 'money.forgive_payment' );
59         money::forgive_payment->sequence( 'money.payment_id_seq' );
60
61         #---------------------------------------------------------------------
62         package money::open_billable_transaction_summary;
63         
64         money::open_billable_transaction_summary->table( 'money.open_billable_xact_summary' );
65
66         #---------------------------------------------------------------------
67         package money::billable_transaction_summary;
68         
69         money::billable_transaction_summary->table( 'money.billable_xact_summary' );
70
71         #---------------------------------------------------------------------
72         package money::open_user_summary;
73         
74         money::open_user_summary->table( 'money.open_usr_summary' );
75
76         #---------------------------------------------------------------------
77         package money::user_summary;
78         
79         money::user_summary->table( 'money.usr_summary' );
80
81         #---------------------------------------------------------------------
82         package money::open_user_circulation_summary;
83         
84         money::open_user_circulation_summary->table( 'money.open_usr_circulation_summary' );
85
86         #---------------------------------------------------------------------
87         package money::user_circulation_summary;
88         
89         money::user_circulation_summary->table( 'money.usr_circulation_summary' );
90
91         #---------------------------------------------------------------------
92         package action::circulation;
93         
94         action::circulation->table( 'action.circulation' );
95         action::circulation->sequence( 'money.billable_xact_id_seq' );
96
97         #---------------------------------------------------------------------
98         package action::open_circulation;
99         
100         action::open_circulation->table( 'action.open_circulation' );
101
102         #---------------------------------------------------------------------
103         package action::survey;
104         
105         action::survey->table( 'action.survey' );
106         action::survey->sequence( 'action.survey_id_seq' );
107         
108         #---------------------------------------------------------------------
109         package action::survey_question;
110         
111         action::survey_question->table( 'action.survey_question' );
112         action::survey_question->sequence( 'action.survey_question_id_seq' );
113         
114         #---------------------------------------------------------------------
115         package action::survey_answer;
116         
117         action::survey_answer->table( 'action.survey_answer' );
118         action::survey_answer->sequence( 'action.survey_answer_id_seq' );
119         
120         #---------------------------------------------------------------------
121         package action::survey_response;
122         
123         action::survey_response->table( 'action.survey_response' );
124         action::survey_response->sequence( 'action.survey_response_id_seq' );
125         
126         #---------------------------------------------------------------------
127         package config::copy_status;
128         
129         config::copy_status->table( 'config.copy_status' );
130         config::copy_status->sequence( 'config.copy_status_id_seq' );
131
132         #---------------------------------------------------------------------
133         package config::rules::circ_duration;
134         
135         config::rules::circ_duration->table( 'config.rule_circ_duration' );
136         config::rules::circ_duration->sequence( 'config.rule_circ_duration_id_seq' );
137         
138         #---------------------------------------------------------------------
139         package config::rules::age_hold_protect;
140         
141         config::rules::age_hold_protect->table( 'config.rule_age_hold_protect' );
142         config::rules::age_hold_protect->sequence( 'config.rule_age_hold_protect_id_seq' );
143         
144         #---------------------------------------------------------------------
145         package config::rules::max_fine;
146         
147         config::rules::max_fine->table( 'config.rule_max_fine' );
148         config::rules::max_fine->sequence( 'config.rule_max_fine_id_seq' );
149         
150         #---------------------------------------------------------------------
151         package config::rules::recuring_fine;
152         
153         config::rules::recuring_fine->table( 'config.rule_recuring_fine' );
154         config::rules::recuring_fine->sequence( 'config.rule_recuring_fine_id_seq' );
155         
156         #---------------------------------------------------------------------
157         package config::net_access_level;
158         
159         config::net_access_level->table( 'config.net_access_level' );
160         config::net_access_level->sequence( 'config.net_access_level_id_seq' );
161         
162         #---------------------------------------------------------------------
163         package config::standing;
164         
165         config::standing->table( 'config.standing' );
166         config::standing->sequence( 'config.standing_id_seq' );
167         
168         #---------------------------------------------------------------------
169         package config::metabib_field;
170         
171         config::metabib_field->table( 'config.metabib_field' );
172         config::metabib_field->sequence( 'config.metabib_field_id_seq' );
173         
174         #---------------------------------------------------------------------
175         package config::bib_source;
176         
177         config::bib_source->table( 'config.bib_source' );
178         config::bib_source->sequence( 'config.bib_source_id_seq' );
179         
180         #---------------------------------------------------------------------
181         package config::identification_type;
182         
183         config::identification_type->table( 'config.identification_type' );
184         config::identification_type->sequence( 'config.identification_type_id_seq' );
185         
186         #---------------------------------------------------------------------
187         package asset::call_number_note;
188         
189         asset::call_number_note->table( 'asset.call_number_note' );
190         asset::call_number_note->sequence( 'asset.call_number_note_id_seq' );
191         
192         #---------------------------------------------------------------------
193         package asset::copy_note;
194         
195         asset::copy_note->table( 'asset.copy_note' );
196         asset::copy_note->sequence( 'asset.copy_note_id_seq' );
197
198         #---------------------------------------------------------------------
199         package asset::call_number;
200         
201         asset::call_number->table( 'asset.call_number' );
202         asset::call_number->sequence( 'asset.call_number_id_seq' );
203         
204         #---------------------------------------------------------------------
205         package asset::copy_location;
206         
207         asset::copy_location->table( 'asset.copy_location' );
208         asset::copy_location->sequence( 'asset.copy_location_id_seq' );
209
210         #---------------------------------------------------------------------
211         package asset::copy;
212         
213         asset::copy->table( 'asset.copy' );
214         asset::copy->sequence( 'asset.copy_id_seq' );
215
216         #---------------------------------------------------------------------
217         package asset::stat_cat;
218         
219         asset::stat_cat->table( 'asset.stat_cat' );
220         asset::stat_cat->sequence( 'asset.stat_cat_id_seq' );
221         
222         #---------------------------------------------------------------------
223         package asset::stat_cat_entry;
224         
225         asset::stat_cat_entry->table( 'asset.stat_cat_entry' );
226         asset::stat_cat_entry->sequence( 'asset.stat_cat_entry_id_seq' );
227         
228         #---------------------------------------------------------------------
229         package asset::stat_cat_entry_copy_map;
230         
231         asset::stat_cat_entry_copy_map->table( 'asset.stat_cat_entry_copy_map' );
232         asset::stat_cat_entry_copy_map->sequence( 'asset.stat_cat_entry_copy_map_id_seq' );
233         
234         #---------------------------------------------------------------------
235         package authority::record_entry;
236         
237         authority::record_entry->table( 'authority.record_entry' );
238         authority::record_entry->sequence( 'authority.record_entry_id_seq' );
239
240         #---------------------------------------------------------------------
241         package biblio::record_entry;
242         
243         biblio::record_entry->table( 'biblio.record_entry' );
244         biblio::record_entry->sequence( 'biblio.record_entry_id_seq' );
245
246         #---------------------------------------------------------------------
247         #package biblio::record_marc;
248         #
249         #biblio::record_marc->table( 'biblio.record_marc' );
250         #biblio::record_marc->sequence( 'biblio.record_marc_id_seq' );
251         #
252         #---------------------------------------------------------------------
253         package authority::record_note;
254         
255         authority::record_note->table( 'authority.record_note' );
256         authority::record_note->sequence( 'authority.record_note_id_seq' );
257
258         #---------------------------------------------------------------------
259         package biblio::record_note;
260         
261         biblio::record_note->table( 'biblio.record_note' );
262         biblio::record_note->sequence( 'biblio.record_note_id_seq' );
263         
264         #---------------------------------------------------------------------
265         package actor::user;
266         
267         actor::user->table( 'actor.usr' );
268         actor::user->sequence( 'actor.usr_id_seq' );
269
270         #---------------------------------------------------------------------
271         package actor::org_unit_setting;
272         
273         actor::org_unit_setting->table( 'actor.org_unit_setting' );
274         actor::org_unit_setting->sequence( 'actor.org_unit_setting_id_seq' );
275
276         #---------------------------------------------------------------------
277         package actor::user_setting;
278         
279         actor::user_setting->table( 'actor.usr_setting' );
280         actor::user_setting->sequence( 'actor.usr_setting_id_seq' );
281
282         #---------------------------------------------------------------------
283         package actor::user_address;
284         
285         actor::user_address->table( 'actor.usr_address' );
286         actor::user_address->sequence( 'actor.usr_address_id_seq' );
287
288         #---------------------------------------------------------------------
289         package actor::org_address;
290         
291         actor::org_address->table( 'actor.org_address' );
292         actor::org_address->sequence( 'actor.org_address_id_seq' );
293         
294         #---------------------------------------------------------------------
295         package actor::profile;
296         
297         actor::profile->table( 'actor.profile' );
298         actor::profile->sequence( 'actor.profile_id_seq' );
299         
300         #---------------------------------------------------------------------
301         package actor::org_unit_type;
302         
303         actor::org_unit_type->table( 'actor.org_unit_type' );
304         actor::org_unit_type->sequence( 'actor.org_unit_type_id_seq' );
305
306         #---------------------------------------------------------------------
307         package actor::org_unit;
308         
309         actor::org_unit->table( 'actor.org_unit' );
310         actor::org_unit->sequence( 'actor.org_unit_id_seq' );
311
312         #---------------------------------------------------------------------
313         package actor::stat_cat;
314         
315         actor::stat_cat->table( 'actor.stat_cat' );
316         actor::stat_cat->sequence( 'actor.stat_cat_id_seq' );
317         
318         #---------------------------------------------------------------------
319         package actor::stat_cat_entry;
320         
321         actor::stat_cat_entry->table( 'actor.stat_cat_entry' );
322         actor::stat_cat_entry->sequence( 'actor.stat_cat_entry_id_seq' );
323         
324         #---------------------------------------------------------------------
325         package actor::stat_cat_entry_user_map;
326         
327         actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_usr_map' );
328         actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
329         
330         #---------------------------------------------------------------------
331         package actor::card;
332         
333         actor::card->table( 'actor.card' );
334         actor::card->sequence( 'actor.card_id_seq' );
335
336         #---------------------------------------------------------------------
337
338         #-------------------------------------------------------------------------------
339         package metabib::metarecord;
340
341         metabib::metarecord->table( 'metabib.metarecord' );
342         metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
343
344         OpenILS::Application::Storage->register_method(
345                 api_name        => 'open-ils.storage.direct.metabib.metarecord.batch.create',
346                 method          => 'copy_create',
347                 api_level       => 1,
348                 'package'       => 'OpenILS::Application::Storage',
349                 cdbi            => 'metabib::metarecord',
350         );
351
352
353         #-------------------------------------------------------------------------------
354
355         #-------------------------------------------------------------------------------
356         package metabib::title_field_entry;
357
358         metabib::title_field_entry->table( 'metabib.title_field_entry' );
359         metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
360         metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
361
362 #       metabib::title_field_entry->add_trigger(
363 #               before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
364 #       );
365 #       metabib::title_field_entry->add_trigger(
366 #               before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
367 #       );
368
369         OpenILS::Application::Storage->register_method(
370                 api_name        => 'open-ils.storage.direct.metabib.title_field_entry.batch.create',
371                 method          => 'copy_create',
372                 api_level       => 1,
373                 'package'       => 'OpenILS::Application::Storage',
374                 cdbi            => 'metabib::title_field_entry',
375         );
376
377         #-------------------------------------------------------------------------------
378
379         #-------------------------------------------------------------------------------
380         package metabib::author_field_entry;
381
382         metabib::author_field_entry->table( 'metabib.author_field_entry' );
383         metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
384         metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
385
386         OpenILS::Application::Storage->register_method(
387                 api_name        => 'open-ils.storage.direct.metabib.author_field_entry.batch.create',
388                 method          => 'copy_create',
389                 api_level       => 1,
390                 'package'       => 'OpenILS::Application::Storage',
391                 cdbi            => 'metabib::author_field_entry',
392         );
393
394         #-------------------------------------------------------------------------------
395
396         #-------------------------------------------------------------------------------
397         package metabib::subject_field_entry;
398
399         metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
400         metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
401         metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
402
403         OpenILS::Application::Storage->register_method(
404                 api_name        => 'open-ils.storage.direct.metabib.subject_field_entry.batch.create',
405                 method          => 'copy_create',
406                 api_level       => 1,
407                 'package'       => 'OpenILS::Application::Storage',
408                 cdbi            => 'metabib::subject_field_entry',
409         );
410
411         #-------------------------------------------------------------------------------
412
413         #-------------------------------------------------------------------------------
414         package metabib::keyword_field_entry;
415
416         metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
417         metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
418         metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
419
420         OpenILS::Application::Storage->register_method(
421                 api_name        => 'open-ils.storage.direct.metabib.keyword_field_entry.batch.create',
422                 method          => 'copy_create',
423                 api_level       => 1,
424                 'package'       => 'OpenILS::Application::Storage',
425                 cdbi            => 'metabib::keyword_field_entry',
426         );
427
428         #-------------------------------------------------------------------------------
429         package metabib::series_field_entry;
430
431         metabib::series_field_entry->table( 'metabib.series_field_entry' );
432         metabib::series_field_entry->sequence( 'metabib.series_field_entry_id_seq' );
433         metabib::series_field_entry->columns( 'FTS' => 'index_vector' );
434
435         OpenILS::Application::Storage->register_method(
436                 api_name        => 'open-ils.storage.direct.metabib.series_field_entry.batch.create',
437                 method          => 'copy_create',
438                 api_level       => 1,
439                 'package'       => 'OpenILS::Application::Storage',
440                 cdbi            => 'metabib::series_field_entry',
441         );
442
443         #-------------------------------------------------------------------------------
444
445         #-------------------------------------------------------------------------------
446         #package metabib::title_field_entry_source_map;
447
448         #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
449
450         #-------------------------------------------------------------------------------
451
452         #-------------------------------------------------------------------------------
453         #package metabib::author_field_entry_source_map;
454
455         #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
456
457         #-------------------------------------------------------------------------------
458
459         #-------------------------------------------------------------------------------
460         #package metabib::subject_field_entry_source_map;
461
462         #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
463
464         #-------------------------------------------------------------------------------
465
466         #-------------------------------------------------------------------------------
467         #package metabib::keyword_field_entry_source_map;
468
469         #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
470
471         #-------------------------------------------------------------------------------
472
473         #-------------------------------------------------------------------------------
474         package metabib::metarecord_source_map;
475
476         metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
477         OpenILS::Application::Storage->register_method(
478                 api_name        => 'open-ils.storage.direct.metabib.metarecord_source_map.batch.create',
479                 method          => 'copy_create',
480                 api_level       => 1,
481                 'package'       => 'OpenILS::Application::Storage',
482                 cdbi            => 'metabib::metarecord_source_map',
483         );
484
485
486         #-------------------------------------------------------------------------------
487         package authority::record_descriptor;
488
489         authority::record_descriptor->table( 'authority.rec_descriptor' );
490         authority::record_descriptor->sequence( 'authority.rec_descriptor_id_seq' );
491
492         OpenILS::Application::Storage->register_method(
493                 api_name        => 'open-ils.storage.direct.authority.record_descriptor.batch.create',
494                 method          => 'copy_create',
495                 api_level       => 1,
496                 'package'       => 'OpenILS::Application::Storage',
497                 cdbi            => 'authority::record_descriptor',
498         );
499
500         #-------------------------------------------------------------------------------
501         package metabib::record_descriptor;
502
503         metabib::record_descriptor->table( 'metabib.rec_descriptor' );
504         metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
505
506         OpenILS::Application::Storage->register_method(
507                 api_name        => 'open-ils.storage.direct.metabib.record_descriptor.batch.create',
508                 method          => 'copy_create',
509                 api_level       => 1,
510                 'package'       => 'OpenILS::Application::Storage',
511                 cdbi            => 'metabib::record_descriptor',
512         );
513
514         #-------------------------------------------------------------------------------
515
516
517         #-------------------------------------------------------------------------------
518         package authority::full_rec;
519
520         authority::full_rec->table( 'authority.full_rec' );
521         authority::full_rec->sequence( 'authority.full_rec_id_seq' );
522         authority::full_rec->columns( 'FTS' => 'index_vector' );
523
524         OpenILS::Application::Storage->register_method(
525                 api_name        => 'open-ils.storage.direct.authority.full_rec.batch.create',
526                 method          => 'copy_create',
527                 api_level       => 1,
528                 'package'       => 'OpenILS::Application::Storage',
529                 cdbi            => 'authority::full_rec',
530         );
531
532
533         #-------------------------------------------------------------------------------
534         package metabib::full_rec;
535
536         metabib::full_rec->table( 'metabib.full_rec' );
537         metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
538         metabib::full_rec->columns( 'FTS' => 'index_vector' );
539
540         OpenILS::Application::Storage->register_method(
541                 api_name        => 'open-ils.storage.direct.metabib.full_rec.batch.create',
542                 method          => 'copy_create',
543                 api_level       => 1,
544                 'package'       => 'OpenILS::Application::Storage',
545                 cdbi            => 'metabib::full_rec',
546         );
547
548
549         #-------------------------------------------------------------------------------
550
551         package permission::perm_list;
552
553         permission::perm_list->sequence( 'permission.perm_list_id_seq' );
554         permission::perm_list->table('permission.perm_list');
555
556         #-------------------------------------------------------------------------------
557
558         package permission::grp_tree;
559
560         permission::grp_tree->sequence( 'permission.grp_tree_id_seq' );
561         permission::grp_tree->table('permission.grp_tree');
562
563         #-------------------------------------------------------------------------------
564
565         package permission::usr_grp_map;
566
567         permission::usr_grp_map->sequence( 'permission.usr_grp_map_id_seq' );
568         permission::usr_grp_map->table('permission.usr_grp_map');
569
570         #-------------------------------------------------------------------------------
571
572         package permission::usr_perm_map;
573
574         permission::usr_perm_map->sequence( 'permission.usr_perm_map_id_seq' );
575         permission::usr_perm_map->table('permission.usr_perm_map');
576
577         #-------------------------------------------------------------------------------
578
579         package permission::grp_perm_map;
580
581         permission::grp_perm_map->sequence( 'permission.grp_perm_map_id_seq' );
582         permission::grp_perm_map->table('permission.grp_perm_map');
583
584         #-------------------------------------------------------------------------------
585
586         package action::hold_request;
587
588         action::hold_request->sequence( 'action.hold_request_id_seq' );
589         action::hold_request->table('action.hold_request');
590
591         #-------------------------------------------------------------------------------
592
593         package action::hold_notification;
594
595         action::hold_notification->sequence( 'action.hold_notification_id_seq' );
596         action::hold_notification->table('action.hold_notification');
597
598         #-------------------------------------------------------------------------------
599
600         package action::hold_copy_map;
601
602         action::hold_copy_map->sequence( 'action.hold_copy_map_id_seq' );
603         action::hold_copy_map->table('action.hold_copy_map');
604
605         #-------------------------------------------------------------------------------
606
607         package action::hold_transit_copy;
608
609         action::hold_transit_copy->sequence( 'action.transit_copy_id_seq' );
610         action::hold_transit_copy->table('action.hold_transit_copy');
611
612         #-------------------------------------------------------------------------------
613
614         package action::transit_copy;
615
616         action::transit_copy->sequence( 'action.transit_copy_id_seq' );
617         action::transit_copy->table('action.transit_copy');
618
619         #-------------------------------------------------------------------------------
620
621         package action::unfulfilled_hold_list;
622
623         action::unfulfilled_hold_list->sequence( 'action.unfulfilled_hold_list_id_seq' );
624         action::unfulfilled_hold_list->table('action.unfulfilled_hold_list');
625
626         #-------------------------------------------------------------------------------
627
628
629 }
630
631 1;