commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7170 - trunk/gnue-common/src/datasources/drivers/Base


From: reinhard
Subject: [gnue] r7170 - trunk/gnue-common/src/datasources/drivers/Base
Date: Fri, 11 Mar 2005 11:33:01 -0600 (CST)

Author: reinhard
Date: 2005-03-11 11:33:00 -0600 (Fri, 11 Mar 2005)
New Revision: 7170

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/Connection.py
Log:
Added placeholders for new virtual methods.


Modified: trunk/gnue-common/src/datasources/drivers/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/Connection.py        
2005-03-11 17:09:31 UTC (rev 7169)
+++ trunk/gnue-common/src/datasources/drivers/Base/Connection.py        
2005-03-11 17:33:00 UTC (rev 7170)
@@ -421,6 +421,54 @@
 
   # ---------------------------------------------------------------------------
 
+  def _insert (self, table, newfields, recno):
+    """
+    Insert a new record in the backend (to be implemented by descendants).
+
+    Database drivers can overwrite this method to send new data records to the
+    backend.
+
+    @param table: Table name.
+    @param newfields: Fieldname/Value dictionary of data to insert.
+    @param recno: Record number to be used in error messages.
+    """
+    pass
+
+  # ---------------------------------------------------------------------------
+
+  def _update (self, table, oldfields, newfields, recno):
+    """
+    Update an existing record in the backend.
+
+    Database drivers can overwrite this method to send changes of existing data
+    records to the backend (to be implemented by descendants).
+
+    @param table: Table name.
+    @param oldfields: Fieldname/Value dictionary of fields to find the existing
+      record (aka where-clause)
+    @param newfields: Fieldname/Value dictionary of data to change.
+    @param recno: Record number to be used in error messages.
+    """
+    pass
+
+  # ---------------------------------------------------------------------------
+
+  def _delete (self, table, oldfields, recno):
+    """
+    Delete a record from the backend (to be implemented by descendants).
+
+    Database drivers can overwrite this method to send removals of data records
+    to the backend.
+
+    @param table: Table name.
+    @param oldfields: Fieldname/Value dictionary of fields to find the existing
+      record (aka where-clause)
+    @param recno: Record number to be used in error messages.
+    """
+    pass
+
+  # ---------------------------------------------------------------------------
+
   def _commit (self):
     """
     Commit pending changes in the backend (to be implemented by descendants).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]