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

io.ebeaninternal.server.query.STreePropertyAssoc Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.query;

import io.ebean.bean.EntityBean;
import io.ebeaninternal.server.deploy.DbSqlContext;
import io.ebeaninternal.server.deploy.id.IdBinder;

public interface STreePropertyAssoc extends STreeProperty {

  /**
   * Return the extra where clause if set.
   */
  String extraWhere();

  /**
   * Return the type of the target (other side).
   */
  STreeType target();

  /**
   * Return the IdBinder of the underlying type.
   */
  IdBinder idBinder();

  /**
   * Add a Join with the given alias.
   */
  SqlJoinType addJoin(SqlJoinType joinType, String alias2, String alias, DbSqlContext ctx);

  /**
   * Add a Join with the given prefix (determining the alias).
   */
  SqlJoinType addJoin(SqlJoinType joinType, String prefix, DbSqlContext ctx);

  /**
   * Add a bean to the parent.
   */
  void setValue(EntityBean parentBean, Object contextBean);

  /**
   * Return true if the associated type has soft delete.
   */
  boolean isTargetSoftDelete();

  /**
   * Return the soft delete predicate.
   */
  String softDeletePredicate(String tableAlias);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy