Package org.hibernate

Examples of org.hibernate.Interceptor.onSave()


    public boolean onSave(Object entity, Serializable id, Object[] state,
                                    String[] propertyNames, Type[] types) {
        boolean result = false;
        for (Iterator iterator = _interceptors.iterator(); iterator.hasNext();) {
            Interceptor interceptor = (Interceptor) iterator.next();
            if (interceptor.onSave(entity, id, state, propertyNames, types)) {
                /* Returns true if one interceptor in the chain has
                 * modified the object state result = true;
                 */
                result = true;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.