congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FunctionAlias.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.h2.engine.FunctionAlias

Best Java code snippets using org.h2.engine.FunctionAlias.getName (Showing top 20 results out of 315)

origin: com.h2database/h2

@Override
public String getName() {
  return functionAlias.getName();
}
origin: com.h2database/h2

@Override
public String getSQL() {
  // TODO can remove this method once FUNCTIONS_IN_SCHEMA is enabled
  if (database.getSettings().functionsInSchema ||
      !getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    return super.getSQL();
  }
  return Parser.quoteIdentifier(getName());
}
origin: com.h2database/h2

/**
 * Find the Java method that matches the arguments.
 *
 * @param args the argument list
 * @return the Java method
 * @throws DbException if no matching method could be found
 */
public JavaMethod findJavaMethod(Expression[] args) {
  load();
  int parameterCount = args.length;
  for (JavaMethod m : javaMethods) {
    int count = m.getParameterCount();
    if (count == parameterCount || (m.isVarArgs() &&
        count <= parameterCount + 1)) {
      return m;
    }
  }
  throw DbException.get(ErrorCode.METHOD_NOT_FOUND_1, getName() + " (" +
      className + ", parameter count: " + parameterCount + ")");
}
origin: com.h2database/h2

private void loadFromSource() {
  SourceCompiler compiler = database.getCompiler();
  synchronized (compiler) {
    String fullClassName = Constants.USER_PACKAGE + "." + getName();
    compiler.setSource(fullClassName, source);
    try {
      Method m = compiler.getMethod(fullClassName);
      JavaMethod method = new JavaMethod(m, 0);
      javaMethods = new JavaMethod[] {
          method
      };
    } catch (DbException e) {
      throw e;
    } catch (Exception e) {
      throw DbException.get(ErrorCode.SYNTAX_ERROR_1, e, source);
    }
  }
}
origin: com.h2database/h2

@Override
public String getSQL() {
  StatementBuilder buff = new StatementBuilder();
  // TODO always append the schema once FUNCTIONS_IN_SCHEMA is enabled
  if (functionAlias.getDatabase().getSettings().functionsInSchema ||
      !functionAlias.getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    buff.append(
        Parser.quoteIdentifier(functionAlias.getSchema().getName()))
        .append('.');
  }
  buff.append(Parser.quoteIdentifier(functionAlias.getName())).append('(');
  for (Expression e : args) {
    buff.appendExceptFirst(", ");
    buff.append(e.getSQL());
  }
  return buff.append(')').toString();
}
origin: com.h2database/h2

identifier(alias.getName()),
  identifier(alias.getName()),
  identifier(alias.getName()),
origin: com.h2database/com.springsource.org.h2

public String getName() {
  return functionAlias.getName();
}
origin: org.wowtools/h2

@Override
public String getName() {
  return functionAlias.getName();
}
origin: com.eventsourcing/h2

@Override
public String getName() {
  return functionAlias.getName();
}
origin: com.h2database/com.springsource.org.h2

public String getSQL() {
  StringBuffer buff = new StringBuffer();
  buff.append(Parser.quoteIdentifier(functionAlias.getName()));
  buff.append('(');
  for (int i = 0; i < args.length; i++) {
    if (i > 0) {
      buff.append(", ");
    }
    Expression e = args[i];
    buff.append(e.getSQL());
  }
  buff.append(')');
  return buff.toString();
}
origin: org.wowtools/h2

@Override
public String getSQL() {
  // TODO can remove this method once FUNCTIONS_IN_SCHEMA is enabled
  if (database.getSettings().functionsInSchema ||
      !getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    return super.getSQL();
  }
  return Parser.quoteIdentifier(getName());
}
origin: com.eventsourcing/h2

@Override
public String getSQL() {
  // TODO can remove this method once FUNCTIONS_IN_SCHEMA is enabled
  if (database.getSettings().functionsInSchema ||
      !getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    return super.getSQL();
  }
  return Parser.quoteIdentifier(getName());
}
origin: com.eventsourcing/h2

/**
 * Find the Java method that matches the arguments.
 *
 * @param args the argument list
 * @return the Java method
 * @throws DbException if no matching method could be found
 */
public JavaMethod findJavaMethod(Expression[] args) {
  load();
  int parameterCount = args.length;
  for (JavaMethod m : javaMethods) {
    int count = m.getParameterCount();
    if (count == parameterCount || (m.isVarArgs() &&
        count <= parameterCount + 1)) {
      return m;
    }
  }
  throw DbException.get(ErrorCode.METHOD_NOT_FOUND_1, getName() + " (" +
      className + ", parameter count: " + parameterCount + ")");
}
origin: org.wowtools/h2

