2007-06-06 Amit Biswas <amit@amitbiswas.com>
[mono.git] / mcs / class / System.Data / System.Data.Odbc / OdbcCommandBuilder.cs
index 93d5a7f7a526ada7ea7f6332d2f45f43863b9ab0..5002bc61109d2fcece818393cc1ef0a848b6afd1 100644 (file)
@@ -332,6 +332,25 @@ namespace System.Data.Odbc
                        return _insertCommand;
                }
 
+#if NET_2_0
+               [MonoTODO]
+               public new OdbcCommand GetInsertCommand (bool option)
+               {
+                       // FIXME: check validity of adapter
+                       if (_insertCommand != null)
+                               return _insertCommand;
+
+                       if (_schema == null)
+                               RefreshSchema ();
+
+                       if (option == false) {
+                               return GetInsertCommand ();
+                       } else {
+                               throw new NotImplementedException ();
+                       }
+               }
+#endif // NET_2_0
+                       
                public
 #if NET_2_0
                 new
@@ -387,6 +406,25 @@ namespace System.Data.Odbc
                        return _updateCommand;
                }
 
+#if NET_2_0
+               [MonoTODO]
+                public new OdbcCommand GetUpdateCommand (bool option)
+               {
+                       // FIXME: check validity of adapter
+                       if (_updateCommand != null)
+                               return _updateCommand;
+
+                       if (_schema == null)
+                               RefreshSchema ();
+
+                       if (option == false) {
+                               return GetUpdateCommand ();
+                       } else {
+                               throw new NotImplementedException ();
+                       }
+               }
+#endif // NET_2_0
+                       
                public
 #if NET_2_0
                 new
@@ -414,6 +452,25 @@ namespace System.Data.Odbc
                        return _deleteCommand;
                }
 
+#if NET_2_0
+               [MonoTODO]
+                public new OdbcCommand GetDeleteCommand (bool option)
+               {
+                       // FIXME: check validity of adapter
+                       if (_deleteCommand != null)
+                               return _deleteCommand;
+
+                       if (_schema == null)
+                               RefreshSchema ();
+
+                       if (option == false) {
+                               return GetDeleteCommand ();
+                       } else {
+                               throw new NotImplementedException ();
+                       }
+               }
+#endif // NET_2_0
+
                public
 #if NET_2_0
                 override
@@ -487,14 +544,18 @@ namespace System.Data.Odbc
 #endif         
                string QuoteIdentifier (string unquotedIdentifier)
                {
+                 /*
 #if NET_2_0
                        throw new NotImplementedException ();
 #else
+                 */
                        if (unquotedIdentifier == null || unquotedIdentifier == String.Empty)
                                return unquotedIdentifier;
                        return String.Format ("{0}{1}{2}", QuotePrefix, 
                                              unquotedIdentifier, QuoteSuffix);
+                       /*
 #endif                 
+                       */
                }
 
 #if NET_2_0