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

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

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

origin: com.h2database/h2

/**
 * Get the column name or alias name of this expression.
 *
 * @return the column name
 */
public String getColumnName() {
  return getAlias();
}
origin: com.h2database/h2

@Override
public String getAlias(int i) {
  return expressions[i].getAlias();
}
origin: com.h2database/h2

@Override
public String getAlias(int i) {
  return expressions[i].getAlias();
}
origin: com.h2database/h2

if (db.equalsIdentifiers(sql, e.getAlias())) {
  found = j;
  break;
sql = expr.getAlias();
if (db.equalsIdentifiers(sql, e.getAlias())) {
  found = j;
  break;
origin: com.h2database/h2

SelectListColumnResolver(Select select) {
  this.select = select;
  int columnCount = select.getColumnCount();
  columns = new Column[columnCount];
  expressions = new Expression[columnCount];
  ArrayList<Expression> columnList = select.getExpressions();
  ColumnNamer columnNamer= new ColumnNamer(select.getSession());
  for (int i = 0; i < columnCount; i++) {
    Expression expr = columnList.get(i);
    String columnName = columnNamer.getColumnName(expr, i, expr.getAlias());
    Column column = new Column(columnName, Value.NULL);
    column.setTable(null, i);
    columns[i] = column;
    expressions[i] = expr.getNonAliasExpression();
  }
}
origin: com.h2database/h2

if (columnName == null && columnExp.getAlias() != null && !DEFAULT_COLUMN_NAME.equals(columnExp.getAlias())) {
  columnName = columnExp.getAlias();
  if (!isAllowableColumnName(columnName)) {
    columnName = fixColumnName(columnName);
origin: com.h2database/h2

int scale = Math.max(l.getScale(), r.getScale());
int displaySize = Math.max(l.getDisplaySize(), r.getDisplaySize());
String columnName = columnNamer.getColumnName(l,i,l.getAlias());
Column col = new Column(columnName, type, prec, scale, displaySize);
Expression e = new ExpressionColumn(session.getDatabase(), col);
origin: com.h2database/h2

} else if (tableAlias == null && db.equalsIdentifiers(col, ec.getAlias())) {
  found = true;
} else {
origin: com.h2database/h2

Expression expr = expressions.get(i);
int type = expr.getType();
String name = columnNamer.getColumnName(expr,i,expr.getAlias());
long precision = expr.getPrecision();
int displaySize = expr.getDisplaySize();
origin: com.h2database/h2

for (int i = 0; i < expressions.size(); i++) {
  Expression e = expressions.get(i);
  String proposedColumnName = e.getAlias();
  String columnName = columnNamer.getColumnName(e, i, proposedColumnName);
origin: com.h2database/h2

name = expr.getAlias();
origin: com.h2database/com.springsource.org.h2

/**
 * Get the column name or alias name of this expression.
 *
 * @return the column name
 */
public String getColumnName() {
  return getAlias();
}
origin: apache/ignite

return new GridSqlAlias(expression.getAlias(),
  parseExpression(expression.getNonAliasExpression(), calcTypes), true);
origin: com.eventsourcing/h2

/**
 * Get the column name or alias name of this expression.
 *
 * @return the column name
 */
public String getColumnName() {
  return getAlias();
}
origin: org.wowtools/h2

/**
 * Get the column name or alias name of this expression.
 *
 * @return the column name
 */
public String getColumnName() {
  return getAlias();
}
origin: org.wowtools/h2

@Override
public String getAlias(int i) {
  return expressions[i].getAlias();
}
origin: com.eventsourcing/h2

@Override
public String getAlias(int i) {
  return expressions[i].getAlias();
}
origin: com.h2database/com.springsource.org.h2

public String getAlias(int i) {
  return expressions[i].getAlias();
}
origin: com.eventsourcing/h2

SelectListColumnResolver(Select select) {
  this.select = select;
  int columnCount = select.getColumnCount();
  columns = new Column[columnCount];
  expressions = new Expression[columnCount];
  ArrayList<Expression> columnList = select.getExpressions();
  for (int i = 0; i < columnCount; i++) {
    Expression expr = columnList.get(i);
    Column column = new Column(expr.getAlias(), Value.NULL);
    column.setTable(null, i);
    columns[i] = column;
    expressions[i] = expr.getNonAliasExpression();
  }
}
origin: org.wowtools/h2

SelectListColumnResolver(Select select) {
  this.select = select;
  int columnCount = select.getColumnCount();
  columns = new Column[columnCount];
  expressions = new Expression[columnCount];
  ArrayList<Expression> columnList = select.getExpressions();
  for (int i = 0; i < columnCount; i++) {
    Expression expr = columnList.get(i);
    Column column = new Column(expr.getAlias(), Value.NULL);
    column.setTable(null, i);
    columns[i] = column;
    expressions[i] = expr.getNonAliasExpression();
  }
}
org.h2.expressionExpressiongetAlias

Javadoc

Get the alias name of a column or SQL expression if it is not an aliased expression.

Popular methods of 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.
  • getBooleanValue
    Get the value in form of a boolean expression. Returns true or false. In this database, everything c
  • getColumnName
    Get the column name or alias name of this expression.
  • getBooleanValue,
  • getColumnName,
  • getCost,
  • getNullable,
  • getSQL,
  • getSchemaName,
  • getTableAlias,
  • getTableName,
  • isAutoIncrement

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • String (java.lang)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • 14 Best Plugins for Eclipse
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