public class ConstraintCollection extends InternalDataCollectionBase
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Data.ConstraintCollection
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Data.Common
|
static java.lang.String |
className
Qualified class name: System.Data.ConstraintCollection
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
ConstraintCollection() |
ConstraintCollection(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Add(Constraint constraint)
Invokes the .NET member Add.
|
Constraint |
Add(java.lang.String name,
DataColumn[] columns,
boolean primaryKey)
Invokes the .NET member Add.
|
Constraint |
Add(java.lang.String name,
DataColumn[] primaryKeyColumns,
DataColumn[] foreignKeyColumns)
Invokes the .NET member Add.
|
Constraint |
Add(java.lang.String name,
DataColumn column,
boolean primaryKey)
Invokes the .NET member Add.
|
Constraint |
Add(java.lang.String name,
DataColumn primaryKeyColumn,
DataColumn foreignKeyColumn)
Invokes the .NET member Add.
|
void |
addCollectionChanged(CollectionChangeEventHandler handler)
Invokes the .NET member addCollectionChanged.
|
void |
AddRange(Constraint[] constraints)
Invokes the .NET member AddRange.
|
boolean |
CanRemove(Constraint constraint)
Invokes the .NET member CanRemove.
|
static ConstraintCollection |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ConstraintCollection, a cast assert is made to check if types are compatible. |
void |
Clear()
Invokes the .NET member Clear.
|
boolean |
Contains(java.lang.String name)
Invokes the .NET member Contains.
|
void |
CopyTo(Constraint[] array,
int index)
Invokes the .NET member CopyTo.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
IndexOf(Constraint constraint)
Invokes the .NET member IndexOf.
|
int |
IndexOf(java.lang.String constraintName)
Invokes the .NET member IndexOf.
|
void |
Remove(Constraint constraint)
Invokes the .NET member Remove.
|
void |
Remove(java.lang.String name)
Invokes the .NET member Remove.
|
void |
RemoveAt(int index)
Invokes the .NET member RemoveAt.
|
void |
removeCollectionChanged(CollectionChangeEventHandler handler)
Invokes the .NET member removeCollectionChanged.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
CopyTo, getCount, getIsReadOnly, getIsSynchronized, getSyncRootGetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ConstraintCollection()
throws java.lang.Throwable
java.lang.Throwablepublic ConstraintCollection(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Add(Constraint constraint) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, OutOfMemoryException, SynchronizationLockException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, FormatException
constraint - the argument of type Constraintjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itpublic Constraint Add(java.lang.String name, DataColumn[] columns, boolean primaryKey) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidConstraintException, OutOfMemoryException, SynchronizationLockException, RankException, ArrayTypeMismatchException
name - the argument of type java.lang.Stringcolumns - the argument of type DataColumn[]primaryKey - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidConstraintException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Constraint Add(java.lang.String name, DataColumn[] primaryKeyColumns, DataColumn[] foreignKeyColumns) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidConstraintException, FormatException, ArgumentOutOfRangeException, OutOfMemoryException, SynchronizationLockException, RankException, ArrayTypeMismatchException
name - the argument of type java.lang.StringprimaryKeyColumns - the argument of type DataColumn[]foreignKeyColumns - the argument of type DataColumn[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidConstraintException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Constraint Add(java.lang.String name, DataColumn column, boolean primaryKey) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidConstraintException, OutOfMemoryException, SynchronizationLockException, RankException, ArrayTypeMismatchException
name - the argument of type java.lang.Stringcolumn - the argument of type DataColumnprimaryKey - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidConstraintException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Constraint Add(java.lang.String name, DataColumn primaryKeyColumn, DataColumn foreignKeyColumn) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidConstraintException, FormatException, ArgumentOutOfRangeException, OutOfMemoryException, SynchronizationLockException, RankException, ArrayTypeMismatchException
name - the argument of type java.lang.StringprimaryKeyColumn - the argument of type DataColumnforeignKeyColumn - the argument of type DataColumnjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidConstraintException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void addCollectionChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
handler - the argument of type CollectionChangeEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void AddRange(Constraint[] constraints) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, SynchronizationLockException, RankException, ArrayTypeMismatchException
constraints - the argument of type Constraint[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic boolean CanRemove(Constraint constraint) throws java.lang.Throwable
constraint - the argument of type Constraintjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static ConstraintCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ConstraintCollection, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedConstraintCollection instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException,
InvalidConstraintException,
CultureNotFoundException,
OutOfMemoryException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
ObjectDisposedException,
LockRecursionException,
AbandonedMutexException,
SynchronizationLockException,
NotSupportedException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itInvalidConstraintException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itNotSupportedException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic boolean Contains(java.lang.String name)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic void CopyTo(Constraint[] array, int index) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
array - the argument of type Constraint[]index - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class InternalDataCollectionBasepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class InternalDataCollectionBasepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class InternalDataCollectionBasenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class InternalDataCollectionBasepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class InternalDataCollectionBasepublic int IndexOf(Constraint constraint) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
constraint - the argument of type Constraintjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int IndexOf(java.lang.String constraintName)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException
constraintName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic void Remove(Constraint constraint) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, LockRecursionException, RankException, ArrayTypeMismatchException, SynchronizationLockException
constraint - the argument of type Constraintjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itLockRecursionException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itpublic void Remove(java.lang.String name)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException,
IndexOutOfRangeException,
FormatException,
LockRecursionException,
SynchronizationLockException,
OutOfMemoryException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void RemoveAt(int index)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
LockRecursionException,
SynchronizationLockException
index - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itpublic void removeCollectionChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
handler - the argument of type CollectionChangeEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class InternalDataCollectionBaseinstance - the new underlying object