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

protobuf4j.orm.sql.ISqlObject Maven / Gradle / Ivy

The newest version!
package protobuf4j.orm.sql;

import javax.annotation.Nonnull;
import java.util.List;

/**
 * author: yuanwq
 * date: 2018/7/11
 */
public interface ISqlObject {
  /**
   * 构造jdbc所用的sqlTemplate
   *
   * @return {@code sb} for chain invocation
   */
  StringBuilder toSqlTemplate(@Nonnull StringBuilder sb);

  /**
   * 使用对应参数构造实际的sql语句,主要用于可视化
   * 

* 由于类型映射原因,构造的sql语句可能不完全满足sql语法,即有可能不可执行 * * @return {@code sb} for chain invocation */ StringBuilder toSolidSql(@Nonnull StringBuilder sb); /** * 收集{@code SqlTemplate}中的参数值 * * @return {@code sqlValues} for chain invocation */ List collectSqlValue(@Nonnull List sqlValues); /** * 显示声明,要求实现类重写{@code toString} */ String toString(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy