ConstraintCollection
遗产: java.lang.Object
所有已实现的接口: java.lang.Iterable
public class ConstraintCollection implements Iterable
表示一个约束的集合DataTable.
方法
| 方法 | 描述 |
|---|---|
| add(System.Data.Constraint constraint) | 添加指定的Constraint反对集合。 |
| contains(System.Data.Constraint cc) | 指示集合中是否存在 name 指定的 Constraint 对象。 |
| equals(Object arg0) | |
| get(int index) | 获取Constraint来自指定索引处的集合。 |
| get(String name) | 获取Constraint从具有指定名称的集合中。 |
| getClass() | |
| getCount() | 获取集合中元素的总数。 |
| hashCode() | |
| iterator() | |
| notify() | |
| notifyAll() | |
| remove(System.Data.Constraint constraint) | 删除指定的Constraint从集合中。 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
add(System.Data.Constraint constraint)
public void add(System.Data.Constraint constraint)
添加指定的Constraint反对集合。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| constraint | Constraint | 要添加的约束。 |
contains(System.Data.Constraint cc)
public boolean contains(System.Data.Constraint cc)
指示集合中是否存在 name 指定的 Constraint 对象。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| cc | Constraint | 要删除的约束。 |
退货: boolean - 如果集合包含指定的约束,则为 true;否则,假的。
equals(Object arg0)
public boolean equals(Object arg0)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
退货: 布尔值
get(int index)
public System.Data.Constraint get(int index)
获取Constraint来自指定索引处的集合。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| index | int | 要返回的约束的索引。 |
退货: Constraint - 这Constraint在指定的索引处。
get(String name)
public System.Data.Constraint get(String name)
获取Constraint从具有指定名称的集合中。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| name | java.lang.String | 这Constraint.getConstraintName() / Constraint.setConstraintName(java.lang.String)要返回的约束。 |
退货: Constraint - 这Constraint具有指定名称;否则为空值,如果Constraint不存在。
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getCount()
public int getCount()
获取集合中元素的总数。
退货: int - 集合中的元素总数。
hashCode()
public native int hashCode()
退货: 整数
iterator()
public Iterator iterator()
退货: java.util.迭代器
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
remove(System.Data.Constraint constraint)
public void remove(System.Data.Constraint constraint)
删除指定的Constraint从集合中。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| constraint | Constraint | 这Constraint去除。 |
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |