it.geosolutions.geobatch.ftpserver.dao
Interface GenericDAO<T,ID extends java.io.Serializable>

All Known Subinterfaces:
FtpPropsDAO
All Known Implementing Classes:
DAOAbstractSpring, HibFtpPropsDAO, HibFtpServerConfigDAO

public interface GenericDAO<T,ID extends java.io.Serializable>


Method Summary
 T findById(ID id, boolean lock)
           
 void lock(T entity)
           
 T makePersistent(T entity)
           
 void makeTransient(T entity)
           
 

Method Detail

findById

T findById(ID id,
           boolean lock)
           throws DAOException
Throws:
DAOException

makePersistent

T makePersistent(T entity)
                 throws DAOException
Throws:
DAOException

makeTransient

void makeTransient(T entity)
                   throws DAOException
Throws:
DAOException

lock

void lock(T entity)
          throws DAOException
Throws:
DAOException


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.