Package utils

Examples of utils.DAOState


    @Override
    public void save(Object obj) {
        if(obj instanceof DAOState) {
            log.debug("SAVEEX: " + obj.toString());
            DAOState ds = (DAOState) obj;
            ds.save(getHibernateTemplate());
        } else {
            log.debug("SAVE: " + obj.toString());
            if (obj instanceof  EntityWithId) {
                if (((EntityWithId)obj).getId() == 0) {
                    getHibernateTemplate().save(obj);
View Full Code Here


  
    @Override
    public void delete(Object obj) {
        if(obj instanceof DAOState) {
            log.debug("DELETEEX: " + obj.toString());
            DAOState ds = (DAOState) obj;
            ds.delete(getHibernateTemplate());
        } else {
            log.debug("DELETE: " + obj.toString());
            getHibernateTemplate().delete(obj);
        }
    }
View Full Code Here

TOP

Related Classes of utils.DAOState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.