Examples of onDelete()


Examples of org.hibernate.search.indexes.interceptor.EntityIndexingInterceptor.onDelete()

        break;
      case UPDATE:
        operation = interceptor.onUpdate( work.getEntity() );
        break;
      case DELETE:
        operation = interceptor.onDelete( work.getEntity() );
        break;
      case COLLECTION:
        operation = interceptor.onCollectionUpdate( work.getEntity() );
        break;
      case PURGE:
View Full Code Here

Examples of org.hivedb.hibernate.HiveInterceptorDecorator.onDelete()

    assertTrue(hive.directory().doesResourceIdExist("WeatherReport", report.getReportId()));
    assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));

    hive.updateHiveStatus(Lockable.Status.readOnly);
    try {
      interceptor.onDelete(report, null, null, null, null);
      fail("No exception thrown");
    } catch(CallbackException e ) {
      assertEquals(HiveLockableException.class, e.getCause().getClass());
    }
  }
View Full Code Here

Examples of org.hivedb.hibernate.HiveInterceptorDecorator.onDelete()

    assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));

    assertTrue(hive.directory().doesPrimaryIndexKeyExist(asia.getName()));
    assertTrue(hive.directory().doesSecondaryIndexKeyExist("Continent", "population", asia.getPopulation(), asia.getName()));

    interceptor.onDelete(report, null, null, null, null);
    interceptor.onDelete(asia, null, null, null, null);

    assertFalse(hive.directory().doesResourceIdExist("WeatherReport", report.getReportId()));
    // Referenced entity does not get deleted
    assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));
View Full Code Here

Examples of org.hivedb.hibernate.HiveInterceptorDecorator.onDelete()

    assertTrue(hive.directory().doesPrimaryIndexKeyExist(asia.getName()));
    assertTrue(hive.directory().doesSecondaryIndexKeyExist("Continent", "population", asia.getPopulation(), asia.getName()));

    interceptor.onDelete(report, null, null, null, null);
    interceptor.onDelete(asia, null, null, null, null);

    assertFalse(hive.directory().doesResourceIdExist("WeatherReport", report.getReportId()));
    // Referenced entity does not get deleted
    assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));
View Full Code Here

Examples of org.jvnet.glassfish.comms.gms.EventListener.onDelete()

           
            Iterator<EventListener> iter =
                    DataCentricUtilHolder.getEventListeners().iterator();
            while(iter.hasNext()){
                EventListener listener = iter.next();
                listener.onDelete(clusterName, instanceName);
            }
        }

        public void onDisable(String clusterName, String instanceName) {
            if (logger.isLoggable(Level.FINE)) {
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.