Package system.data.odbc
Class OdbcCommand
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.data.common.DbCommand
-
- system.data.odbc.OdbcCommand
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,ICloneable
public class OdbcCommand extends DbCommand implements ICloneable
The base .NET class managing System.Data.Odbc.OdbcCommand, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.Odbc.OdbcCommand
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.Odbc.OdbcCommandstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description OdbcCommand()
OdbcCommand(java.lang.Object instance)
Internal constructor.OdbcCommand(java.lang.String cmdText)
OdbcCommand(java.lang.String cmdText, OdbcConnection connection)
OdbcCommand(java.lang.String cmdText, OdbcConnection connection, OdbcTransaction transaction)
-
Method Summary
-
Methods inherited from class system.data.common.DbCommand
CreateParameter, ExecuteReader, ExecuteReader, getCommandText, getCommandTimeout, getCommandType, getConnection, getDesignTimeVisible, getParameters, getTransaction, getUpdatedRowSource, setCommandText, setCommandTimeout, setCommandType, setConnection, setDesignTimeVisible, setTransaction, setUpdatedRowSource
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.ICloneable
Clone
-
-
-
-
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.Odbc.OdbcCommand- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OdbcCommand
public OdbcCommand(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
OdbcCommand
public OdbcCommand() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
OdbcCommand
public OdbcCommand(java.lang.String cmdText) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
OdbcCommand
public OdbcCommand(java.lang.String cmdText, OdbcConnection connection) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
OdbcCommand
public OdbcCommand(java.lang.String cmdText, OdbcConnection connection, OdbcTransaction transaction) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceICloneable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classDbCommand
- 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 interfaceICloneable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classDbCommand
- 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 interfaceICloneable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classDbCommand
- 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 interfaceICloneable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classDbCommand
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classDbCommand
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceICloneable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDbCommand
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static OdbcCommand cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoOdbcCommand
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
OdbcCommand
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ExecuteNonQuery
public int ExecuteNonQuery() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, FormatException, OverflowException, SqlNullValueException, InvalidCastException, NotSupportedException, AccessViolationException
- Overrides:
ExecuteNonQuery
in classDbCommand
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
FormatException
OverflowException
SqlNullValueException
InvalidCastException
NotSupportedException
AccessViolationException
-
ExecuteReaderNewOdbcCommand
public OdbcDataReader ExecuteReaderNewOdbcCommand() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, OverflowException, SqlNullValueException, InvalidCastException, CultureNotFoundException, NotSupportedException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
OutOfMemoryException
OverflowException
SqlNullValueException
InvalidCastException
CultureNotFoundException
NotSupportedException
AccessViolationException
-
ExecuteReaderNewOdbcCommand
public OdbcDataReader ExecuteReaderNewOdbcCommand(CommandBehavior behavior) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, FormatException, OverflowException, SqlNullValueException, InvalidCastException, NotSupportedException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
FormatException
OverflowException
SqlNullValueException
InvalidCastException
NotSupportedException
AccessViolationException
-
CreateParameterNewOdbcCommand
public OdbcParameter CreateParameterNewOdbcCommand() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ExecuteScalar
public NetObject ExecuteScalar() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, FormatException, OverflowException, SqlNullValueException, InvalidCastException, NotSupportedException, AccessViolationException
- Overrides:
ExecuteScalar
in classDbCommand
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
FormatException
OverflowException
SqlNullValueException
InvalidCastException
NotSupportedException
AccessViolationException
-
Cancel
public void Cancel() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException
- Overrides:
Cancel
in classDbCommand
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
OutOfMemoryException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
-
Prepare
public void Prepare() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException
- Overrides:
Prepare
in classDbCommand
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
-
ResetCommandTimeout
public void ResetCommandTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getConnectionNewOdbcCommand
public OdbcConnection getConnectionNewOdbcCommand() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setConnection
public void setConnection(OdbcConnection Connection) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParametersNewOdbcCommand
public OdbcParameterCollection getParametersNewOdbcCommand() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTransactionNewOdbcCommand
public OdbcTransaction getTransactionNewOdbcCommand() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTransaction
public void setTransaction(OdbcTransaction Transaction) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-