public int compare(Object left, Object right) { SQLDevToolsConfiguration f1 = (SQLDevToolsConfiguration) left; SQLDevToolsConfiguration f2 = (SQLDevToolsConfiguration) right; return new DatabaseVendorDefinitionId.VersionComparator().compare(f1.getDatabaseVendorDefinitionId().getVersion(), f2.getDatabaseVendorDefinitionId().getVersion()); } }
/** * Returns a database-specific SQL statement service class. * * @param profileName * @param dbType * @return */ public static SQLService getSQLService(DatabaseIdentifier databaseIdentifier, String dbType) { SQLDevToolsConfiguration f = getConfiguration(dbType, databaseIdentifier); return f.getSQLService(); }
public static ConnectionService getConnectionService(DatabaseIdentifier databaseIdentifier) { ConnectionService service = getConfiguration(null, databaseIdentifier).getConnectionService(); return service; }
/** * Returns a database-specific SQL statement service class. * */ public static SQLEditorService getSQLEditorService(DatabaseIdentifier databaseIdentifier, String dbType) { SQLDevToolsConfiguration f = getConfiguration(dbType, databaseIdentifier); return f.getSQLEditorService(); }
/** * Get the ActionService by profile name. Clients need to check whether the profile exists before calling this method. * * @param profileName profile name * @return the UIComponentService */ public static ActionService getActionService(String profileName) { SQLDevToolsConfiguration conf = SQLToolsFacade.getConfigurationByProfileName(profileName); return conf.getActionService(); }
/** * Get the ActionService by DatabaseVendorDefinitionId * * @param vendorId * @return the UIComponentService */ public static ActionService getActionService(DatabaseVendorDefinitionId vendorId) { SQLDevToolsConfiguration conf = SQLToolsFacade.getConfigurationByVendorIdentifier(vendorId); return conf.getActionService(); } }
/** * Returns the query execution plan service associated with this database * definition * */ public IPlanService getPlanService() { return PlanServiceRegistry.getInstance().getPlanService(this.getDatabaseVendorDefinitionId().toString()); }
/** * Returns a database-specific query plan service class. * */ public static IPlanService getPlanService(DatabaseIdentifier databaseIdentifier) { SQLDevToolsConfiguration f = getConfiguration(null, databaseIdentifier); return f.getPlanService(); }
/** * Gets the <code>SQLDevToolsConfiguration</code> object by the database definition name. * * @param dbDefName database definition name, which is product name appended by "_" and version. * @return <code>SQLDevToolsConfiguration</code> object */ public static SQLDevToolsConfiguration getConfigurationByDBDefName(String dbDefName) { return getConfigurationByVendorIdentifier(new DatabaseVendorDefinitionId(dbDefName)); }
/** * Returns a database-specific SQL Data service class. * * @param profileName * @param dbType * @return */ public static SQLDataService getSQLDataService(DatabaseIdentifier databaseIdentifier, String dbType) { SQLDevToolsConfiguration f = getConfiguration(dbType, databaseIdentifier); return f.getSQLDataService(); }
public static IDatabaseSetting getDatabaseSetting(DatabaseIdentifier databaseIdentifier) { SQLDevToolsConfiguration f = getConfiguration(null, databaseIdentifier); return f.getDatabaseSetting(databaseIdentifier); }
public static DBHelper getDBHelper(DatabaseIdentifier databaseIdentifier, String dbType) { SQLDevToolsConfiguration f = getConfiguration(dbType, databaseIdentifier); return f.getDBHelper(); }
public static SQLDevToolsConfiguration getConfiguration(String dbType, DatabaseIdentifier databaseIdentifier) { if (dbType == null) { return getConfiguration(databaseIdentifier, null); } return getConfiguration(databaseIdentifier, new DatabaseVendorDefinitionId(dbType)); } }
/** * Returns the DatabaseVendorDefinitionId which contributes to the sql dev tools framework as a default * configuration. * * @return */ public static DatabaseVendorDefinitionId getDefaultDatabaseVendorDefinitionId() { return getDefaultConfiguration().getDatabaseVendorDefinitionId(); }
/** * Returns the DatabaseVendorDefinitionId which is not bind to any database * * @return */ public static DatabaseVendorDefinitionId getNonSpecificDatabaseVendorDefinitionId() { return SQLDevToolsConfiguration.getDefaultInstance().getDatabaseVendorDefinitionId(); }
public String getDatabaseName() { return _database.getDBname(); }
/** * * @param databaseIdentifier * @return */ public static DBHelper getDBHelper(DatabaseIdentifier databaseIdentifier) { return getDBHelper(databaseIdentifier, null); }
/** * Logs error message. * * @param message Error message. */ public void log(String message) { log(createErrorStatus(message)); }
/** * Returns the data type provider for this database * @return the data type provider */ public DataTypeProvider getDataTypeProvider() { return new DataTypeProvider(); }
public String getText(Object element) { return ((ProcIdentifier) element).getLongDisplayString(); } }