Exemplo n.º 1
0
        public void BeginBatch(OracleLobOpenMode mode)
        {
            AssertConnectionIsOpen();
            AssertObjectNotDisposed();

            isBatched = true;
        }
 public void BeginBatch(OracleLobOpenMode mode)
 {
     this.AssertObjectNotDisposed();
     if (!this.IsNull)
     {
         this.AssertConnectionIsOpen();
         this.LobLocator.Open(mode);
     }
 }
		public void BeginBatch (OracleLobOpenMode mode)
		{
			int status = 0;
			status = OciCalls.OCILobOpen (Service, 
						ErrorHandle,
						Handle,
						(byte) mode);

			if (status != 0) {
				OciErrorInfo info = ErrorHandle.HandleError ();
				throw new OracleException (info.ErrorCode, info.ErrorMessage);
			}
		}
Exemplo n.º 4
0
        internal void Open(OracleLobOpenMode mode)
        {
            OracleLobOpenMode current = (OracleLobOpenMode)Interlocked.CompareExchange(ref this._openMode, (int)mode, 0);

            if (current == ((OracleLobOpenMode)0))
            {
                this.ForceOpen();
            }
            else if (mode != current)
            {
                throw System.Data.Common.ADP.CannotOpenLobWithDifferentMode(mode, current);
            }
        }
Exemplo n.º 5
0
        public void BeginBatch(OracleLobOpenMode mode)
        {
            int status = 0;

            status = OciCalls.OCILobOpen(Service,
                                         ErrorHandle,
                                         Handle,
                                         (byte)mode);

            if (status != 0)
            {
                OciErrorInfo info = ErrorHandle.HandleError();
                throw new OracleException(info.ErrorCode, info.ErrorMessage);
            }
        }
Exemplo n.º 6
0
        internal void Open(OracleLobOpenMode mode)
        {
            OracleLobOpenMode openMode = (OracleLobOpenMode)Interlocked.CompareExchange(ref _openMode, (int)mode, 0);

            if (0 == openMode)
            {
                ForceOpen();
            }
#if EVERETT
            else if (mode != openMode)
            {
                throw ADP.CannotOpenLobWithDifferentMode(mode, openMode);
            }
#endif //EVERETT
        }
Exemplo n.º 7
0
		public void BeginBatch (OracleLobOpenMode mode)
		{
			AssertConnectionIsOpen ();
			AssertObjectNotDisposed ();

			locator.BeginBatch (mode);
			isBatched = true;
		}
Exemplo n.º 8
0
 internal static Exception CannotOpenLobWithDifferentMode(OracleLobOpenMode newmode, OracleLobOpenMode current)
 {
     return(InvalidOperation(System.Data.OracleClient.Res.GetString("ADP_CannotOpenLobWithDifferentMode", new object[] { newmode.ToString(), current.ToString() })));
 }
Exemplo n.º 9
0
 public void BeginBatch(OracleLobOpenMode mode)
 {
 }
	public void BeginBatch(OracleLobOpenMode mode) {}
 public void BeginBatch(OracleLobOpenMode mode)
 {
     this.AssertObjectNotDisposed();
     if (!this.IsNull)
     {
         this.AssertConnectionIsOpen();
         this.LobLocator.Open(mode);
     }
 }
 internal static Exception CannotOpenLobWithDifferentMode(OracleLobOpenMode newmode, OracleLobOpenMode current)
 {
     return InvalidOperation(System.Data.OracleClient.Res.GetString("ADP_CannotOpenLobWithDifferentMode", new object[] { newmode.ToString(), current.ToString() }));
 }
 internal void Open(OracleLobOpenMode mode)
 {
     OracleLobOpenMode current = (OracleLobOpenMode) Interlocked.CompareExchange(ref this._openMode, (int) mode, 0);
     if (current == ((OracleLobOpenMode) 0))
     {
         this.ForceOpen();
     }
     else if (mode != current)
     {
         throw System.Data.Common.ADP.CannotOpenLobWithDifferentMode(mode, current);
     }
 }
Exemplo n.º 14
0
 static internal Exception CannotOpenLobWithDifferentMode(OracleLobOpenMode newmode, OracleLobOpenMode current)
 {
     return(InvalidOperation(Res.GetString(Res.ADP_CannotOpenLobWithDifferentMode, newmode.ToString(CultureInfo.CurrentCulture), current.ToString(CultureInfo.CurrentCulture))));
 }