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

Public Member Functions

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

Additional Inherited Members

- Static Protected Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< SqlUnaryExpression >
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 210 of file SqlExpressionSerializers.cs.

Member Function Documentation

override SqlUnaryExpression Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlUnaryExpressionSerializer.Deserialize ( BinaryReader  reader)
inline

Definition at line 216 of file SqlExpressionSerializers.cs.

216  {
217  var expType = (SqlExpressionType) reader.ReadByte();
218  var exp = ReadExpression(reader);
219 
220  return SqlExpression.Unary(expType, exp);
221  }
SqlExpressionType
All the possible type of SqlExpression supported
override void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlUnaryExpressionSerializer.Serialize ( SqlUnaryExpression  expression,
BinaryWriter  writer 
)
inline

Definition at line 211 of file SqlExpressionSerializers.cs.

211  {
212  writer.Write((byte)expression.ExpressionType);
213  WriteExpression(expression.Operand, writer);
214  }

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