Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
264 espaco 1
package br.com.ec.controller.converters;
2
 
3
import br.com.ec.domain.dto.LojaDTO;
4
import br.com.ec.web.converters.ConversorGeneric;
5
 
6
public class ConverterLojaDTO extends ConversorGeneric {
7
 
8
        protected static final String key = "jsf.EntityConverter.LojaDTO";
9
 
10
        protected String getID(Object value) {
11
                if (value == null) {
12
                        return "";
13
                }
14
                return ((LojaDTO) value).getSequencial().toString();
15
        }
16
 
17
        @Override
18
        protected String getKey() {
19
                return key;
20
        }
21
 
22
}