OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 17 Rev 19
Line 115... Line 115...
115
    }
115
    }
116
 
116
 
117
    protected final SQLRowValuesListFetcher getFetcher(final Where w) {
117
    protected final SQLRowValuesListFetcher getFetcher(final Where w) {
118
        final String tableName = getPrimaryTable().getName();
118
        final String tableName = getPrimaryTable().getName();
119
        final SQLRowValuesListFetcher fetcher = new SQLRowValuesListFetcher(getGraphToFetch(), true);
119
        final SQLRowValuesListFetcher fetcher = new SQLRowValuesListFetcher(getGraphToFetch(), true);
120
        // ignore LOCAL in archived BATIMENT, since IListe always expect a BATIMENT
-
 
121
        // works for now because LOCAL w/o OBS point to OBS[1]
120
        // include rows having NULL (not undefined ID) foreign keys
122
        fetcher.setFullOnly(true);
121
        fetcher.setFullOnly(false);
-
 
122
        // treat the same way tables with or without undefined ID
123
        fetcher.setIncludeForeignUndef(true);
123
        fetcher.setIncludeForeignUndef(false);
124
        fetcher.setSelTransf(new ITransformer<SQLSelect, SQLSelect>() {
124
        fetcher.setSelTransf(new ITransformer<SQLSelect, SQLSelect>() {
125
            @Override
125
            @Override
126
            public SQLSelect transformChecked(SQLSelect sel) {
126
            public SQLSelect transformChecked(SQLSelect sel) {
127
                sel = transformSelect(sel);
127
                sel = transformSelect(sel);
128
                if (lockSelect)
128
                if (lockSelect)