cakephp-1.3 > DboOracle :: constraint()
DboOracle
- _execute
- _scrapeSQL
- _setError
- alterSchema
- begin
- column
- commit
- connect
- constraint
- createSequence
- createTrigger
- describe
- disconnect
- dropSchema
- fetchResult
- fetchRow
- getEncoding
- index
- lastAffected
- lastError
- lastInsertId
- lastNumRows
- limit
- listSources
- name
- queryAssociation
- renderStatement
- rollback
- sequenceExists
- setEncoding
- truncate
- value
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
constraint
Enables, disables, and lists table constraints
Method
(mixed)
constraint
($action, $table)
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$action | string | required | |
$table | string | required |
Return
mixedComment
Enables, disables, and lists table constraints
Note: This method could have been written using a subselect for each table,
however the effort Oracle expends to run the constraint introspection is very high.
Therefore, this method caches the result once and loops through the arrays to find
what it needs. It reduced my query time by 50%. YMMV.
@param string $action
@param string $table
@return mixed boolean true or array of constraints
Note: This method could have been written using a subselect for each table,
however the effort Oracle expends to run the constraint introspection is very high.
Therefore, this method caches the result once and loops through the arrays to find
what it needs. It reduced my query time by 50%. YMMV.
@param string $action
@param string $table
@return mixed boolean true or array of constraints