Tabnine Logo
Expression.getBooleanValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getBooleanValue
method
in
org.h2.expression.Expression

Best Java code snippets using org.h2.expression.Expression.getBooleanValue (Showing top 20 results out of 315)

origin: com.h2database/h2

/**
 * Whether the current value of the condition is true, or there is no
 * condition.
 *
 * @param condition the condition (null for no condition)
 * @return true if yes
 */
boolean isOk(Expression condition) {
  return condition == null || condition.getBooleanValue(session);
}
origin: com.h2database/h2

boolean isConditionMet() {
  return condition == null || condition.getBooleanValue(session);
}
origin: com.h2database/h2

if (!filterCondition.getBooleanValue(session)) {
  return;
origin: com.h2database/h2

if (!filterCondition.getBooleanValue(session)) {
  return;
origin: com.h2database/h2

  break;
if (condition == null || condition.getBooleanValue(session)) {
  Row oldRow = targetTableFilter.get();
  Row newRow = table.getTemplateRow();
origin: com.h2database/h2

while (limitRows != 0 && targetTableFilter.next()) {
  setCurrentRowNumber(rows.size() + 1);
  if (condition == null || condition.getBooleanValue(session)) {
    Row row = targetTableFilter.get();
    boolean done = false;
origin: com.h2database/com.springsource.org.h2

private boolean isOk(Expression condition) throws SQLException {
  if (condition == null) {
    return true;
  }
  return Boolean.TRUE.equals(condition.getBooleanValue(session));
}
origin: com.eventsourcing/h2

/**
 * Whether the current value of the condition is true, or there is no
 * condition.
 *
 * @param condition the condition (null for no condition)
 * @return true if yes
 */
boolean isOk(Expression condition) {
  if (condition == null) {
    return true;
  }
  return Boolean.TRUE.equals(condition.getBooleanValue(session));
}
origin: org.wowtools/h2

/**
 * Whether the current value of the condition is true, or there is no
 * condition.
 *
 * @param condition the condition (null for no condition)
 * @return true if yes
 */
boolean isOk(Expression condition) {
  if (condition == null) {
    return true;
  }
  return Boolean.TRUE.equals(condition.getBooleanValue(session));
}
origin: com.eventsourcing/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  rowNumber++;
  Value[] keyValues = new Value[groupIndex.length];
origin: org.wowtools/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  rowNumber++;
  Value[] keyValues = new Value[groupIndex.length];
origin: com.h2database/com.springsource.org.h2

checkCancelled();
setCurrentRowNumber(rowNumber + 1);
if (condition == null || Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  rowNumber++;
  Value[] keyValues = new Value[groupIndex.length];
origin: com.h2database/com.springsource.org.h2

private void queryFlat(int columnCount, LocalResult result, long limitRows) throws SQLException {
  if (limitRows != 0 && offset != null) {
    // limitRows must be long, otherwise we get an int overflow 
    // if limitRows is at or near Integer.MAX_VALUE
    limitRows += offset.getValue(session).getInt();
  }
  int rowNumber = 0;
  setCurrentRowNumber(0);
  while (topTableFilter.next()) {
    checkCancelled();
    setCurrentRowNumber(rowNumber + 1);
    if (condition == null || Boolean.TRUE.equals(condition.getBooleanValue(session))) {
      Value[] row = new Value[columnCount];
      for (int i = 0; i < columnCount; i++) {
        Expression expr = (Expression) expressions.get(i);
        row[i] = expr.getValue(session);
      }
      result.addRow(row);
      rowNumber++;
      if ((sort == null || sortUsingIndex) && limitRows != 0 && result.getRowCount() >= limitRows) {
        break;
      }
      if (sampleSize > 0 && rowNumber >= sampleSize) {
        break;
      }
    }
  }
}
origin: org.wowtools/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  Value key;
  rowNumber++;
origin: com.eventsourcing/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  Value key;
  rowNumber++;
origin: org.wowtools/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  Value[] row = new Value[columnCount];
  for (int i = 0; i < columnCount; i++) {
origin: com.eventsourcing/h2

setCurrentRowNumber(rowNumber + 1);
if (condition == null ||
    Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  Value[] row = new Value[columnCount];
  for (int i = 0; i < columnCount; i++) {
origin: com.h2database/com.springsource.org.h2

checkCancelled();
setCurrentRowNumber(rows.size() + 1);
if (condition == null || Boolean.TRUE.equals(condition.getBooleanValue(session))) {
  Row row = tableFilter.get();
  if (table.fireRow()) {
origin: com.eventsourcing/h2

setCurrentRowNumber(rows.size() + 1);
if (condition == null || Boolean.TRUE.equals(
    condition.getBooleanValue(session))) {
  Row row = tableFilter.get();
  boolean done = false;
origin: org.wowtools/h2

setCurrentRowNumber(rows.size() + 1);
if (condition == null || Boolean.TRUE.equals(
    condition.getBooleanValue(session))) {
  Row row = tableFilter.get();
  boolean done = false;
org.h2.expressionExpressiongetBooleanValue

Javadoc

Get the value in form of a boolean expression. Returns true, false, or null. In this database, everything can be a condition.

Popular methods of Expression

  • getAlias
    Get the alias name of a column or SQL expression if it is not an aliased expression.
  • getDisplaySize
    Get the display size of this expression.
  • getNonAliasExpression
    Returns the main expression, skipping aliases.
  • getNotIfPossible
    If it is possible, return the negated expression. This is used to optimize NOT expressions: NOT ID>1
  • getPrecision
    Get the precision of this expression.
  • getScale
    Get the scale of this expression.
  • getType
    Return the data type. The data type may not be known before the optimization phase.
  • getValue
    Return the resulting value for the current row.
  • isConstant
    Check if this expression will always return the same value.
  • addFilterConditions
    Add conditions to a table filter if they can be evaluated.
  • createIndexConditions
    Create index conditions if possible and attach them to the table filter.
  • getColumnName
    Get the column name or alias name of this expression.
  • createIndexConditions,
  • getColumnName,
  • getCost,
  • getNullable,
  • getSQL,
  • getSchemaName,
  • getTableAlias,
  • getTableName,
  • isAutoIncrement

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now