Package org.hibernate

Examples of org.hibernate.CallbackException


      while ( iter.hasNext() ) {
        s.delete( iter.next() );
      }
    }
    catch (Exception e) {
      throw new CallbackException(e);
    }
    return false;
  }
View Full Code Here


      while ( iter.hasNext() ) {
        s.save( iter.next() );
      }
    }
    catch (Exception e) {
      throw new CallbackException(e);
    }
    return false;
  }
View Full Code Here

    try {
      final Class<?> resolvedEntityClass = resolveEntityClass(entity.getClass());
      if (resolvedEntityClass != null)
        indexer.delete(hiveConfig.getEntityConfig(entity.getClass()), entity);
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
    super.onDelete(entity, id, state, propertyNames, types);
  }
View Full Code Here

        if (indexer.idExists(entityConfig, entityConfig.getId(entity)))
          indexer.updatePartitionDimensionIndexIfNeeded(hiveConfig.getEntityConfig(resolvedEntityClass), entity);
        indexer.update(entityConfig, entity);
      }
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
  }
View Full Code Here

    try {
      final Class<?> resolvedEntityClass = resolveEntityClass(entity.getClass());
      if (resolvedEntityClass != null)
        indexer.insert(hiveConfig.getEntityConfig(resolvedEntityClass), entity);
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
  }
View Full Code Here

  public Object instantiate(String entityName, EntityMode entityMode, Serializable id) throws CallbackException {
    Class<?> clazz;
    try {
      clazz = Class.forName(entityName);
    } catch (ClassNotFoundException e) {
      throw new CallbackException(String.format("Unable to load class for %s", entityName), e);
    }
    if (EntityResolver.generatesImplementation(clazz))
      return getInstance(GeneratedClassFactory.getGeneratedClass(clazz));
    else if (EntityResolver.isGeneratedImplementation(clazz)) {
      Class generatingClass = Filter.grepSingle(new Predicate<Class>() {
View Full Code Here

  private Object getInstance(Class<?> clazz) {
    try {
      return clazz.newInstance();
    } catch (InstantiationException e) {
      throw new CallbackException(e);
    } catch (IllegalAccessException e) {
      throw new CallbackException(e);
    }
  }
View Full Code Here

    try {
      final Class<?> resolvedEntityClass = resolveEntityClass(entity.getClass());
      if (resolvedEntityClass != null)
        indexer.delete(hiveConfig.getEntityConfig(entity.getClass()), entity);
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
    super.onDelete(entity, id, state, propertyNames, types);
  }
View Full Code Here

        if (indexer.idExists(entityConfig, entityConfig.getId(entity)))
          indexer.updatePartitionDimensionIndexIfNeeded(hiveConfig.getEntityConfig(resolvedEntityClass), entity);
        indexer.update(entityConfig, entity);
      }
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
  }
View Full Code Here

    try {
      final Class<?> resolvedEntityClass = resolveEntityClass(entity.getClass());
      if (resolvedEntityClass != null)
        indexer.insert(hiveConfig.getEntityConfig(resolvedEntityClass), entity);
    } catch (HiveLockableException e) {
      throw new CallbackException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.CallbackException

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.