ecar.dao
Class UfDao

java.lang.Object
  extended by comum.database.Dao
      extended by ecar.dao.UfDao

public class UfDao
extends Dao

Author:
garten

Field Summary
 
Fields inherited from class comum.database.Dao
logBean, logger, loggerAuditoria, ORDEM_ASC, ORDEM_DESC, request, session
 
Constructor Summary
UfDao(javax.servlet.http.HttpServletRequest request)
          Construtor.
 
Method Summary
 void alterar(Uf uf)
          Verifica duplica��o depois altera
 void excluir(Uf uf)
          Verifica as regras de negocio de UF antes de excluir
 java.lang.String getUfJS()
           
 void salvar(Uf uf)
          Salvar sobrescrito.
 
Methods inherited from class comum.database.Dao
alterar, alterar, alterar, buscar, contar, contarLong, excluir, excluir, getSession, inicializarLogBean, listar, ordenaSet, pesquisar, pesquisarDuplos, salvar, salvar, salvarOuAlterar, salvarOuAlterar, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UfDao

public UfDao(javax.servlet.http.HttpServletRequest request)
Construtor. Chama o Session factory do Hibernate

Method Detail

salvar

public void salvar(Uf uf)
            throws ECARException
Salvar sobrescrito. Testa se j� existe uma UF com a mesma sigla.

Parameters:
uf -
Throws:
ECARException

excluir

public void excluir(Uf uf)
             throws ECARException
Verifica as regras de negocio de UF antes de excluir

Parameters:
uf -
Throws:
ECARException

alterar

public void alterar(Uf uf)
             throws ECARException
Verifica duplica��o depois altera

Parameters:
uf -
Throws:
ECARException

getUfJS

public java.lang.String getUfJS()
                         throws ECARException
Returns:
String
Throws:
ECARException


Copyright © 2007, PRODEPA - Processamento de Dados do Pará