OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 144 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 144 Rev 156
Line 18... Line 18...
18
import org.openconcerto.openoffice.spreadsheet.SpreadSheet;
18
import org.openconcerto.openoffice.spreadsheet.SpreadSheet;
19
import org.openconcerto.sql.Configuration;
19
import org.openconcerto.sql.Configuration;
20
import org.openconcerto.sql.model.SQLBase;
20
import org.openconcerto.sql.model.SQLBase;
21
import org.openconcerto.sql.model.SQLField;
21
import org.openconcerto.sql.model.SQLField;
22
import org.openconcerto.sql.model.SQLRowValues;
22
import org.openconcerto.sql.model.SQLRowValues;
-
 
23
import org.openconcerto.sql.model.SQLRowValuesCluster.StoreMode;
23
import org.openconcerto.sql.model.SQLRowValuesListFetcher;
24
import org.openconcerto.sql.model.SQLRowValuesListFetcher;
24
import org.openconcerto.sql.model.SQLTable;
25
import org.openconcerto.sql.model.SQLTable;
25
import org.openconcerto.sql.users.UserManager;
26
import org.openconcerto.sql.users.UserManager;
26
import org.openconcerto.utils.text.CSVReader;
27
import org.openconcerto.utils.text.CSVReader;
27
import org.openconcerto.utils.text.CSVWriter;
28
import org.openconcerto.utils.text.CSVWriter;
Line 114... Line 115...
114
 
115
 
115
    }
116
    }
116
 
117
 
117
    public void commit() throws SQLException {
118
    public void commit() throws SQLException {
118
        for (SQLRowValues row : this.valuesToInsert) {
119
        for (SQLRowValues row : this.valuesToInsert) {
119
            row.insert();
120
            row.getGraph().store(StoreMode.INSERT, false);
120
        }
121
        }
121
        for (SQLRowValues row : this.valuesToUpdate) {
122
        for (SQLRowValues row : this.valuesToUpdate) {
122
            row.update();
123
            row.getGraph().store(StoreMode.COMMIT, false);
123
        }
124
        }
124
        doAfterImport();
125
        doAfterImport();
125
    }
126
    }
126
 
127
 
127
    public List<SQLRowValues> getValuesToInsert() {
128
    public List<SQLRowValues> getValuesToInsert() {