当前位置: 首页>>代码示例>>Java>>正文


Java Interceptor.onFlushDirty方法代码示例

本文整理汇总了Java中org.hibernate.Interceptor.onFlushDirty方法的典型用法代码示例。如果您正苦于以下问题:Java Interceptor.onFlushDirty方法的具体用法?Java Interceptor.onFlushDirty怎么用?Java Interceptor.onFlushDirty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hibernate.Interceptor的用法示例。


在下文中一共展示了Interceptor.onFlushDirty方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previuosState,String[] propertyNames, Type[] types) throws CallbackException {
	
	boolean bool = Boolean.FALSE;
	if(null!=interceptors && !interceptors.isEmpty()){
		Iterator it = interceptors.iterator();
		while(it.hasNext()){
			Interceptor interceptor = (Interceptor) it.next();
			boolean temp=false;
			if(interceptor!=null){
				temp= interceptor.onFlushDirty(entity, id, currentState, previuosState, propertyNames, types);
				if(temp) bool = true;
			}
			}
	}
	return bool;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:17,代码来源:GenericSecurityInterceptor.java

示例2: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
@Override
public boolean onFlushDirty(Object entity,
                            Serializable id,
                            Object[] currentState,
                            Object[] previousState,
                            String[] propertyNames,
                            Type[] types) {
    if (!isExists())
        return false;

    if (isTraceEnabled)
        log.trace("인터셉터의 onFlush 메소드를 멀티캐스트로 수행합니다.");

    for (final Interceptor interceptor : interceptors) {
        interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types);
    }

    return false;
}
 
开发者ID:debop,项目名称:debop4j,代码行数:20,代码来源:MultiInterceptor.java

示例3: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
@Override
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
        String[] propertyNames, Type[] types) throws CallbackException {
    boolean modified = false;
    for (Interceptor interceptor : chain) {
        modified |= interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types);
    }
    return modified;
}
 
开发者ID:jonestimd,项目名称:finances,代码行数:10,代码来源:InterceptorChain.java

示例4: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
@Override
public boolean onFlushDirty(Object object, Serializable id, Object[] currentState, Object[] previousState,
            String[] propertyNames, Type[] types) {
    boolean modified = false;
    for(Interceptor i: interceptors){
        modified = modified | i.onFlushDirty(object, id, currentState, previousState, propertyNames, types);
    }
    return modified;
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:10,代码来源:CompoundInterceptor.java

示例5: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
@Override
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) throws CallbackException {
  boolean modified = false;
  for (Interceptor interceptor : interceptors) {
    modified = interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types) || modified;
  }
  return modified;
}
 
开发者ID:tunguski,项目名称:matsuo-core,代码行数:9,代码来源:EntityInterceptorService.java

示例6: onFlushDirty

import org.hibernate.Interceptor; //导入方法依赖的package包/类
@Override
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) {
    if (exists()) {
        for (Interceptor interceptor : interceptors) {
            interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types);
        }
    }
    return false;
}
 
开发者ID:debop,项目名称:hibernate-examples,代码行数:10,代码来源:MultipleInterceptor.java


注:本文中的org.hibernate.Interceptor.onFlushDirty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。