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

io.ebeaninternal.server.deploy.BeanPropertyOrderColumn Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.server.deploy;

import io.ebean.bean.EntityBean;
import io.ebeaninternal.server.deploy.meta.DeployBeanProperty;

/**
 * Bean property for synthetic sort order value / order column.
 *
 * The value of which is held on the entity bean intercept.
 */
public class BeanPropertyOrderColumn extends BeanProperty {

  public BeanPropertyOrderColumn(BeanDescriptor descriptor, DeployBeanProperty deploy) {
    super(descriptor, deploy);
  }

  @Override
  public Object getValue(EntityBean bean) {
    return bean._ebean_getIntercept().getSortOrder();
  }

  @Override
  public Object getValueIntercept(EntityBean bean) {
    return bean._ebean_getIntercept().getSortOrder();
  }

  @Override
  public void setValue(EntityBean bean, Object value) {
    bean._ebean_getIntercept().setSortOrder((int)value);
  }

  @Override
  public void setValueIntercept(EntityBean bean, Object value) {
    bean._ebean_getIntercept().setSortOrder((int)value);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy