OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 73 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
13
 
14
 package org.openconcerto.sql.element;
15
 
16
import org.openconcerto.sql.Configuration;
17
import org.openconcerto.sql.model.SQLTable;
83 ilm 18
import org.openconcerto.utils.i18n.Phrase;
17 ilm 19
 
20
import java.util.Collections;
21
import java.util.List;
22
 
23
/**
24
 * @author Sylvain CUAZ
25
 */
26
public class ConfSQLElement extends SQLElement {
27
 
73 ilm 28
    @Deprecated
17 ilm 29
    public ConfSQLElement(String tableName, String singular, String plural) {
30
        this(Configuration.getInstance(), tableName, singular, plural);
31
    }
32
 
73 ilm 33
    @Deprecated
17 ilm 34
    public ConfSQLElement(Configuration conf, String tableName, String singular, String plural) {
35
        this(conf.getRoot().findTable(tableName), singular, plural);
36
    }
37
 
73 ilm 38
    @Deprecated
17 ilm 39
    public ConfSQLElement(SQLTable table, String singular, String plural) {
40
        super(singular, plural, table);
41
    }
42
 
73 ilm 43
    public ConfSQLElement(String tableName) {
83 ilm 44
        this(tableName, null);
73 ilm 45
    }
46
 
47
    public ConfSQLElement(Configuration conf, String tableName) {
83 ilm 48
        this(conf, tableName, null);
73 ilm 49
    }
50
 
51
    public ConfSQLElement(SQLTable table) {
83 ilm 52
        this(table, null);
73 ilm 53
    }
54
 
83 ilm 55
    public ConfSQLElement(String tableName, final Phrase name) {
56
        this(Configuration.getInstance(), tableName, name);
57
    }
58
 
59
    public ConfSQLElement(Configuration conf, String tableName, final Phrase name) {
60
        this(conf.getRoot().findTable(tableName), name);
61
    }
62
 
63
    public ConfSQLElement(final SQLTable primaryTable, final Phrase name) {
64
        super(primaryTable, name);
65
    }
66
 
17 ilm 67
    @Override
68
    protected List<String> getComboFields() {
69
        return Collections.emptyList();
70
    }
71
 
72
    @Override
73
    protected List<String> getListFields() {
74
        return Collections.emptyList();
75
    }
76
 
77
    @Override
78
    public SQLComponent createComponent() {
79
        return null;
80
    }
81
}