1/*
2* $Id: load_stub.c,v 1.2 2005/01/03 20:08:58 jms Exp $
3*
4* Revision History
5* ===================
6* $Log: load_stub.c,v $
7* Revision 1.2 2005/01/03 20:08:58 jms
8* change line terminations
9*
10* Revision 1.1.1.1 2004/11/24 23:31:46 jms
11* re-establish external server
12*
13* Revision 1.1.1.1 2003/04/03 18:54:21 jms
14* recreation after CVS crash
15*
16* Revision 1.1.1.1 2003/04/03 18:54:21 jms
17* initial checkin
18*
19*
20*/
21/*****************************************************************
22 * Title: load_stub.c
23 * Description:
24 * stub routines for:
25 * inline load of dss benchmark
26 * header creation for dss benchmark
27 *
28 *****************************************************************
29 */
30
31#include <stdio.h>
32#include "config.h"
33#include "dss.h"
34#include "dsstypes.h"
35
36int
37close_direct(void)
38{
39 /* any post load cleanup goes here */
40 return(0);
41}
42
43int
44prep_direct(void)
45{
46 /* any preload prep goes here */
47 return(0);
48}
49
50int
51hd_cust (FILE *f)
52{
53 static int count = 0;
54
55 if (! count++)
56 printf("No header has been defined for the customer table\n");
57
58 return(0);
59}
60
61int
62ld_cust (customer_t *cp, int mode)
63{
64 static int count = 0;
65
66 if (! count++)
67 printf("%s %s\n",
68 "No load routine has been defined",
69 "for the customer table");
70
71 return(0);
72}
73
74int
75hd_part (FILE *f)
76{
77 static int count = 0;
78
79 if (! count++)
80 printf("No header has been defined for the part table\n");
81
82 return(0);
83}
84
85int
86ld_part (part_t *pp, int mode)
87{
88 static int count = 0;
89
90 if (! count++)
91 printf("No load routine has been defined for the part table\n");
92
93 return(0);
94}
95
96int
97ld_psupp (part_t *pp, int mode)
98{
99 static int count = 0;
100
101 if (! count++)
102 printf("%s %s\n",
103 "No load routine has been defined for the",
104 "psupp table\n");
105
106 return(0);
107
108}
109
110
111int
112hd_supp (FILE *f)
113{
114 static int count = 0;
115
116 if (! count++)
117 printf("No header has been defined for the supplier table\n");
118
119 return(0);
120}
121
122int
123ld_supp (supplier_t *sp, int mode)
124{
125 static int count = 0;
126
127 if (! count++)
128 printf("%s %s\n",
129 "No load routine has been defined",
130 "for the supplier table\n");
131
132 return(0);
133}
134
135
136int
137hd_order (FILE *f)
138{
139 static int count = 0;
140
141 if (! count++)
142 printf("No header has been defined for the order table\n");
143
144 return(0);
145}
146
147int
148ld_order (order_t *p, int mode)
149{
150 static int count = 0;
151
152 if (! count++)
153 printf("%s %s\n",
154 "No load routine has been defined",
155 "for the order table");
156
157 return(0);
158}
159
160int ld_line (order_t *p, int mode)
161{
162 static int count = 0;
163
164 if (! count++)
165 printf("%s %s\n",
166 "No load routine has been defined",
167 "for the line table");
168
169 return(0);
170}
171
172
173
174int
175hd_psupp (FILE *f)
176{
177 static int count = 0;
178
179 if (! count++)
180 printf("%s %s\n",
181 "No header has been defined for the",
182 "part supplier table");
183
184 return(0);
185}
186
187
188int
189hd_line (FILE *f)
190{
191 static int count = 0;
192
193 if (! count++)
194 printf("No header has been defined for the lineitem table\n");
195
196 return(0);
197}
198
199int
200hd_nation (FILE *f)
201{
202 static int count = 0;
203
204 if (! count++)
205 printf("No header has been defined for the nation table\n");
206
207 return(0);
208}
209
210int
211ld_nation (code_t *cp, int mode)
212{
213 static int count = 0;
214
215 if (! count++)
216 printf("%s %s\n",
217 "No load routine has been defined",
218 "for the nation table");
219
220 return(0);
221}
222
223int
224hd_region (FILE *f)
225{
226 static int count = 0;
227
228 if (! count++)
229 printf("No header has been defined for the region table\n");
230
231 return(0);
232}
233
234int
235ld_region (code_t *cp, int mode)
236{
237 static int count = 0;
238
239 if (! count++)
240 printf("%s %s\n",
241 "No load routine has been defined",
242 "for the region table");
243
244 return(0);
245}
246
247int
248ld_order_line (order_t *p, int mode)
249{
250 ld_order(p, mode);
251 ld_line (p, mode);
252
253 return(0);
254}
255
256int
257hd_order_line (FILE *f)
258{
259 hd_order(f);
260 hd_line (f);
261
262 return(0);
263}
264
265int
266ld_part_psupp (part_t *p, int mode)
267{
268 ld_part(p, mode);
269 ld_psupp (p, mode);
270
271 return(0);
272}
273
274int
275hd_part_psupp (FILE *f)
276{
277 hd_part(f);
278 hd_psupp(f);
279
280 return(0);
281}
282