WEB-INF.cftags.componentmura.cfobject
mura.dbUtility
This provides a CRUD utility manage database schemas
Constructor Summary | |
---|---|
init([any configBean], [any utility])
|
Method Summary | |
---|---|
any
|
_parseInt([any String])
Parse out the first set of numbers in a string. |
any
|
addColumn([any datatype='varchar'], [any length='50'], [any nullable='true'], [any default='null'], [any autoincrement='false'], [any table='[runtime expression]'])
|
any
|
addForeignKey([any column], [any fkColumn], [any fkTable], [any table='[runtime expression]'])
|
any
|
addIndex([any column=''], [any table='[runtime expression]'])
|
any
|
addPrimaryKey([any column=''], [any table='[runtime expression]'])
|
any
|
alterColumn([any column=''], [any datatype='varchar'], [any length='50'], [any nullable='true'], [any default='null'], [any autoincrement='false'], [any table='[runtime expression]'])
|
private any
|
buildForeignKeyMetaData([any rs], [any table])
|
private any
|
buildIndexMetaData([any rs], [any table])
|
any
|
buildSchemaFromProperties([any obj])
|
any
|
columnExists([any column], [any table='[runtime expression]'])
|
any
|
columnMetaData([any column], [any table='[runtime expression]'])
|
any
|
columnParamType([any column], [any table='[runtime expression]'])
|
any
|
columns([any table='[runtime expression]'])
|
any
|
dropColumn([any column=''], [any table='[runtime expression]'])
|
any
|
dropForeignKey([any column], [any fkColumn], [any fkTable], [any table='[runtime expression]'])
|
any
|
dropIndex([any column=''], [any table='[runtime expression]'])
|
any
|
dropPrimaryKey([any table='[runtime expression]'])
|
any
|
dropTable([any table='[runtime expression]'])
|
any
|
foreignKeyExists([any column], [any fkColumn], [any fkTable], [any table='[runtime expression]'])
|
any
|
foreignKeyMetaData([any column], [any fkColumn], [any fkTable], [any table='[runtime expression]'])
|
any
|
foreignKeys([any table='[runtime expression]'])
|
private any
|
generalizeDataType([any datatype])
Translates from db to Mura. |
any
|
getDefaultColumnMetaData()
|
any
|
indexExists([any column], [any table='[runtime expression]'])
|
any
|
indexMetaData([any column], [any table='[runtime expression]'])
|
any
|
indexes([any table='[runtime expression]'])
|
any
|
primaryKeyConstraintName([any table='[runtime expression]'])
|
any
|
primaryKeyExists([any table='[runtime expression]'])
|
any
|
primaryKeyMetaData([any table='[runtime expression]'])
|
any
|
purgeCache()
|
any
|
qualifySchema([any table])
Add schema to table name where required. |
any
|
renameColumn([any column], [any newcolumn], [any table='[runtime expression]'])
|
any
|
setTable([any table])
|
any
|
tableExists([any table='[runtime expression]'])
|
any
|
tables()
|
private any
|
transformColumnMetaData([any rs], [any table])
Translates from db to Mura. |
private any
|
transformDataType([any datatype='varchar'], [any length='50'])
Translates to DB datatype. |
any
|
transformIndexName([any column], [any table='[runtime expression]'])
|
any
|
transformParamType([any paramType])
|
any
|
version()
|
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
configBean
utility
Method Detail |
---|
Parse out the first set of numbers in a string.
String
datatype
- varchar,char,text,longtext,datetime,tinyint,int,float,doublelength
nullable
default
autoincrement
table
column
fkColumn
fkTable
table
column
table
column
table
column
datatype
- varchar,char,text,longtext,datetime,tinyint,int,float,doublelength
nullable
default
autoincrement
table
rs
table
rs
table
obj
column
table
column
table
column
table
table
column
table
column
fkColumn
fkTable
table
column
table
table
table
column
fkColumn
fkTable
table
column
fkColumn
fkTable
table
table
Translates from db to Mura
datatype
column
table
column
table
table
table
table
table
Add schema to table name where required
table
column
newcolumn
table
table
table
Translates from db to Mura
rs
table
Translates to DB datatype
datatype
length
column
table
paramType