コード例 #1
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public NativeResult[] Execute(NativeSessionHandle sessionHandle, NativeExecuteOperation[] operations)
 {
     try
     {
         return(GetNativeSession(sessionHandle).Execute(operations));
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #2
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public int GetTransactionCount(NativeSessionHandle sessionHandle)
 {
     try
     {
         return(GetNativeSession(sessionHandle).Process.TransactionCount);
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #3
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public NativeResult Execute(NativeSessionHandle sessionHandle, string statement, NativeParam[] paramsValue, NativeExecutionOptions options)
 {
     try
     {
         return(GetNativeSession(sessionHandle).Execute(statement, paramsValue, options));
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #4
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public void RollbackTransaction(NativeSessionHandle sessionHandle)
 {
     try
     {
         GetNativeSession(sessionHandle).Process.RollbackTransaction();
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #5
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public void BeginTransaction(NativeSessionHandle sessionHandle, NativeIsolationLevel isolationLevel)
 {
     try
     {
         GetNativeSession(sessionHandle).Process.BeginTransaction(NativeCLIUtility.NativeIsolationLevelToIsolationLevel(isolationLevel));
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #6
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public void StopSession(NativeSessionHandle sessionHandle)
 {
     try
     {
         StopNativeSession(RemoveNativeSession(sessionHandle));
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #7
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public NativeResult[] Execute(NativeSessionInfo sessionInfo, NativeExecuteOperation[] operations)
 {
     try
     {
         NativeSession nativeSession = StartNativeSession(sessionInfo);
         try
         {
             return(nativeSession.Execute(operations));
         }
         finally
         {
             StopNativeSession(nativeSession);
         }
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #8
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public NativeResult Execute(NativeSessionInfo sessionInfo, string statement, NativeParam[] paramsValue, NativeExecutionOptions options)
 {
     try
     {
         NativeSession nativeSession = StartNativeSession(sessionInfo);
         try
         {
             return(nativeSession.Execute(statement, paramsValue, options));
         }
         finally
         {
             StopNativeSession(nativeSession);
         }
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }
コード例 #9
0
ファイル: NativeServer.cs プロジェクト: laszlo-kiss/Dataphor
 public NativeSessionHandle StartSession(NativeSessionInfo sessionInfo)
 {
     try
     {
         NativeSession nativeSession = StartNativeSession(sessionInfo);
         try
         {
             return(AddNativeSession(nativeSession));
         }
         catch
         {
             StopNativeSession(nativeSession);
             throw;
         }
     }
     catch (Exception exception)
     {
         throw NativeCLIUtility.WrapException(exception);
     }
 }