DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Public Member Functions | |
StringType (SqlTypeCode typeCode, int maxSize, Encoding encoding, CultureInfo locale) | |
override bool | IsCacheable (ISqlObject value) |
override string | ToString () |
override Type | GetObjectType () |
override Type | GetRuntimeType () |
override bool | Equals (SqlType other) |
override int | GetHashCode () |
override bool | IsComparable (SqlType type) |
Verifies if a given SqlType is comparable to this data-type. More... | |
SqlBoolean | IsLike (ISqlString value, ISqlString pattern) |
SqlBoolean | IsNotLike (ISqlString value, ISqlString pattern) |
override object | ConvertTo (ISqlObject obj, Type destType) |
override ISqlObject | Add (ISqlObject a, ISqlObject b) |
override bool | CanCastTo (SqlType destType) |
Verifies if this type can cast any value to the given SqlType. More... | |
override DataObject | CastTo (DataObject value, SqlType destType) |
Converts the given object value to a SqlType specified. More... | |
override int | Compare (ISqlObject x, ISqlObject y) |
override void | SerializeObject (Stream stream, ISqlObject obj) |
override ISqlObject | DeserializeObject (Stream stream) |
Public Member Functions inherited from Deveel.Data.Types.SqlType | |
virtual ISqlObject | Subtract (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Multiply (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Divide (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Modulus (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Negate (ISqlObject value) |
virtual SqlBoolean | IsEqualTo (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsNotEqualTo (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsGreatherThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsSmallerThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsGreaterOrEqualThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsSmallerOrEqualThan (ISqlObject a, ISqlObject b) |
virtual ISqlObject | And (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Or (ISqlObject a, ISqlObject b) |
virtual ISqlObject | XOr (ISqlObject x, ISqlObject y) |
virtual ISqlObject | UnaryPlus (ISqlObject value) |
virtual ISqlObject | Reverse (ISqlObject value) |
virtual SqlType | Wider (SqlType otherType) |
Gets the one data-type between this and the other one given that handles the wider range of values. More... | |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
virtual ISqlObject | CreateFromLargeObject (ILargeObject objRef) |
virtual ISqlObject | CreateFrom (object value) |
Public Attributes | |
const int | DefaultMaxSize = Int16.MaxValue |
Protected Member Functions | |
override void | GetData (SerializeData data) |
Protected Member Functions inherited from Deveel.Data.Types.SqlType | |
SqlType (SqlTypeCode sqlType) | |
Constructs the SqlType for the given specific SQL TYPE. More... | |
SqlType (string name, SqlTypeCode typeCode) | |
Constructs the SqlType for the given specific SQL TYPE and a given name. More... | |
SqlType (ObjectData data) | |
Package Functions | |
override int | ColumnSizeOf (ISqlObject obj) |
Package Functions inherited from Deveel.Data.Types.SqlType | |
virtual int | GetCacheUsage (ISqlObject value) |
Static Package Functions | |
static bool | IsStringType (SqlTypeCode typeCode) |
Properties | |
int | MaxSize [get, private set] |
Gets the maximum number of characters that strings handled by this type can handle. More... | |
int ISizeableType. | Size [get] |
override bool | IsStorable [get] |
CultureInfo | Locale [get, private set] |
Gets the locale used to compare string values. More... | |
CompareInfo | Collator [get] |
Encoding | Encoding [get, private set] |
Properties inherited from Deveel.Data.Types.SqlType | |
string | Name [get, private set] |
Gets the name of the data-type that is used to resolve it within the context. More... | |
SqlTypeCode | TypeCode [get, private set] |
Gets the kind of SQL type this data-type handles. More... | |
virtual bool | IsIndexable [get] |
Indicates if the values handled by the type can be part of an index. More... | |
bool | IsPrimitive [get] |
Gets a value indicating if this data-type is primitive. More... | |
bool | IsNull [get] |
virtual bool | IsStorable [get] |
Properties inherited from Deveel.Data.Types.ISizeableType | |
int | Size [get] |
Private Member Functions | |
StringType (ObjectData data) | |
SqlDateTime | ToDate (string str) |
SqlDateTime | ToTime (String str) |
SqlDateTime | ToTimeStamp (String str) |
SqlDateTime | ToDateTime (string str) |
string | DateErrorMessage (string str, SqlTypeCode sqlType, string[] formats) |
SqlBoolean | ToBoolean (string s) |
Static Private Member Functions | |
static void | AssertIsString (SqlTypeCode sqlType) |
static SqlNumber | ToNumber (String str) |
static int | LexicographicalOrder (ISqlString str1, ISqlString str2) |
Private Attributes | |
CompareInfo | collator |
Additional Inherited Members | |
Static Public Member Functions inherited from Deveel.Data.Types.SqlType | |
static SqlType | Parse (string s) |
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent. More... | |
static SqlType | Parse (IContext context, string s) |
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent. More... | |
static bool | IsPrimitiveType (SqlTypeCode typeCode) |
static SqlType | Resolve (SqlTypeCode typeCode) |
static SqlType | Resolve (SqlTypeCode typeCode, DataTypeMeta[] meta) |
static SqlType | Resolve (SqlTypeCode typeCode, DataTypeMeta[] meta, ITypeResolver resolver) |
static SqlType | Resolve (SqlTypeCode typeCode, string name) |
static SqlType | Resolve (SqlTypeCode typeCode, string name, DataTypeMeta[] meta) |
static SqlType | Resolve (string name) |
static SqlType | Resolve (string name, DataTypeMeta[] meta) |
static SqlType | Resolve (string name, DataTypeMeta[] meta, ITypeResolver resolver) |
static SqlType | Resolve (SqlTypeCode typeCode, string name, DataTypeMeta[] meta, ITypeResolver resolver) |
Definition at line 29 of file StringType.cs.
|
inline |
Definition at line 34 of file StringType.cs.
|
inlineprivate |
Definition at line 45 of file StringType.cs.
|
inlinevirtual |
|
inlinestaticprivate |
Definition at line 60 of file StringType.cs.
|
inlinevirtual |
Verifies if this type can cast any value to the given SqlType.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 320 of file StringType.cs.
|
inlinevirtual |
Converts the given object value to a SqlType specified.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 328 of file StringType.cs.
|
inlinepackagevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 548 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 419 of file StringType.cs.
|
inlinevirtual |
|
inlineprivate |
Definition at line 298 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 518 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 152 of file StringType.cs.
|
inlineprotectedvirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 104 of file StringType.cs.
|
inline |
Definition at line 174 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 125 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 138 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 112 of file StringType.cs.
|
inlinevirtual |
Verifies if a given SqlType is comparable to this data-type.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 179 of file StringType.cs.
|
inline |
Definition at line 198 of file StringType.cs.
|
inline |
Definition at line 211 of file StringType.cs.
|
inlinestaticpackage |
Definition at line 566 of file StringType.cs.
|
inlinestaticprivate |
Definition at line 441 of file StringType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 487 of file StringType.cs.
|
inlineprivate |
Definition at line 306 of file StringType.cs.
|
inlineprivate |
Definition at line 265 of file StringType.cs.
|
inlineprivate |
Definition at line 290 of file StringType.cs.
Definition at line 256 of file StringType.cs.
|
inline |
Definition at line 117 of file StringType.cs.
|
inlineprivate |
Definition at line 273 of file StringType.cs.
|
inlineprivate |
Definition at line 282 of file StringType.cs.
|
private |
Definition at line 30 of file StringType.cs.
const int Deveel.Data.Types.StringType.DefaultMaxSize = Int16.MaxValue |
Definition at line 32 of file StringType.cs.
|
getprivate |
Definition at line 88 of file StringType.cs.
|
getprivate set |
Definition at line 102 of file StringType.cs.
|
get |
Definition at line 75 of file StringType.cs.
|
getprivate set |
Gets the locale used to compare string values.
When this value is not specified, the schema or database locale is used to compare string values.
Definition at line 86 of file StringType.cs.
|
getprivate set |
Gets the maximum number of characters that strings handled by this type can handle.
Definition at line 69 of file StringType.cs.
|
getprivate |
Definition at line 71 of file StringType.cs.