Example usage for org.hibernate LockMode NONE

List of usage examples for org.hibernate LockMode NONE

Introduction

In this page you can find the example usage for org.hibernate LockMode NONE.

Prototype

LockMode NONE

To view the source code for org.hibernate LockMode NONE.

Click Source Link

Document

No lock required.

Usage

From source file:com.npower.dm.hibernate.dao.ModelClientProvMapDAO.java

License:Open Source License

/**
 * @param instance//w ww. j  a v  a 2s  .com
 * @throws DMException
 */
public void attachClean(ModelClientProvMap instance) throws DMException {
    log.debug("attaching clean ModelClientProvMapEntity instance");
    try {
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (Exception re) {
        log.error("attach failed", re);
        throw new DMException("attach failed", re);
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwareCategoryEntityDAO.java

License:Open Source License

public void attachClean(SoftwareCategory instance) {
    log.debug("attaching clean SoftwareCategoryEntity instance");
    try {//from  w w w . j a  va 2  s .  c  o  m
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwareEntityDAO.java

License:Open Source License

public void attachClean(Software instance) {
    log.debug("attaching clean SoftwareEntity instance");
    try {/*from w  w w  . j a v a  2  s  .c om*/
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwarePackageEntityDAO.java

License:Open Source License

public void attachClean(SoftwarePackage instance) {
    log.debug("attaching clean SoftwarePackageEntity instance");
    try {/*w  w w  . ja  v  a 2  s . c  o  m*/
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwareRatingEntityDAO.java

License:Open Source License

public void attachClean(SoftwareRating instance) {
    log.debug("attaching clean SoftwareRatingEntity instance");
    try {//from  w  w  w .  j  a  v  a 2 s.c o m
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwareScreenShotEntityDAO.java

License:Open Source License

public void attachClean(SoftwareScreenShot instance) {
    log.debug("attaching clean SoftwareScreenShotEntity instance");
    try {/* w  w  w  . jav a2  s  . c  o m*/
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.npower.dm.hibernate.dao.SoftwareVendorDAO.java

License:Open Source License

public void attachClean(SoftwareVendor instance) {
    log.debug("attaching clean SoftwareVendorEntity instance");
    try {//from w w w.j av  a  2  s.c o m
        getSession().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.quatro.dao.security.SecProviderDao.java

License:Open Source License

public void attachClean(SecProviderDao instance) {
    logger.debug("attaching clean Provider instance");
    try {//  ww  w. j av a 2 s .  c  o  m
        getSession().lock(instance, LockMode.NONE);
        logger.debug("attach successful");
    } catch (RuntimeException re) {
        logger.error("attach failed", re);
        throw re;
    }
}

From source file:com.quatro.dao.security.SecurityDao.java

License:Open Source License

public void attachClean(Security instance) {
    logger.debug("attaching clean Security instance");
    try {//  w ww .j a  v a2s .  c o m
        getSession().lock(instance, LockMode.NONE);
        logger.debug("attach successful");
    } catch (RuntimeException re) {
        logger.error("attach failed", re);
        throw re;
    }
}

From source file:com.quatro.dao.security.SecuserroleDao.java

License:Open Source License

public void attachClean(Secuserrole instance) {
    logger.debug("attaching clean Secuserrole instance");
    try {//from  ww  w.j a  va 2 s  . c  o m
        getSession().lock(instance, LockMode.NONE);
        logger.debug("attach successful");
    } catch (RuntimeException re) {
        logger.error("attach failed", re);
        throw re;
    }
}