/**
 * Find the Java method that matches the arguments.
 *
 * @param args the argument list
 * @return the Java method
 * @throws DbException if no matching method could be found
 */
public JavaMethod findJavaMethod(Expression[] args) {
  load();
  int parameterCount = args.length;
  for (JavaMethod m : javaMethods) {
    int count = m.getParameterCount();
    if (count == parameterCount || (m.isVarArgs() &&
        count <= parameterCount + 1)) {
      return m;
    }
  }
  throw DbException.get(ErrorCode.METHOD_NOT_FOUND_1, getName() + " (" +
      className + ", parameter count: " + parameterCount + ")");
}
origin: org.wowtools/h2

private void loadFromSource() {
  SourceCompiler compiler = database.getCompiler();
  synchronized (compiler) {
    String fullClassName = Constants.USER_PACKAGE + "." + getName();
    compiler.setSource(fullClassName, source);
    try {
      Method m = compiler.getMethod(fullClassName);
      JavaMethod method = new JavaMethod(m, 0);
      javaMethods = new JavaMethod[] {
          method
      };
    } catch (DbException e) {
      throw e;
    } catch (Exception e) {
      throw DbException.get(ErrorCode.SYNTAX_ERROR_1, e, source);
    }
  }
}
origin: com.eventsourcing/h2

private void loadFromSource() {
  SourceCompiler compiler = database.getCompiler();
  synchronized (compiler) {
    String fullClassName = Constants.USER_PACKAGE + "." + getName();
    compiler.setSource(fullClassName, source);
    try {
      Method m = compiler.getMethod(fullClassName);
      JavaMethod method = new JavaMethod(m, 0);
      javaMethods = new JavaMethod[] {
          method
      };
    } catch (DbException e) {
      throw e;
    } catch (Exception e) {
      throw DbException.get(ErrorCode.SYNTAX_ERROR_1, e, source);
    }
  }
}
origin: com.eventsourcing/h2

@Override
public String getSQL() {
  StatementBuilder buff = new StatementBuilder();
  // TODO always append the schema once FUNCTIONS_IN_SCHEMA is enabled
  if (functionAlias.getDatabase().getSettings().functionsInSchema ||
      !functionAlias.getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    buff.append(
        Parser.quoteIdentifier(functionAlias.getSchema().getName()))
        .append('.');
  }
  buff.append(Parser.quoteIdentifier(functionAlias.getName())).append('(');
  for (Expression e : args) {
    buff.appendExceptFirst(", ");
    buff.append(e.getSQL());
  }
  return buff.append(')').toString();
}
origin: org.wowtools/h2

@Override
public String getSQL() {
  StatementBuilder buff = new StatementBuilder();
  // TODO always append the schema once FUNCTIONS_IN_SCHEMA is enabled
  if (functionAlias.getDatabase().getSettings().functionsInSchema ||
      !functionAlias.getSchema().getName().equals(Constants.SCHEMA_MAIN)) {
    buff.append(
        Parser.quoteIdentifier(functionAlias.getSchema().getName()))
        .append('.');
  }
  buff.append(Parser.quoteIdentifier(functionAlias.getName())).append('(');
  for (Expression e : args) {
    buff.appendExceptFirst(", ");
    buff.append(e.getSQL());
  }
  return buff.append(')').toString();
}
origin: org.wowtools/h2

identifier(alias.getName()),
  identifier(alias.getName()),
  identifier(alias.getName()),
origin: com.h2database/com.springsource.org.h2

identifier(alias.getName()), // ALIAS_NAME
  identifier(alias.getName()), // ALIAS_NAME
org.h2.engineFunctionAliasgetName

Popular methods of FunctionAlias

  • <init>
  • getId
  • getJavaClassName
  • getMethodSignature
  • getSQL
  • getSchema
  • invalidate
  • load
  • findJavaMethod
    Find the Java method that matches the arguments.
  • getDatabase
  • getJavaMethods
    Get the Java methods mapped by this function.
  • getSource
  • getJavaMethods,
  • getSource,
  • init,
  • initSchemaObjectBase,
  • isBufferResultSetToLocalTemp,
  • isDeterministic,
  • loadClass,
  • loadFromSource,
  • newInstance

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JCheckBox (javax.swing)
  • JLabel (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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