OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 156
Line 23... Line 23...
23
/**
23
/**
24
 * @author Sylvain CUAZ
24
 * @author Sylvain CUAZ
25
 */
25
 */
26
public class ConfSQLElement extends SQLElement {
26
public class ConfSQLElement extends SQLElement {
27
 
27
 
28
    @Deprecated
-
 
29
    public ConfSQLElement(String tableName, String singular, String plural) {
-
 
30
        this(Configuration.getInstance(), tableName, singular, plural);
-
 
31
    }
-
 
32
 
-
 
33
    @Deprecated
-
 
34
    public ConfSQLElement(Configuration conf, String tableName, String singular, String plural) {
-
 
35
        this(conf.getRoot().findTable(tableName), singular, plural);
-
 
36
    }
-
 
37
 
-
 
38
    @Deprecated
-
 
39
    public ConfSQLElement(SQLTable table, String singular, String plural) {
-
 
40
        super(singular, plural, table);
-
 
41
    }
-
 
42
 
-
 
43
    public ConfSQLElement(String tableName) {
28
    public ConfSQLElement(String tableName) {
44
        this(tableName, null);
29
        this(tableName, null);
45
    }
30
    }
46
 
31
 
47
    public ConfSQLElement(Configuration conf, String tableName) {
32
    public ConfSQLElement(Configuration conf, String tableName) {
48
        this(conf, tableName, null);
33
        this(conf, tableName, null);
49
    }
34
    }
50
 
35
 
51
    public ConfSQLElement(SQLTable table) {
-
 
52
        this(table, null);
-
 
53
    }
-
 
54
 
-
 
55
    public ConfSQLElement(String tableName, final Phrase name) {
36
    public ConfSQLElement(String tableName, final Phrase name) {
56
        this(Configuration.getInstance(), tableName, name);
37
        this(Configuration.getInstance(), tableName, name);
57
    }
38
    }
58
 
39
 
59
    public ConfSQLElement(Configuration conf, String tableName, final Phrase name) {
40
    public ConfSQLElement(Configuration conf, String tableName, final Phrase name) {
-
 
41
        this(conf, tableName, name, null);
-
 
42
    }
-
 
43
 
-
 
44
    public ConfSQLElement(Configuration conf, String tableName, final Phrase name, final String code) {
60
        this(conf.getRoot().findTable(tableName), name);
45
        this(conf.getRoot().findTable(tableName), name, code);
-
 
46
    }
-
 
47
 
-
 
48
    public ConfSQLElement(final SQLTable table) {
-
 
49
        this(table, null);
61
    }
50
    }
62
 
51
 
63
    public ConfSQLElement(final SQLTable primaryTable, final Phrase name) {
52
    public ConfSQLElement(final SQLTable primaryTable, final Phrase name) {
-
 
53
        this(primaryTable, name, null);
-
 
54
    }
-
 
55
 
-
 
56
    public ConfSQLElement(final SQLTable primaryTable, final Phrase name, final String code) {
64
        super(primaryTable, name);
57
        super(primaryTable, name, code);
65
    }
58
    }
66
 
59
 
67
    @Override
60
    @Override
68
    protected List<String> getComboFields() {
61
    protected List<String> getComboFields() {
69
        return Collections.emptyList();
62
        return Collections.emptyList();