OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 156
Line 124... Line 124...
124
 
124
 
125
    public abstract DBSystemRoot getSystemRoot();
125
    public abstract DBSystemRoot getSystemRoot();
126
 
126
 
127
    public abstract SQLFilter getFilter();
127
    public abstract SQLFilter getFilter();
128
 
128
 
129
    public abstract SQLFieldTranslator getTranslator();
129
    public final SQLFieldTranslator getTranslator() {
-
 
130
        return this.getDirectory().getTranslator();
-
 
131
    }
130
 
132
 
131
    public abstract SQLElementDirectory getDirectory();
133
    public abstract SQLElementDirectory getDirectory();
132
 
134
 
133
    public abstract FieldMapper getFieldMapper();
135
    public abstract FieldMapper getFieldMapper();
134
 
136
 
Line 205... Line 207...
205
    public final File getConfDir(DBStructureItem<?> db) {
207
    public final File getConfDir(DBStructureItem<?> db) {
206
        return DBItemFileCache.getDescendant(getDBConfDir(), DBFileCache.getJDBCAncestorNames(db, true));
208
        return DBItemFileCache.getDescendant(getDBConfDir(), DBFileCache.getJDBCAncestorNames(db, true));
207
    }
209
    }
208
 
210
 
209
    /**
211
    /**
210
     * Add the translator and directory of <code>o</code> to this.
212
     * Add the directory of <code>o</code> to this.
211
     * 
213
     * 
212
     * @param o the configuration to add.
214
     * @param o the configuration to add.
213
     * @return this.
215
     * @return this.
214
     * @see SQLFieldTranslator#putAll(SQLFieldTranslator)
-
 
215
     * @see SQLElementDirectory#putAll(SQLElementDirectory)
216
     * @see SQLElementDirectory#putAll(SQLElementDirectory)
216
     */
217
     */
217
    public Configuration add(Configuration o) {
218
    public Configuration add(Configuration o) {
218
        this.getTranslator().putAll(o.getTranslator());
-
 
219
        this.getDirectory().putAll(o.getDirectory());
219
        this.getDirectory().putAll(o.getDirectory());
220
        return this;
220
        return this;
221
    }
221
    }
222
 
222
 
223
    /**
223
    /**