Exported from Notepad++
// ---------------------------------------------------------------------------------------------------//
// SqlCeConnection Class generated from .Net SqlCeConnection type in System.Data.SqlServerCe assembly
// ---------------------------------------------------------------------------------------------------//
package system.data.sqlserverce;
import system.data.sqlserverce.sqlserverceRes;
import system.data.dataRes;
public class SqlCeConnection extends system.data.common.DbConnection {
private java.util.List<com.dotNet4Java.TClrObject> FlushFailure = new java.util.ArrayList<>();
private java.util.List<com.dotNet4Java.TClrObject> InfoMessage = new java.util.ArrayList<>();
private java.util.List<system.data.StateChangeEventHandler> StateChange = new java.util.ArrayList<>();
public SqlCeConnection(com.dotNet4Java.api.core.DotNetNativeTypes.ClrObject clrObject) {
super(clrObject);
}
protected SqlCeConnection(java.lang.String typeName, java.lang.Object... arguments) throws com.dotNet4Java.api.EClrError {
super(typeName, arguments);
}
protected SqlCeConnection(java.lang.String typeName, java.lang.Object[] arguments, com.dotNet4Java.TRefObject<java.lang.Object[]> refParameters) throws com.dotNet4Java.api.EClrError {
super(typeName, arguments, refParameters);
}
public SqlCeConnection() throws com.dotNet4Java.api.EClrError {
super(sqlserverceRes.INSTANCE.SQLSERVERCE_SQLCECONNECTION, new java.lang.Object[]{});
}
public SqlCeConnection(java.lang.String connectionString) throws com.dotNet4Java.api.EClrError {
super(sqlserverceRes.INSTANCE.SQLSERVERCE_SQLCECONNECTION, connectionString);
}
static final com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler FlushFailureHandler = new com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler() {
@Override
public void invoke(com.dotNet4Java.api.core.DotNetNativeTypes.ClrObject sender, com.dotNet4Java.api.core.DotNetNativeTypes.ClrEventArgs eventArgs) throws java.lang.Exception {
SqlCeConnection evtObject = (SqlCeConnection) com.dotNet4Java.TClrNotifyEvent.INSTANCE.getSource(sender);
system.data.sqlserverce.SqlCeFlushFailureEventArgs evtArg = com.dotNet4Java.TClrObject.createInstance(com.dotNet4Java.api.util.ClrEventArgsUtils.getEventParamValue(eventArgs, 1), system.data.sqlserverce.SqlCeFlushFailureEventArgs.class);
if (evtObject != null) {
for (com.dotNet4Java.TClrObject handler : evtObject.FlushFailure) {
handler.invoke(evtObject, evtArg);
}
}
}
};
static final com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler InfoMessageHandler = new com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler() {
@Override
public void invoke(com.dotNet4Java.api.core.DotNetNativeTypes.ClrObject sender, com.dotNet4Java.api.core.DotNetNativeTypes.ClrEventArgs eventArgs) throws java.lang.Exception {
SqlCeConnection evtObject = (SqlCeConnection) com.dotNet4Java.TClrNotifyEvent.INSTANCE.getSource(sender);
system.data.sqlserverce.SqlCeInfoMessageEventArgs evtArg = com.dotNet4Java.TClrObject.createInstance(com.dotNet4Java.api.util.ClrEventArgsUtils.getEventParamValue(eventArgs, 1), system.data.sqlserverce.SqlCeInfoMessageEventArgs.class);
if (evtObject != null) {
for (com.dotNet4Java.TClrObject handler : evtObject.InfoMessage) {
handler.invoke(evtObject, evtArg);
}
}
}
};
static final com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler StateChangeHandler = new com.dotNet4Java.api.core.DotNetNativeTypes.IClrEventHandler() {
@Override
public void invoke(com.dotNet4Java.api.core.DotNetNativeTypes.ClrObject sender, com.dotNet4Java.api.core.DotNetNativeTypes.ClrEventArgs eventArgs) throws java.lang.Exception {
SqlCeConnection evtObject = (SqlCeConnection) com.dotNet4Java.TClrNotifyEvent.INSTANCE.getSource(sender);
system.data.StateChangeEventArgs evtArg = com.dotNet4Java.TClrObject.createInstance(com.dotNet4Java.api.util.ClrEventArgsUtils.getEventParamValue(eventArgs, 1), system.data.StateChangeEventArgs.class);
if (evtObject != null) {
for (system.data.StateChangeEventHandler handler : evtObject.StateChange) {
handler.invoke(evtObject, evtArg);
}
}
}
};
public java.lang.String get_DatabaseIdentifier() throws com.dotNet4Java.api.EClrError {
return getPropertyValueAsString("DatabaseIdentifier");
}
public com.dotNet4Java.TClrObject BeginTransaction_(system.data.IsolationLevel isolationLevel) throws java.lang.Exception {
return com.dotNet4Java.TClrObject.createInstance(invokeClrObjectMethod("BeginTransaction", new java.lang.String[] { dataRes.INSTANCE.DATA_ISOLATIONLEVEL }, new java.lang.Object[] { isolationLevel }), com.dotNet4Java.TClrObject.class);
}
public com.dotNet4Java.TClrObject BeginTransaction_() throws java.lang.Exception {
return com.dotNet4Java.TClrObject.createInstance(invokeClrObjectMethod("BeginTransaction"), com.dotNet4Java.TClrObject.class);
}
public com.dotNet4Java.TClrObject CreateCommand_() throws java.lang.Exception {
return com.dotNet4Java.TClrObject.createInstance(invokeClrObjectMethod("CreateCommand"), com.dotNet4Java.TClrObject.class);
}
public system.collections.generic.GenericList GetDatabaseInfo() throws java.lang.Exception {
return com.dotNet4Java.TClrGenericObject.createInstance(invokeClrObjectMethod("GetDatabaseInfo"), system.collections.generic.GenericList.class);
}
public void add_FlushFailure(com.dotNet4Java.TClrObject value) throws com.dotNet4Java.api.EClrError {
registerEventCallBack("FlushFailure", FlushFailureHandler);
FlushFailure.add(value);
}
public void add_InfoMessage(com.dotNet4Java.TClrObject value) throws com.dotNet4Java.api.EClrError {
registerEventCallBack("InfoMessage", InfoMessageHandler);
InfoMessage.add(value);
}
public void add_StateChange(system.data.StateChangeEventHandler value) throws com.dotNet4Java.api.EClrError {
registerEventCallBack("StateChange", StateChangeHandler);
StateChange.add(value);
}
public void remove_FlushFailure(com.dotNet4Java.TClrObject value) throws com.dotNet4Java.api.EClrError {
unRegisterEventCallBack("FlushFailure", FlushFailureHandler);
FlushFailure.remove(value);
}
public void remove_InfoMessage(com.dotNet4Java.TClrObject value) throws com.dotNet4Java.api.EClrError {
unRegisterEventCallBack("InfoMessage", InfoMessageHandler);
InfoMessage.remove(value);
}
public void remove_StateChange(system.data.StateChangeEventHandler value) throws com.dotNet4Java.api.EClrError {
unRegisterEventCallBack("StateChange", StateChangeHandler);
StateChange.remove(value);
}
}
// ----------------------------------------------------------------------------------------------------
// A Resource Class generated for System.Data.SqlServerCe assembly imported.
// This class contains all the type names of the type generated from System.Data.SqlServerCe assembly
// ----------------------------------------------------------------------------------------------------
package system.data.sqlserverce;
import com.dotNet4Java.enums.AssemblyLoadType;
import com.dotNet4Java.IClrAssembly;
import com.dotNet4Java.TClrAssembly;
import com.dotNet4Java.api.EClrError;
public class sqlserverceRes {
private final static java.lang.String ASSEMBLY_ID = "11c2edaa-7133-4b63-b24f-0bb3239f50f5";
private final static java.lang.String ASSEMBLY_PATH = "System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91";
static {
TClrAssembly.register(ASSEMBLY_ID, ASSEMBLY_PATH, AssemblyLoadType.GACByFullName);
}
public final static sqlserverceRes INSTANCE = new sqlserverceRes();
public final java.lang.String SQLSERVERCE_SQLCECONNECTION = "System.Data.SqlServerCe.SqlCeConnection";
private IClrAssembly dotNetAssembly;
public IClrAssembly getAssembly() throws EClrError {
if (dotNetAssembly == null)
dotNetAssembly = TClrAssembly.getRegisteredAssembly(ASSEMBLY_ID);
return dotNetAssembly;
}
}