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

com.avaje.ebeaninternal.server.persist.dmlbind.FactoryVersion Maven / Gradle / Ivy

There is a newer version: 9.5.1
Show newest version
package com.avaje.ebeaninternal.server.persist.dmlbind;

import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
import com.avaje.ebeaninternal.server.deploy.BeanProperty;

/**
 * Creates a Bindable to support version concurrency where clauses.
 */
public class FactoryVersion {


  public FactoryVersion() {
  }

  /**
   * Create a Bindable for the version property(s) for a bean type.
   */
  public Bindable create(BeanDescriptor desc) {

    BeanProperty versionProperty = desc.getVersionProperty();
    if (versionProperty == null) {
      return null;
    }

    return new BindableProperty(versionProperty);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy