plsql_utility::generate_constraint_name (public)

 plsql_utility::generate_constraint_name [ -max_length max_length ] \
    table column stem

Defined in packages/acs-subsite/tcl/plsql-utility-procs.tcl

Generates a constraint name adhering to the arsdigita standard for naming constraints. Note that this function does not yet ensure that the returned constraint name is not already in use, though the probability for a collision is pretty low. The ideal name is table_column_stem. We trim first table, then column to make it fit.

Switches:
-max_length (defaults to "30") (optional)
Parameters:
table
column
stem
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
11/2000
[ show source ]
Show another procedure: