Package system.data
Class ConstraintCollection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.data.InternalDataCollectionBase
-
- system.data.ConstraintCollection
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
public class ConstraintCollection extends InternalDataCollectionBase
The base .NET class managing System.Data.ConstraintCollection, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.ConstraintCollection
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Datastatic java.lang.String
className
Qualified class name: System.Data.ConstraintCollectionstatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description ConstraintCollection()
ConstraintCollection(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Constraint
Add(java.lang.String name, DataColumn[] columns, boolean primaryKey)
Constraint
Add(java.lang.String name, DataColumn[] primaryKeyColumns, DataColumn[] foreignKeyColumns)
Constraint
Add(java.lang.String name, DataColumn column, boolean primaryKey)
Constraint
Add(java.lang.String name, DataColumn primaryKeyColumn, DataColumn foreignKeyColumn)
void
Add(Constraint constraint)
void
addCollectionChanged(CollectionChangeEventHandler handler)
void
AddRange(Constraint[] constraints)
boolean
CanRemove(Constraint constraint)
static ConstraintCollection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoConstraintCollection
, a cast assert is made to check if types are compatible.void
Clear()
boolean
Contains(java.lang.String name)
void
CopyTo(Constraint[] array, int index)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
IndexOf(java.lang.String constraintName)
int
IndexOf(Constraint constraint)
void
Remove(java.lang.String name)
void
Remove(Constraint constraint)
void
RemoveAt(int index)
void
removeCollectionChanged(CollectionChangeEventHandler handler)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.data.InternalDataCollectionBase
CopyTo, getCount, getIsReadOnly, getIsSynchronized, getSyncRoot
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Data- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Data.ConstraintCollection- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classInternalDataCollectionBase
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classInternalDataCollectionBase
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classInternalDataCollectionBase
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classInternalDataCollectionBase
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classInternalDataCollectionBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classInternalDataCollectionBase
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ConstraintCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoConstraintCollection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ConstraintCollection
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CanRemove
public boolean CanRemove(Constraint constraint) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Contains
public boolean Contains(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException
-
IndexOf
public int IndexOf(Constraint constraint) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
IndexOf
public int IndexOf(java.lang.String constraintName) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException
-
Add
public Constraint Add(java.lang.String name, DataColumn column, boolean primaryKey) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, RankException
-
Add
public Constraint Add(java.lang.String name, DataColumn primaryKeyColumn, DataColumn foreignKeyColumn) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, RankException
-
Add
public Constraint Add(java.lang.String name, DataColumn[] columns, boolean primaryKey) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, RankException
-
Add
public Constraint Add(java.lang.String name, DataColumn[] primaryKeyColumns, DataColumn[] foreignKeyColumns) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, RankException
-
Add
public void Add(Constraint constraint) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, NotSupportedException, RankException
-
AddRange
public void AddRange(Constraint[] constraints) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, RankException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, RankException
-
CopyTo
public void CopyTo(Constraint[] array, int index) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
NotSupportedException
-
Remove
public void Remove(Constraint constraint) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, NotSupportedException, RankException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
NotSupportedException
RankException
-
Remove
public void Remove(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, RankException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
FormatException
RankException
-
RemoveAt
public void RemoveAt(int index) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, RankException
-
addCollectionChanged
public void addCollectionChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCollectionChanged
public void removeCollectionChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-