Class Binder

java.lang.Object
io.ebeaninternal.server.persist.Binder

public final class Binder extends Object
Binds bean values to a PreparedStatement.
  • Constructor Details

  • Method Details

    • isEnableBindLog

      public boolean isEnableBindLog()
      Return true if bind log is enabled.
    • getAsOfBindCount

      public int getAsOfBindCount()
      Return the bind count per predicate for 'As Of' query predicates.
    • isAsOfStandardsBased

      public boolean isAsOfStandardsBased()
      Return true if the 'as of' history support is SQL2011 standards based.
    • bind

      public String bind(BindParams bindParams, PreparedStatement statement, Connection connection) throws SQLException
      Bind the parameters to the preparedStatement returning the bind log.
      Throws:
      SQLException
    • bind

      public void bind(BindParams bindParams, io.ebeaninternal.server.bind.DataBind dataBind, StringBuilder bindLog) throws SQLException
      Bind the list of positionedParameters in BindParams.
      Throws:
      SQLException
    • isMultiValueSupported

      public boolean isMultiValueSupported(Class<?> cls)
      Return true if MultiValue binding is supported for the given type.
    • getScalarType

      public ScalarType<?> getScalarType(Class<?> clazz)
    • bindObject

      public void bindObject(io.ebeaninternal.server.bind.DataBind dataBind, Object value) throws SQLException
      Bind an Object with unknown data type.
      Throws:
      SQLException
    • getInExpression

      public String getInExpression(boolean not, List<Object> bindValues)
      Return the SQL in clause taking into account Multi-value support.
    • getDbExpressionHandler

      public DbExpressionHandler getDbExpressionHandler()
      Return the DB platform specific expression handler (for JSON and ARRAY types).
    • dataBind

      public io.ebeaninternal.server.bind.DataBind dataBind(PreparedStatement stmt, Connection connection)
      Create and return a DataBind for the statement.
    • createDataReader

      public DataReader createDataReader(ResultSet resultSet)