Package org.hibernate.search.backend

Examples of org.hibernate.search.backend.WorkType


     * to the type of work being fired.
     * @param work
     */
    private PerEntityWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      // sets the initial state:
      switch ( type ) {
      case ADD:
        add = true;
        break;
View Full Code Here


     * work is added to the plan.
     * @param work
     */
    public void addWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      switch ( type ) {
      case INDEX:
        batch = true;
        // not breaking intentionally
      case UPDATE:
View Full Code Here

     * to the type of work being fired.
     * @param work
     */
    private PerEntityWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      // sets the initial state:
      switch ( type ) {
      case ADD:
        add = true;
        break;
View Full Code Here

     * work is added to the plan.
     * @param work
     */
    public void addWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      switch ( type ) {
      case INDEX:
        batch = true;
        // not breaking intentionally
      case UPDATE:
View Full Code Here

    if ( builder == null ) {
      throw new IllegalArgumentException( entityType.getName() + " is not a mapped entity (don't forget to add @Indexed)" );
    }
    else {
      WorkType type;
      if ( id == null ) {
        type = WorkType.PURGE_ALL;
      }
      else {
        type = WorkType.PURGE;
View Full Code Here

     * to the type of work being fired.
     * @param work
     */
    private PerEntityWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      // sets the initial state:
      switch ( type ) {
      case ADD:
        add = true;
        break;
View Full Code Here

     * work is added to the plan.
     * @param work
     */
    public void addWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      switch ( type ) {
      case INDEX:
        batch = true;
        // not breaking intentionally
      case UPDATE:
View Full Code Here

    if ( builder == null ) {
      throw new IllegalArgumentException( entityType.getName() + " is not a mapped entity (don't forget to add @Indexed)" );
    }
    else {
      WorkType type;
      if ( id == null ) {
        type = WorkType.PURGE_ALL;
      }
      else {
        type = WorkType.PURGE;
View Full Code Here

     * work is added to the plan.
     * @param work
     */
    public void addWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      switch ( type ) {
      case INDEX:
        batch = true;
        // not breaking intentionally
      case UPDATE:
View Full Code Here

     * to the type of work being fired.
     * @param work
     */
    private PerEntityWork(Work<T> work) {
      entity = work.getEntity();
      WorkType type = work.getType();
      // sets the initial state:
      switch ( type ) {
      case ADD:
        add = true;
        break;
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.WorkType

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.