Package com.avaje.ebeaninternal.server.persist.dmlbind

Source Code of com.avaje.ebeaninternal.server.persist.dmlbind.FactoryVersion

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);    
  }
}
TOP

Related Classes of com.avaje.ebeaninternal.server.persist.dmlbind.FactoryVersion

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.