summaryrefslogtreecommitdiff
path: root/framework/Data/TDbNullConversionMode.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/TDbNullConversionMode.php')
-rw-r--r--framework/Data/TDbNullConversionMode.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/framework/Data/TDbNullConversionMode.php b/framework/Data/TDbNullConversionMode.php
new file mode 100644
index 00000000..1171861a
--- /dev/null
+++ b/framework/Data/TDbNullConversionMode.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * TDbConnection class file
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package System.Data
+ */
+
+/**
+ * TDbNullConversionMode
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @package System.Data
+ * @since 3.0
+ */
+class TDbNullConversionMode extends TEnumerable
+{
+ /**
+ * No conversion is performed for null and empty values.
+ */
+ const Preserved='Preserved';
+ /**
+ * NULL is converted to empty string
+ */
+ const NullToEmptyString='NullToEmptyString';
+ /**
+ * Empty string is converted to NULL
+ */
+ const EmptyStringToNull='EmptyStringToNull';
+} \ No newline at end of file