|
| constructor (string n, bool u, hash c) |
| creates the object from the name, a unique flag, and a hash of column information
|
|
bool | equal (AbstractIndex ix) |
| returns True if the argument is equal to the current index, False if not
|
|
bool | equalExceptName (AbstractIndex ix) |
| returns True if the argument is equal to the current index with the exception of the name, False if not
|
|
abstract bool | equalImpl (AbstractIndex ix) |
| returns True if the argument is equal to the current index, False if not
|
|
abstract string | getCreateSql (string table_name, *hash opt) |
| returns a string that can be used to create the index in the database
|
|
string | getDropSql (string table_name) |
| returns a string that can be used to drop the index from the database
|
|
string | getName () |
| returns the index name
|
|
list | getRecreateSql (AbstractDatasource ds, string table_name, *hash opt) |
| returns a list of strings to drop and recreate the current index; if there are dependent constraints, the list contains commands to disable the constraints before dropping the index and also contains commands to re-enable the contraints after re-creating the index
|
|
abstract string | getRenameSql (string table_name, string new_name) |
| returns a string that can be used to rename the index in the database
|
|
*AbstractUniqueConstraint | getSupportingConstraint () |
| returns the supporting constraint, if any
|
|
bool | hasColumn (string cname) |
| returns True if the constraint references the named column
|
|
| setSupportingConstraint (AbstractUniqueConstraint c) |
| tags the index with a unique constraint that the index supports
|
|
| setSupportingConstraint () |
| clears the supporting constraint
|
|
the abstract base class for index information