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
- Direct Known Subclasses:
EntityCommand,OdbcCommand,OleDbCommand,OracleCommand,SqlCommand
public class DbCommand extends Component
The base .NET class managing System.Data.Common.DbCommand, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.StringassemblyFullNameFully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Datastatic java.lang.StringclassNameQualified class name: System.Data.Common.DbCommandstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidCancel()static DbCommandcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDbCommand, a cast assert is made to check if types are compatible.DbParameterCreateParameter()intExecuteNonQuery()DbDataReaderExecuteReader()DbDataReaderExecuteReader(CommandBehavior behavior)NetObjectExecuteScalar()java.lang.StringgetCommandText()intgetCommandTimeout()CommandTypegetCommandType()DbConnectiongetConnection()booleangetDesignTimeVisible()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeDbParameterCollectiongetParameters()DbTransactiongetTransaction()UpdateRowSourcegetUpdatedRowSource()voidPrepare()voidsetCommandText(java.lang.String CommandText)voidsetCommandTimeout(int CommandTimeout)voidsetCommandType(CommandType CommandType)voidsetConnection(DbConnection Connection)voidsetDesignTimeVisible(boolean DesignTimeVisible)voidsetJCOInstance(JCObject instance)voidsetTransaction(DbTransaction Transaction)voidsetUpdatedRowSource(UpdateRowSource UpdatedRowSource)-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
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.Common.DbCommand- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classComponent- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DbCommand cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDbCommand, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DbCommandinstance- 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
-
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
-
-