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