List of usage examples for java.lang Long toString
public String toString()
From source file:org.vader.common.spring.redis.LongRedisSerializer.java
@Override public byte[] serialize(Long number) throws SerializationException { return number == null ? null : stringRedisSerializer.serialize(number.toString()); }
From source file:info.archinnov.achilles.json.CounterSerializer.java
@Override public void serialize(Counter value, JsonGenerator generator, SerializerProvider provider) throws IOException { String serializedValue = ""; if (value != null) { Long counterValue = value.get(); if (counterValue != null) { serializedValue = counterValue.toString(); }/*from w w w. j av a 2 s . c om*/ } generator.writeString(serializedValue); }
From source file:am.ik.categolj3.api.jest.JestIndexer.java
public void bulkDelete(List<Long> deleteIds) throws Exception { Bulk.Builder bulkBuilder = new Bulk.Builder(); for (Long id : deleteIds) { Delete delete = new Delete.Builder(id.toString()).refresh(true).index(Entry.INDEX_NAME) .type(Entry.DOC_TYPE).build(); bulkBuilder.addAction(delete);//from ww w . j ava 2 s . co m } jestClient.execute(bulkBuilder.build()); }
From source file:br.ufac.sion.converter.NivelConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Nivel) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }//from www. j a v a 2 s. co m return ""; }
From source file:br.ufac.sion.converter.VagaConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Vaga) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }/*from ww w. j ava 2 s.c om*/ return ""; }
From source file:br.ufac.sion.converter.CargoConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Cargo) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }//from w w w. j av a 2 s . c o m return ""; }
From source file:br.ufac.sion.converter.CidadeConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Cidade) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }// ww w. j av a 2s . com return ""; }
From source file:br.ufac.sion.converter.EstadoConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Estado) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }//from w ww . j av a 2s . com return ""; }
From source file:br.ufac.sion.converter.SetorConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Setor) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }//from w w w . jav a 2 s.c o m return ""; }
From source file:br.ufac.sion.converter.EmpresaConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (value != null) { Long codigo = ((Empresa) value).getId(); String retorno = (codigo == null ? null : codigo.toString()); return retorno; }/*w ww .j av a 2 s.c o m*/ return ""; }