Package system.data.common
Class DbCommand
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.data.common.DbCommand
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class DbCommand extends Component
The base .NET class managing System.Data.Common.DbCommand, System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.Common.DbCommand
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.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Data.Commonstatic java.lang.String
className
Qualified class name: System.Data.Common.DbCommandstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Cancel()
static DbCommand
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDbCommand
, a cast assert is made to check if types are compatible.DbParameter
CreateParameter()
ValueTask
DisposeAsync()
int
ExecuteNonQuery()
DbDataReader
ExecuteReader()
DbDataReader
ExecuteReader(CommandBehavior behavior)
NetObject
ExecuteScalar()
java.lang.String
getCommandText()
int
getCommandTimeout()
CommandType
getCommandType()
DbConnection
getConnection()
boolean
getDesignTimeVisible()
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 TypeDbParameterCollection
getParameters()
DbTransaction
getTransaction()
UpdateRowSource
getUpdatedRowSource()
void
Prepare()
Task
PrepareAsync(CancellationToken cancellationToken)
void
setCommandText(java.lang.String CommandText)
void
setCommandTimeout(int CommandTimeout)
void
setCommandType(CommandType CommandType)
void
setConnection(DbConnection Connection)
void
setDesignTimeVisible(boolean DesignTimeVisible)
void
setJCOInstance(JCObject instance)
void
setTransaction(DbTransaction Transaction)
void
setUpdatedRowSource(UpdateRowSource UpdatedRowSource)
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Data.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Data.Common.DbCommand- 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 classComponent
- 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 classComponent
- 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 classComponent
- 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 classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DbCommand cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDbCommand
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DbCommand
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ExecuteNonQuery
public int ExecuteNonQuery() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ExecuteReader
public DbDataReader ExecuteReader() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ExecuteReader
public DbDataReader ExecuteReader(CommandBehavior behavior) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateParameter
public DbParameter CreateParameter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ExecuteScalar
public NetObject ExecuteScalar() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PrepareAsync
public Task PrepareAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
DisposeAsync
public ValueTask DisposeAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
-
Cancel
public void Cancel() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Prepare
public void Prepare() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDesignTimeVisible
public boolean getDesignTimeVisible() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDesignTimeVisible
public void setDesignTimeVisible(boolean DesignTimeVisible) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCommandTimeout
public int getCommandTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCommandTimeout
public void setCommandTimeout(int CommandTimeout) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCommandType
public CommandType getCommandType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCommandType
public void setCommandType(CommandType CommandType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getConnection
public DbConnection getConnection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setConnection
public void setConnection(DbConnection Connection) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getParameters
public DbParameterCollection getParameters() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTransaction
public DbTransaction getTransaction() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTransaction
public void setTransaction(DbTransaction Transaction) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUpdatedRowSource
public UpdateRowSource getUpdatedRowSource() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUpdatedRowSource
public void setUpdatedRowSource(UpdateRowSource UpdatedRowSource) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCommandText
public java.lang.String getCommandText() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCommandText
public void setCommandText(java.lang.String CommandText) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-