DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
SqlLongBinary.cs
Go to the documentation of this file.
1 //
2 // Copyright 2010-2015 Deveel
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 using System;
18 using System.Collections;
19 using System.Collections.Generic;
20 using System.IO;
21 
22 using Deveel.Data.Store;
23 
24 namespace Deveel.Data.Sql.Objects {
25  public sealed class SqlLongBinary : ISqlBinary, IObjectRef, IDisposable {
26  private readonly ILargeObject largeObject;
27 
28  public static readonly SqlLongBinary Null = new SqlLongBinary(null);
29 
30  public SqlLongBinary(ILargeObject largeObject) {
31  this.largeObject = largeObject;
32  }
33 
34  public int CompareTo(object obj) {
35  throw new NotImplementedException();
36  }
37 
38  public int CompareTo(ISqlObject other) {
39  throw new NotImplementedException();
40  }
41 
42  public bool IsNull {
43  get { return largeObject == null; }
44  }
45 
46  public bool IsComparableTo(ISqlObject other) {
47  throw new NotImplementedException();
48  }
49 
50  public IEnumerator<byte> GetEnumerator() {
51  throw new NotImplementedException();
52  }
53 
54  IEnumerator IEnumerable.GetEnumerator() {
55  return GetEnumerator();
56  }
57 
58  public long Length { get; private set; }
59 
60  public Stream GetInput() {
61  throw new NotImplementedException();
62  }
63 
64  public void Dispose() {
65  throw new NotImplementedException();
66  }
67 
68  public ObjectId ObjectId { get; private set; }
69  }
70 }
Defines a referenced object that can be accessed on a multi-phase level.
Definition: ILargeObject.cs:35
IEnumerator< byte > GetEnumerator()
Defines the contract for a valid SQL Object
Definition: ISqlObject.cs:23
A unique identifier of an object within a database system, that is composed by a reference to the sto...
Definition: ObjectId.cs:31
SqlLongBinary(ILargeObject largeObject)
bool IsComparableTo(ISqlObject other)
Checks if the current object is comparable with the given one.
Stream GetInput()
Gets an object used to read the contents of the binary
Defines the required contract of a SQL BINARY object
Definition: ISqlBinary.cs:25