DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlBinaryExpressionSerializer Class Reference
Inheritance diagram for Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlBinaryExpressionSerializer:
Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< SqlBinaryExpression >

Public Member Functions

override void Serialize (SqlBinaryExpression expression, BinaryWriter writer)
 
override SqlBinaryExpression Deserialize (BinaryReader reader)
 

Additional Inherited Members

- Static Protected Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< SqlBinaryExpression >
static void WriteExpression (SqlExpression expression, BinaryWriter writer)
 
static void WriteExpressions (SqlExpression[] expressions, BinaryWriter writer)
 
static SqlExpression ReadExpression (BinaryReader reader)
 
static SqlExpression[] ReadExpressions (BinaryReader reader)
 

Detailed Description

Definition at line 228 of file SqlExpressionSerializers.cs.

Member Function Documentation

override SqlBinaryExpression Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlBinaryExpressionSerializer.Deserialize ( BinaryReader  reader)
inline

Definition at line 235 of file SqlExpressionSerializers.cs.

235  {
236  var left = ReadExpression(reader);
237  var exptype = (SqlExpressionType) reader.ReadByte();
238  var right = ReadExpression(reader);
239 
240  return SqlExpression.Binary(left, exptype, right);
241  }
SqlExpressionType
All the possible type of SqlExpression supported
override void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlBinaryExpressionSerializer.Serialize ( SqlBinaryExpression  expression,
BinaryWriter  writer 
)
inline

Definition at line 229 of file SqlExpressionSerializers.cs.

229  {
230  WriteExpression(expression.Left, writer);
231  writer.Write((byte)expression.ExpressionType);
232  WriteExpression(expression.Right, writer);
233  }

The documentation for this class was generated from the following file: