All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.transit.model.framework.TransitEntityBuilder Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.transit.model.framework;

public interface TransitEntityBuilder<
  E extends TransitObject, B extends TransitEntityBuilder
>
  extends TransitBuilder {
  /**
   * Create a new {@link TransitObject} instance from the builder values and store the object in
   * the current context. This change will propagate to the master service/index when the
   * context commit method is called, not before. This make the model consistent and safe to use
   * for clients not in the same context (updaters vs routing requests).
   */
  E save();

  /**
   * Delete the entity represented by the builder id (original) from the current context. The
   * change will propagate to the master Service/Index when the context is committed. Not all
   * entities can be deleted, if so this method will throw an exception.
   */
  void delete();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy