Codota Logo
IDatabaseDialect.createNativeConnection
Code IndexAdd Codota to your IDE (free)

How to use
createNativeConnection
method
in
org.pentaho.database.IDatabaseDialect

Best Java code snippets using org.pentaho.database.IDatabaseDialect.createNativeConnection (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: pentaho/data-access

/**
 * Create a database connection
 *
 * @param driver
 *          String name of the driver to use
 * @param url
 *          String name of the url used to create the connection.
 *
 * @return IDatabaseConnection for the given parameters
 */
@GET
@Path( "/createDatabaseConnection" )
@Produces( { APPLICATION_JSON } )
@Facet( name = "Unsupported" )
public IDatabaseConnection createDatabaseConnection( @QueryParam( "driver" ) String driver,
  @QueryParam( "url" ) String url ) {
 for ( IDatabaseDialect dialect : dialectService.getDatabaseDialects() ) {
  if ( dialect.getNativeDriver() != null && dialect.getNativeDriver().equals( driver ) ) {
   if ( dialect.getNativeJdbcPre() != null && url.startsWith( dialect.getNativeJdbcPre() ) ) {
    return dialect.createNativeConnection( url );
   }
  }
 }
 // if no native driver was found, create a custom dialect object.
 IDatabaseConnection conn = genericDialect.createNativeConnection( url );
 conn.getAttributes().put( GenericDatabaseDialect.ATTRIBUTE_CUSTOM_DRIVER_CLASS, driver );
 return conn;
}
org.pentaho.databaseIDatabaseDialectcreateNativeConnection

Popular methods of IDatabaseDialect

  • getDatabaseType
  • getNativeDriver
  • getURLWithExtraOptions
  • getNativeJdbcPre

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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