Codota Logo
org.eclipse.datatools.sqltools.core.services
Code IndexAdd Codota to your IDE (free)

How to use org.eclipse.datatools.sqltools.core.services

Best Java code snippets using org.eclipse.datatools.sqltools.core.services (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the Action service
 * 
 */
public ActionService getActionService() {
  return new ActionService();
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the SQL data service associated with this database definition
 * 
 */
public SQLDataService getSQLDataService() {
  return new SQLDataService();
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the SQL Editor service associated with this database definition
 * 
 */
public SQLEditorService getSQLEditorService() {
  return new SQLEditorService();
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns a connection for caller to use. By default there's no connection pool associated with a connection 
 * profile and this method just ignore the usePool parameter and delegates to {@link #createConnection(String, String)}.
 * Vendors who has the requirement to use connection pool may override this method.
 * @param databaseIdentifier the database identifier
 * @param usePool whether to retrieve the connection from connection pool.
 * @return a <code>Connection</code> instance
 * @throws SQLException if database error occurs
 */
public Connection createConnection(DatabaseIdentifier databaseIdentifier,
    boolean usePool) throws SQLException, NoSuchProfileException {
  return createConnection(databaseIdentifier.getProfileName(), databaseIdentifier.getDBname());
}
/**
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

protected void initConnection(Connection connection)
{
  //obtain the killer before execution to ensure we can get the connection id
  _connKiller = SQLToolsFacade.getConfiguration(null, _databaseIdentifier).getConnectionService().getConnectionKiller(_databaseIdentifier, connection);
  if (_needsInitConnection)
  {
    //MUST initialize this connection after getting the connection killer.
    IConnectionInitializer init = SQLToolsFacade.getConfiguration(null, _databaseIdentifier).getConnectionService().getConnectionInitializer();
    if (init != null)
    {
      //if the configuration is null, will use the default options to initialize
      init.init(_databaseIdentifier, connection, getConfiguration());
    }
  }
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

public static boolean showAction(String dbType, String actionId)
{
  SQLDevToolsConfiguration f = null;
  f = getConfigurationByDBDefName(dbType);
  if (f != null)
  {
    return f.getActionService().supportsAction(actionId);
  }
  return false;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

public static Runnable getConnectionKiller(DatabaseIdentifier databaseIdentifier, Connection conn)
{
  ConnectionService service = getConnectionService(databaseIdentifier);
  if (service != null)
  {
    return service.getConnectionKiller(databaseIdentifier, conn);
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

public static IConnectionInitializer getConnectionInitializer(DatabaseIdentifier databaseIdentifier)
{
  ConnectionService service = getConnectionService(databaseIdentifier);
  if (service != null)
  {
    return service.getConnectionInitializer();
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Return a specific GenericSQLContextType object which identifies the context type of templates used in SQL editor.
 * 
 * @param dbType
 * @return
 */
public static GenericSQLContextType getSQLContextType(String dbType)
{
  SQLService service = getSQLService(null, dbType);
  if (service != null)
  {
    return service.getSQLContextType();
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Return a special SQLDataValidator to verify user's input value
 * 
 * @param profileName
 * @return
 */
public static ISqlDataValidator getSQLDataValidator(DatabaseIdentifier databaseIdentifier)
{
  SQLDataService s = getSQLDataService(databaseIdentifier, null);
  if (s != null)
  {
    return s.getSQLDataValidator(databaseIdentifier);
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * 
 * Return an ISQLSyntax object which can be used to highlight sql statements in SQL editor.
 * 
 * @param dbType
 * @return
 */
public static ISQLSyntax getSQLSyntax(String dbType)
{
  SQLService s = getSQLService(null, dbType);
  if (s != null)
  {
    return s.getSQLSyntax();
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Return a SQLParser which is used to parse database dialect
 * 
 * @param profileName
 * @param dbType
 * @return
 */
public static SQLParser getSQLParser(String profileName, String dbType)
{
  SQLService s = getSQLService(new DatabaseIdentifier(profileName), dbType);
  if (s != null)
  {
    return s.getSQLParser();
  }
  return null;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

  DatabaseIdentifier databaseIdentifier,
  ILaunchConfiguration configuration, HashMap addInfo) {
return createSimpleSQLResultRunnable(con, sql,
    closeCon, tracker,
    parentMonitor,
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the connection service associated with this database definition
 * 
 */
public ConnectionService getConnectionService() {
  return new ConnectionService();
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the SQL service associated with this database definition
 */
public SQLService getSQLService() {
  return new SQLService();
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the SQL execution service associated with this database definition
 * 
 */
public UIComponentService getUIComponentService() {
  return new UIComponentService();
}
 
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns the SQL execution service associated with this database definition
 * 
 */
public ExecutionService getExecutionService() {
  return new ExecutionService();
}
 
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

/**
 * Returns a <code>Runnable</code> object capable of running a stored procedure. Might be null.
 * @param con the connection
 * @param configuration the lauch configuration
 * @param closeCon whether should close connection
 * @param tracker if closeCon is true and tracker is not null, will notify it when close the connection
 * @param databaseIdentifier
 * @see org.eclipse.datatools.sqltools.routineeditor.result.CallableSQLResultRunnable
 */
public Runnable createStoredProcedureRunnable(Connection con,
    ILaunchConfiguration configuration, boolean closeCon,
    IConnectionTracker tracker, DatabaseIdentifier databaseIdentifier) {
  return createCallableSQLResultRunnable(con, configuration, closeCon,
      tracker, databaseIdentifier);
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

public Connection createConnection(String[] connId) throws SQLException,
    CoreException, NoSuchProfileException {
  // using connection pool for debugging may produce unexpected results
  SQLDevToolsConfiguration f = SQLToolsFacade
      .getConfigurationByProfileName(getDatabaseIdentifier()
          .getProfileName());
  ConnectionService conService = f.getConnectionService();
  Connection con = conService.createConnection(getDatabaseIdentifier()
      .getProfileName(), getDatabaseIdentifier().getDBname());
  if (connId != null && connId.length == 1) {
    connId[0] = "0";
  }
  return con;
}
origin: org.eclipse/org.eclipse.datatools.sqltools.editor.core

  DatabaseIdentifier databaseIdentifier,
  ILaunchConfiguration configuration, HashMap addInfo) {
return createSimpleSQLResultRunnable(con, sql,
    closeCon, tracker,
    parentMonitor,
org.eclipse.datatools.sqltools.core.services

Most used classes

  • ActionService
    An action related service specific to control the actions
  • ConnectionService
    A connection related service specific to a database definition.
  • ExecutionService
    A SQL execution service specific to a database definition.
  • SQLEditorService
    A SQL Editor related service specific to a database definition. This interface allows clients to cus
  • SQLDataService
    A SQL Data service that handles data types and data validation.
  • UIComponentService
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