| 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 | |
| 36 | int |
| 37 | close_direct(void) |
| 38 | { |
| 39 | /* any post load cleanup goes here */ |
| 40 | return(0); |
| 41 | } |
| 42 | |
| 43 | int |
| 44 | prep_direct(void) |
| 45 | { |
| 46 | /* any preload prep goes here */ |
| 47 | return(0); |
| 48 | } |
| 49 | |
| 50 | int |
| 51 | hd_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 | |
| 61 | int |
| 62 | ld_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 | |
| 74 | int |
| 75 | hd_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 | |
| 85 | int |
| 86 | ld_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 | |
| 96 | int |
| 97 | ld_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 | |
| 111 | int |
| 112 | hd_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 | |
| 122 | int |
| 123 | ld_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 | |
| 136 | int |
| 137 | hd_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 | |
| 147 | int |
| 148 | ld_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 | |
| 160 | int 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 | |
| 174 | int |
| 175 | hd_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 | |
| 188 | int |
| 189 | hd_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 | |
| 199 | int |
| 200 | hd_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 | |
| 210 | int |
| 211 | ld_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 | |
| 223 | int |
| 224 | hd_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 | |
| 234 | int |
| 235 | ld_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 | |
| 247 | int |
| 248 | ld_order_line (order_t *p, int mode) |
| 249 | { |
| 250 | ld_order(p, mode); |
| 251 | ld_line (p, mode); |
| 252 | |
| 253 | return(0); |
| 254 | } |
| 255 | |
| 256 | int |
| 257 | hd_order_line (FILE *f) |
| 258 | { |
| 259 | hd_order(f); |
| 260 | hd_line (f); |
| 261 | |
| 262 | return(0); |
| 263 | } |
| 264 | |
| 265 | int |
| 266 | ld_part_psupp (part_t *p, int mode) |
| 267 | { |
| 268 | ld_part(p, mode); |
| 269 | ld_psupp (p, mode); |
| 270 | |
| 271 | return(0); |
| 272 | } |
| 273 | |
| 274 | int |
| 275 | hd_part_psupp (FILE *f) |
| 276 | { |
| 277 | hd_part(f); |
| 278 | hd_psupp(f); |
| 279 | |
| 280 | return(0); |
| 281 | } |
| 282 | |