|
static DataObject | XmlType (DataObject obj) |
|
static SqlXmlNode | XmlType (ISqlBinary binary) |
|
static SqlXmlNode | XmlType (ISqlString s) |
|
static DataObject | AppendChild (DataObject obj, DataObject xpath, DataObject value) |
|
static SqlXmlNode | AppendChild (SqlXmlNode node, string xpath, SqlXmlNode value) |
|
static DataObject | Extract (DataObject obj, DataObject xpath) |
|
static SqlXmlNode | Extract (SqlXmlNode node, string xpath) |
|
static DataObject | ExtractValue (DataObject obj, DataObject xpath) |
|
static ISqlObject | ExtractValue (SqlXmlNode node, string xpath) |
|
static DataObject | Delete (DataObject obj, DataObject xpath) |
|
static SqlXmlNode | Delete (SqlXmlNode node, string xpath) |
|
static DataObject | Exists (DataObject obj, DataObject xpath) |
|
static DataObject | Exists (DataObject obj, string xpath) |
|
static DataObject | InsertChild (DataObject obj, DataObject xpath, DataObject child, DataObject value) |
|
static SqlXmlNode | InsertChild (SqlXmlNode node, string xpath, SqlXmlNode child, SqlXmlNode value) |
|
static DataObject | InsertBefore (DataObject obj, DataObject xpath, DataObject value) |
|
static DataObject | InsertBefore (DataObject obj, string xpath, DataObject value) |
|
static SqlXmlNode | Update (SqlXmlNode node, string xpath, DataObject value) |
|
static DataObject | Update (DataObject obj, DataObject xpath, DataObject value) |
|
Definition at line 10 of file XmlFunctions.cs.
Definition at line 101 of file XmlFunctions.cs.
103 return new DataObject(XmlNodeType.XmlType, result);
static string GetXPath(DataObject xpath)
static SqlXmlNode GetXmlNode(DataObject node)
static DataObject AppendChild(DataObject obj, DataObject xpath, DataObject value)
Definition at line 107 of file XmlFunctions.cs.
SqlXmlNode AppendChild(string xpath, SqlXmlNode value)
Definition at line 138 of file XmlFunctions.cs.
140 return new DataObject(XmlNodeType.XmlType, result);
static string GetXPath(DataObject xpath)
static SqlXmlNode GetXmlNode(DataObject node)
static DataObject Delete(DataObject obj, DataObject xpath)
Definition at line 147 of file XmlFunctions.cs.
static DataObject Exists(DataObject obj, DataObject xpath)
static string GetXPath(DataObject xpath)
Definition at line 111 of file XmlFunctions.cs.
113 return new DataObject(XmlNodeType.XmlType, result);
static DataObject Extract(DataObject obj, DataObject xpath)
static string GetXPath(DataObject xpath)
static SqlXmlNode GetXmlNode(DataObject node)
Definition at line 120 of file XmlFunctions.cs.
131 return new DataObject(resultType, result);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BinaryType Binary(int maxSize)
static DataObject ExtractValue(DataObject obj, DataObject xpath)
static string GetXPath(DataObject xpath)
static NumericType Numeric()
static SqlXmlNode GetXmlNode(DataObject node)
Defines the properties of a specific SQL Type and handles the values compatible.
static StringType String()
Defines the required contract of a SQL BINARY object
Definition at line 22 of file XmlFunctions.cs.
23 if (!(node.Type is XmlNodeType))
24 throw new ArgumentException();
static string Deveel.Data.Xml.XmlFunctions.GetXPath |
( |
DataObject |
xpath | ) |
|
|
inlinestaticprivate |
Definition at line 15 of file XmlFunctions.cs.
17 throw new ArgumentException();
19 return xpath.AsVarChar().Value.ToString();
Definition at line 163 of file XmlFunctions.cs.
static DataObject InsertBefore(DataObject obj, DataObject xpath, DataObject value)
static string GetXPath(DataObject xpath)
Definition at line 159 of file XmlFunctions.cs.
SqlXmlNode InsertChild(string xpath, SqlXmlNode child, SqlXmlNode value)
Definition at line 171 of file XmlFunctions.cs.
172 return node.
Update(xpath, value.Value);
bool Update(string xpath, object value, string xmlNs, out byte[] updated)
Definition at line 175 of file XmlFunctions.cs.
177 return new DataObject(XmlNodeType.XmlType, result);
static string GetXPath(DataObject xpath)
static SqlXmlNode GetXmlNode(DataObject node)
static SqlXmlNode Update(SqlXmlNode node, string xpath, DataObject value)
Definition at line 29 of file XmlFunctions.cs.
31 return new DataObject(XmlNodeType.XmlType,
SqlNull.
Value);
33 var value = obj.Value;
37 xmlNode =
XmlType((ISqlBinary) value);
39 xmlNode =
XmlType((ISqlString) value);
41 throw new NotSupportedException();
44 return new DataObject(XmlNodeType.XmlType, xmlNode);
static readonly SqlNull Value
static DataObject XmlType(DataObject obj)
Defines the required contract of a SQL BINARY object
Definition at line 47 of file XmlFunctions.cs.
49 var content =
new byte[len];
52 const int bufferSize = 1024 * 10;
54 using (var stream = binary.
GetInput()) {
55 using (var reader =
new BinaryReader(stream)) {
57 var buffer =
new byte[bufferSize];
58 var readCount = reader.Read(buffer, 0, bufferSize);
60 Array.Copy(buffer, 0, content, offset, readCount);
long Length
Gets the raw length of the binary object.
Stream GetInput()
Gets an object used to read the contents of the binary
Definition at line 73 of file XmlFunctions.cs.
75 var content =
new char[len];
78 const int bufferSize = 1024*10;
82 var buffer =
new char[bufferSize];
83 var readCount = reader.Read(buffer, 0, bufferSize);
88 Array.Copy(buffer, 0, content, offset, readCount);
94 var bytes = s.
Encoding.GetBytes(content);
95 if (!s.
Encoding.Equals(Encoding.UTF8))
96 bytes = Encoding.Convert(s.
Encoding, Encoding.UTF8, bytes);
TextReader GetInput(Encoding encoding)
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-xml/Deveel.Data.Xml/XmlFunctions.cs