oaSimpleConstraintDef
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaSimpleConstraintDef 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaSimpleConstraintDef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaSimpleConstraintDef object specifies a definition for a simple constraint。 The definition contains a name, a list of databases that the constraint can be created in, and a list of types of oaValues that are allowed for the constraint。 The names for constraint definitions must be unique。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | _base.oaSimpleConstraintDef.create(name, allowedValues, allowedObjects, allowedDB) |
| ✅ | _base.oaSimpleConstraintDef.get(type) |
方法说明
_base.oaSimpleConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)
绑定状态: 已绑定
Python 调用: _base.oaSimpleConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)
This function creates a new simple constraint definition with the specified attributes。
参数
name: The name of the new definition。allowedValues: The value types that constraints with this definition can have。allowedObjects: The objects that constraints with this definition can be attached to。allowedDB: The databases that constraints with this definition can be created in。
异常
oacConstraintDefExists。oacInvalidValueType。
Python 示例
from oapy._oa import _base
_base.oaSimpleConstraintDef.create(name, allowedValues, allowedObjects, allowedDB)
_base.oaSimpleConstraintDef.get(type)
绑定状态: 已绑定
Python 调用: _base.oaSimpleConstraintDef.get(type)
This function returns the built-in simple constraint definition of the type specified。
参数
type: The built in simple constraint type to get。
Python 示例
from oapy._oa import _base
_base.oaSimpleConstraintDef.get(type)