|
| ObjectData (Type entityType, IEnumerable< KeyValuePair< string, object >> values) |
|
|
readonly Dictionary< string, object > | values |
|
Definition at line 22 of file ObjectData.cs.
Deveel.Data.Serialization.ObjectData.ObjectData |
( |
Type |
entityType, |
|
|
IEnumerable< KeyValuePair< string, object >> |
values |
|
) |
| |
|
inlinepackage |
Definition at line 25 of file ObjectData.cs.
27 this.
values =
new Dictionary<string, object>();
29 foreach (var pair
in values) {
30 this.values[pair.Key] = pair.Value;
readonly Dictionary< string, object > values
bool Deveel.Data.Serialization.ObjectData.GetBoolean |
( |
string |
key | ) |
|
|
inline |
Definition at line 73 of file ObjectData.cs.
74 return GetValue<bool>(key);
byte Deveel.Data.Serialization.ObjectData.GetByte |
( |
string |
key | ) |
|
|
inline |
Definition at line 77 of file ObjectData.cs.
78 return GetValue<byte>(key);
double Deveel.Data.Serialization.ObjectData.GetDouble |
( |
string |
key | ) |
|
|
inline |
Definition at line 97 of file ObjectData.cs.
98 return GetValue<double>(key);
short Deveel.Data.Serialization.ObjectData.GetInt16 |
( |
string |
key | ) |
|
|
inline |
Definition at line 81 of file ObjectData.cs.
82 return GetValue<short>(key);
int Deveel.Data.Serialization.ObjectData.GetInt32 |
( |
string |
key | ) |
|
|
inline |
long Deveel.Data.Serialization.ObjectData.GetInt64 |
( |
string |
key | ) |
|
|
inline |
Definition at line 89 of file ObjectData.cs.
90 return GetValue<long>(key);
float Deveel.Data.Serialization.ObjectData.GetSingle |
( |
string |
key | ) |
|
|
inline |
Definition at line 93 of file ObjectData.cs.
94 return GetValue<float>(key);
string Deveel.Data.Serialization.ObjectData.GetString |
( |
string |
key | ) |
|
|
inline |
object Deveel.Data.Serialization.ObjectData.GetValue |
( |
string |
key | ) |
|
|
inline |
Definition at line 48 of file ObjectData.cs.
49 if (
String.IsNullOrEmpty(key))
50 throw new ArgumentNullException(
"key");
53 if (!
values.TryGetValue(key, out value))
A long string in the system.
readonly Dictionary< string, object > values
Definition at line 59 of file ObjectData.cs.
67 if (!(value is IConvertible))
68 throw new InvalidCastException();
70 return (T) Convert.ChangeType(value, typeof (T), CultureInfo.InvariantCulture);
object GetValue(string key)
bool Deveel.Data.Serialization.ObjectData.HasValue |
( |
string |
key | ) |
|
|
inline |
Definition at line 41 of file ObjectData.cs.
42 if (
String.IsNullOrEmpty(key))
43 throw new ArgumentNullException(
"key");
45 return values.ContainsKey(key);
A long string in the system.
readonly Dictionary< string, object > values
readonly Dictionary<string, object> Deveel.Data.Serialization.ObjectData.values |
|
private |
int Deveel.Data.Serialization.ObjectData.Count |
|
get |
Type Deveel.Data.Serialization.ObjectData.EntityType |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Serialization/ObjectData.cs