|
1 | 1 | <!-- DO NOT EDIT THIS FILE DIRECTLY - it is generated from source file OM_TAPIGEN.pks --> |
2 | 2 |
|
| 3 | +Oracle PL/SQL Table API Generator |
| 4 | +================================= |
| 5 | + |
3 | 6 | - [Package om_tapigen](#om_tapigen) |
4 | 7 | - [Procedure compile_api](#compile_api) |
5 | 8 | - [Function compile_api_and_get_code](#compile_api_and_get_code) |
6 | 9 | - [Function get_code](#get_code) |
7 | 10 | - [Procedure recreate_existing_apis](#recreate_existing_apis) |
8 | 11 | - [Function view_existing_apis](#view_existing_apis) |
9 | 12 | - [Function view_naming_conflicts](#view_naming_conflicts) |
10 | | -- [Function util_get_column_data_default](#util_get_column_data_default) |
11 | | -- [Function util_get_cons_search_condition](#util_get_cons_search_condition) |
12 | | -- [Function util_split_to_table](#util_split_to_table) |
13 | | -- [Function util_get_ora_max_name_len](#util_get_ora_max_name_len) |
14 | | -- [Procedure util_set_debug_on](#util_set_debug_on) |
15 | | -- [Procedure util_set_debug_off](#util_set_debug_off) |
16 | | -- [Function util_view_debug_log](#util_view_debug_log) |
17 | | -- [Function util_view_columns_array](#util_view_columns_array) |
18 | | -- [Function util_get_ddl](#util_get_ddl) |
19 | | - |
20 | | - |
21 | | -<h1><a id="om_tapigen"></a>Package om_tapigen</h1> |
22 | | -<!--===========================================--> |
23 | | - |
24 | | -_This is an Oracle PL/SQL Table API Generator. It can be integrated in the |
25 | | -Oracle SQL-Developer with an additional wrapper package for the |
26 | | -[oddgen](https://www.oddgen.org/) extension._ |
| 13 | + |
| 14 | + |
| 15 | +<h2><a id="om_tapigen"></a>Package om_tapigen</h2> |
| 16 | +<!-----------------------------------------------> |
| 17 | + |
| 18 | +_This table API generator can be integrated in the Oracle SQL-Developer with an |
| 19 | +additional wrapper package for the [SQL Developer extension oddgen](https://www.oddgen.org/)._ |
27 | 20 |
|
28 | 21 | The effort of generated API's is to reduce your PL/SQL code by calling standard |
29 | 22 | procedures and functions for usual DML operations on tables. So the generated |
@@ -284,164 +277,3 @@ FUNCTION view_naming_conflicts(p_owner all_users.username%TYPE DEFAULT USER) |
284 | 277 | ``` |
285 | 278 |
|
286 | 279 |
|
287 | | -<h2><a id="util_get_column_data_default"></a>Function util_get_column_data_default</h2> |
288 | | -<!------------------------------------------------------------------------------------> |
289 | | - |
290 | | -Helper to read a column data default from the dictionary. |
291 | | -[Working with long columns](http://www.oracle-developer.net/display.php?id=430). |
292 | | - |
293 | | -SIGNATURE |
294 | | - |
295 | | -```sql |
296 | | -FUNCTION util_get_column_data_default |
297 | | -( |
298 | | - p_table_name IN VARCHAR2, |
299 | | - p_column_name IN VARCHAR2, |
300 | | - p_owner VARCHAR2 DEFAULT USER |
301 | | -) RETURN VARCHAR2; |
302 | | -``` |
303 | | - |
304 | | - |
305 | | -<h2><a id="util_get_cons_search_condition"></a>Function util_get_cons_search_condition</h2> |
306 | | -<!----------------------------------------------------------------------------------------> |
307 | | - |
308 | | -Helper to read a constraint search condition from the dictionary (not needed |
309 | | -in 12cR1 and above, there we have a column search_condition_vc in |
310 | | -user_constraints). |
311 | | - |
312 | | -SIGNATURE |
313 | | - |
314 | | -```sql |
315 | | -FUNCTION util_get_cons_search_condition |
316 | | -( |
317 | | - p_constraint_name IN VARCHAR2, |
318 | | - p_owner IN VARCHAR2 DEFAULT USER |
319 | | -) RETURN VARCHAR2; |
320 | | -``` |
321 | | - |
322 | | - |
323 | | -<h2><a id="util_split_to_table"></a>Function util_split_to_table</h2> |
324 | | -<!------------------------------------------------------------------> |
325 | | - |
326 | | -Helper function to split a string to a selectable table. |
327 | | - |
328 | | -```sql |
329 | | -SELECT column_value FROM TABLE (om_tapigen.util_split_to_table('1,2,3,test')); |
330 | | -``` |
331 | | - |
332 | | -SIGNATURE |
333 | | - |
334 | | -```sql |
335 | | -FUNCTION util_split_to_table |
336 | | -( |
337 | | - p_string IN VARCHAR2, |
338 | | - p_delimiter IN VARCHAR2 DEFAULT ',' |
339 | | -) RETURN t_tab_vc2_4k |
340 | | - PIPELINED; |
341 | | -``` |
342 | | - |
343 | | - |
344 | | -<h2><a id="util_get_ora_max_name_len"></a>Function util_get_ora_max_name_len</h2> |
345 | | -<!------------------------------------------------------------------------------> |
346 | | - |
347 | | -Helper function to determine the maximum length for an identifier name (e.g. |
348 | | -column name). Returns the package constant c_ora_max_name_len, which is |
349 | | -determined by a conditional compilation. |
350 | | - |
351 | | -SIGNATURE |
352 | | - |
353 | | -```sql |
354 | | -FUNCTION util_get_ora_max_name_len RETURN INTEGER; |
355 | | -``` |
356 | | - |
357 | | - |
358 | | -<h2><a id="util_set_debug_on"></a>Procedure util_set_debug_on</h2> |
359 | | -<!---------------------------------------------------------------> |
360 | | - |
361 | | -Enable (and reset) the debugging (previous debug data will be lost) |
362 | | - |
363 | | -```sql |
364 | | -BEGIN |
365 | | - om_tapigen.util_set_debug_on; |
366 | | -END; |
367 | | -``` |
368 | | - |
369 | | -SIGNATURE |
370 | | - |
371 | | -```sql |
372 | | -PROCEDURE util_set_debug_on; |
373 | | -``` |
374 | | - |
375 | | - |
376 | | -<h2><a id="util_set_debug_off"></a>Procedure util_set_debug_off</h2> |
377 | | -<!-----------------------------------------------------------------> |
378 | | - |
379 | | -Disable the debugging |
380 | | - |
381 | | -```sql |
382 | | -BEGIN |
383 | | - om_tapigen.util_set_debug_off; |
384 | | -END; |
385 | | -``` |
386 | | - |
387 | | -SIGNATURE |
388 | | - |
389 | | -```sql |
390 | | -PROCEDURE util_set_debug_off; |
391 | | -``` |
392 | | - |
393 | | - |
394 | | -<h2><a id="util_view_debug_log"></a>Function util_view_debug_log</h2> |
395 | | -<!------------------------------------------------------------------> |
396 | | - |
397 | | -View the debug details. Maximum 999 API creations are captured for memory |
398 | | -reasons. You can reset the debugging by calling `om_tapigen.util_set_debug_on`. |
399 | | - |
400 | | -```sql |
401 | | -SELECT * FROM TABLE(om_tapigen.util_view_debug_log); |
402 | | -``` |
403 | | - |
404 | | -SIGNATURE |
405 | | - |
406 | | -```sql |
407 | | -FUNCTION util_view_debug_log RETURN t_tab_debug_data |
408 | | - PIPELINED; |
409 | | -``` |
410 | | - |
411 | | - |
412 | | -<h2><a id="util_view_columns_array"></a>Function util_view_columns_array</h2> |
413 | | -<!--------------------------------------------------------------------------> |
414 | | - |
415 | | -View the internal columns array from the last API generation. This view is |
416 | | -independend from the debug mode, because this array is resetted for each API |
417 | | -generation. |
418 | | - |
419 | | -```sql |
420 | | -SELECT * FROM TABLE(om_tapigen.util_view_columns_array); |
421 | | -``` |
422 | | - |
423 | | -SIGNATURE |
424 | | - |
425 | | -```sql |
426 | | -FUNCTION util_view_columns_array RETURN t_tab_debug_columns |
427 | | - PIPELINED; |
428 | | -``` |
429 | | - |
430 | | - |
431 | | -<h2><a id="util_get_ddl"></a>Function util_get_ddl</h2> |
432 | | -<!----------------------------------------------------> |
433 | | - |
434 | | -Helper for testing to get the DDL of generated objects. |
435 | | - |
436 | | -SIGNATURE |
437 | | - |
438 | | -```sql |
439 | | -FUNCTION util_get_ddl |
440 | | -( |
441 | | - p_object_type VARCHAR2, |
442 | | - p_object_name VARCHAR2, |
443 | | - p_owner VARCHAR2 DEFAULT USER |
444 | | -) RETURN CLOB; |
445 | | -``` |
446 | | - |
447 | | - |
0 commit comments