details: /erp/devel/dbsm-main/rev/609c0128a293
changeset: 277:609c0128a293
user: Stefan Hühner <stefan.huehner <at> openbravo.com>
date: Tue Mar 02 16:36:08 2010 +0100
summary: Fixed 12527: use normal RemoveRowChange in comparison
as this is the type now generated in comparison, and not the no longer
used RemoveRowDALChange type.
Remove the RemoveRowDALChange type completely.
diffstat:
src/org/apache/ddlutils/alteration/RemoveRowDALChange.java | 33 --------------
src/org/apache/ddlutils/platform/PlatformImplBase.java | 3 +-
2 files changed, 1 insertions(+), 35 deletions(-)
diffs (58 lines):
diff -r f4a4a2700dbb -r 609c0128a293
src/org/apache/ddlutils/alteration/RemoveRowDALChange.java
--- a/src/org/apache/ddlutils/alteration/RemoveRowDALChange.java Tue Mar
02 16:28:01 2010 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-package org.apache.ddlutils.alteration;
-
-import org.apache.ddlutils.model.DatabaseData;
-import org.apache.ddlutils.model.Table;
-import org.openbravo.base.structure.BaseOBObject;
-
-public class RemoveRowDALChange implements DataChange {
-
- Table _table;
- BaseOBObject _row;
-
- public RemoveRowDALChange(Table table, BaseOBObject row) {
- _table = table;
- _row = row;
- }
-
- public void apply(DatabaseData databaseData, boolean caseSensitive) {
- // databaseData.removeRow(_table, _row);
- }
-
- public String toString() {
- return "Row removed from table [" + _table.getName() + "]: <" + _row + ">";
- }
-
- public BaseOBObject getRow() {
- return _row;
- }
-
- public Table getTable() {
- return _table;
- }
-
-}
\ No newline at end of file
diff -r f4a4a2700dbb -r 609c0128a293
src/org/apache/ddlutils/platform/PlatformImplBase.java
--- a/src/org/apache/ddlutils/platform/PlatformImplBase.java Tue Mar 02
16:28:01 2010 +0100
+++ b/src/org/apache/ddlutils/platform/PlatformImplBase.java Tue Mar 02
16:36:08 2010 +0100
@@ -58,7 +58,6 @@
import org.apache.ddlutils.alteration.Change;
import org.apache.ddlutils.alteration.ColumnDataChange;
import org.apache.ddlutils.alteration.RemoveRowChange;
-import org.apache.ddlutils.alteration.RemoveRowDALChange;
import org.apache.ddlutils.dynabean.SqlDynaClass;
import org.apache.ddlutils.dynabean.SqlDynaProperty;
import org.apache.ddlutils.model.Column;
@@ -773,7 +772,7 @@
writer.append(getSqlBuilder().getInsertSql(table, map, false));
getSqlBuilder().printEndOfStatement("");
- } else if (change instanceof RemoveRowDALChange) {
+ } else if (change instanceof RemoveRowChange) {
RemoveRowChange removeChange = (RemoveRowChange) change;
HashMap map = new HashMap();
Table table = removeChange.getTable();
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits