public EstadoModel obterProximo(final EquipamentoModel model, Date data) { TSDataBaseBrokerIf broker = TSDataBaseBrokerFactory.getDataBaseBrokerIf(); broker.setPropertySQL( "estadodao.obterProximo", model.getId(), TSParseUtil.stringToTimestamp( TSParseUtil.dateToString( TSDateUtil.addDayDate(data, +1), TSDateUtil.DD_MM_YYYY_HH_MM_SS), TSDateUtil.DD_MM_YYYY_HH_MM_SS), TSParseUtil.stringToTimestamp( TSParseUtil.dateToString( TSDateUtil.addDayDate(data, +3), TSDateUtil.DD_MM_YYYY_HH_MM_SS), TSDateUtil.DD_MM_YYYY_HH_MM_SS)); return (EstadoModel) broker.getObjectBean(EstadoModel.class, "id", "sigla"); }
public String getDataCadastroFormatada() { return TSParseUtil.dateToString(getDataCadastro(), TSDateUtil.DD_MM_YYYY_HH_MM); }