OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 76 Rev 129
Line 6... Line 6...
6
import java.util.ArrayList;
6
import java.util.ArrayList;
7
import java.util.List;
7
import java.util.List;
8
 
8
 
9
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
9
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
10
import org.openconcerto.sql.element.SQLComponent;
10
import org.openconcerto.sql.element.SQLComponent;
11
import org.openconcerto.utils.CollectionMap;
11
import org.openconcerto.utils.ListMap;
12
 
12
 
13
public class SubscriptionSQLElement extends ComptaSQLConfElement {
13
public class SubscriptionSQLElement extends ComptaSQLConfElement {
14
 
14
 
15
    public SubscriptionSQLElement() {
15
    public SubscriptionSQLElement() {
16
        super("ABONNEMENT", "un abonnement", "abonnements");
16
        super("ABONNEMENT", "un abonnement", "abonnements");
Line 35... Line 35...
35
        l.add("ID_CLIENT");
35
        l.add("ID_CLIENT");
36
        return l;
36
        return l;
37
    }
37
    }
38
 
38
 
39
    @Override
39
    @Override
40
    public CollectionMap<String, String> getShowAs() {
40
    public ListMap<String, String> getShowAs() {
41
        return CollectionMap.singleton(null, "NUMERO");
41
        return ListMap.singleton(null, "NUMERO");
42
    }
42
    }
43
 
43
 
44
    @Override
44
    @Override
45
    public SQLComponent createComponent() {
45
    public SQLComponent createComponent() {
46
        return new SubscriptionSQLComponent(this);
46
        return new SubscriptionSQLComponent(this);