Codota Logo
FunctionAlias.newInstanceFromSource
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain FunctionAlias
private void myMethod () {
FunctionAlias f =
  • Codota IconDatabase database;String schemaName;String functionAlias;database.getSchema(schemaName).findFunction(functionAlias)
  • Codota IconSchema schema;String functionAlias;schema.findFunction(functionAlias)
  • Codota IconParser parser;String schema;String str;parser.findFunctionAlias(schema, str)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

@Override
public int update() {
  session.commit(true);
  session.getUser().checkAdmin();
  Database db = session.getDatabase();
  if (getSchema().findFunction(aliasName) != null) {
    if (!ifNotExists) {
      throw DbException.get(
          ErrorCode.FUNCTION_ALIAS_ALREADY_EXISTS_1, aliasName);
    }
  } else {
    int id = getObjectId();
    FunctionAlias functionAlias;
    if (javaClassMethod != null) {
      functionAlias = FunctionAlias.newInstance(getSchema(), id,
          aliasName, javaClassMethod, force,
          bufferResultSetToLocalTemp);
    } else {
      functionAlias = FunctionAlias.newInstanceFromSource(
          getSchema(), id, aliasName, source, force,
          bufferResultSetToLocalTemp);
    }
    functionAlias.setDeterministic(deterministic);
    db.addSchemaObject(session, functionAlias);
  }
  return 0;
}
origin: org.wowtools/h2

@Override
public int update() {
  session.commit(true);
  session.getUser().checkAdmin();
  Database db = session.getDatabase();
  if (getSchema().findFunction(aliasName) != null) {
    if (!ifNotExists) {
      throw DbException.get(
          ErrorCode.FUNCTION_ALIAS_ALREADY_EXISTS_1, aliasName);
    }
  } else {
    int id = getObjectId();
    FunctionAlias functionAlias;
    if (javaClassMethod != null) {
      functionAlias = FunctionAlias.newInstance(getSchema(), id,
          aliasName, javaClassMethod, force,
          bufferResultSetToLocalTemp);
    } else {
      functionAlias = FunctionAlias.newInstanceFromSource(
          getSchema(), id, aliasName, source, force,
          bufferResultSetToLocalTemp);
    }
    functionAlias.setDeterministic(deterministic);
    db.addSchemaObject(session, functionAlias);
  }
  return 0;
}
origin: com.eventsourcing/h2

@Override
public int update() {
  session.commit(true);
  session.getUser().checkAdmin();
  Database db = session.getDatabase();
  if (getSchema().findFunction(aliasName) != null) {
    if (!ifNotExists) {
      throw DbException.get(
          ErrorCode.FUNCTION_ALIAS_ALREADY_EXISTS_1, aliasName);
    }
  } else {
    int id = getObjectId();
    FunctionAlias functionAlias;
    if (javaClassMethod != null) {
      functionAlias = FunctionAlias.newInstance(getSchema(), id,
          aliasName, javaClassMethod, force,
          bufferResultSetToLocalTemp);
    } else {
      functionAlias = FunctionAlias.newInstanceFromSource(
          getSchema(), id, aliasName, source, force,
          bufferResultSetToLocalTemp);
    }
    functionAlias.setDeterministic(deterministic);
    db.addSchemaObject(session, functionAlias);
  }
  return 0;
}
org.h2.engineFunctionAliasnewInstanceFromSource

Javadoc

Create a new alias based on source code.

Popular methods of FunctionAlias

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

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now