system.data.IDbCommand Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2024 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector v. 1.14.0.0
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system.data;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
// Import section
import system.IDisposable;
import system.IDisposableImplementation;
import system.data.IDataReader;
import system.data.IDataReaderImplementation;
import system.data.CommandBehavior;
import system.data.IDbDataParameter;
import system.data.IDbDataParameterImplementation;
import system.data.CommandType;
import system.data.IDataParameterCollection;
import system.data.IDataParameterCollectionImplementation;
import system.data.IDbConnection;
import system.data.IDbConnectionImplementation;
import system.data.IDbTransaction;
import system.data.IDbTransactionImplementation;
import system.data.UpdateRowSource;
/**
* The base .NET class managing System.Data.IDbCommand, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.IDbCommand
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.14.0.0
*/
public interface IDbCommand extends IJCOBridgeReflected, IDisposable {
/**
* Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: System.Data
*/
public static final String assemblyShortName = "System.Data";
/**
* Qualified class name: System.Data.IDbCommand
*/
public static final String className = "System.Data.IDbCommand";
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link IDbCommand}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link IDbCommand} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static IDbCommand ToIDbCommand(IJCOBridgeReflected from) throws Throwable {
JCOBridge bridge = JCOBridgeInstance.getInstance("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
JCType classType = bridge.GetType(className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName));
NetType.AssertCast(classType, from);
return new IDbCommandImplementation(from.getJCOInstance());
}
/**
* Returns the reflected Assembly name
*
* @return A {@link String} representing the Fullname of reflected Assembly
*/
public String getJCOAssemblyName();
/**
* Returns the reflected Class name
*
* @return A {@link String} representing the Fullname of reflected Class
*/
public String getJCOClassName();
/**
* Returns the reflected Class name used to build the object
*
* @return A {@link String} representing the name used to allocated the object
* in CLR context
*/
public String getJCOObjectName();
/**
* Returns the instantiated class
*
* @return An {@link java.lang.Object} representing the instance of the instantiated Class
*/
public java.lang.Object getJCOInstance();
/**
* Returns the instantiated class Type
*
* @return A {@link JCType} representing the Type of the instantiated Class
*/
public JCType getJCOType();
// Methods section
public int ExecuteNonQuery() throws Throwable;
public IDataReader ExecuteReader() throws Throwable;
public IDataReader ExecuteReader(CommandBehavior behavior) throws Throwable;
public IDbDataParameter CreateParameter() throws Throwable;
public NetObject ExecuteScalar() throws Throwable;
public void Cancel() throws Throwable;
public void Prepare() throws Throwable;
// Properties section
public int getCommandTimeout() throws Throwable;
public void setCommandTimeout(int CommandTimeout) throws Throwable;
public CommandType getCommandType() throws Throwable;
public void setCommandType(CommandType CommandType) throws Throwable;
public IDataParameterCollection getParameters() throws Throwable;
public IDbConnection getConnection() throws Throwable;
public void setConnection(IDbConnection Connection) throws Throwable;
public IDbTransaction getTransaction() throws Throwable;
public void setTransaction(IDbTransaction Transaction) throws Throwable;
public UpdateRowSource getUpdatedRowSource() throws Throwable;
public void setUpdatedRowSource(UpdateRowSource UpdatedRowSource) throws Throwable;
public java.lang.String getCommandText() throws Throwable;
public void setCommandText(java.lang.String CommandText) throws Throwable;
// Instance Events section
}