Package net.sourceforge.squirrel_sql.plugins.oracle.prefs

Examples of net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePreferenceBean


      } else
      {
        _oracleAliasPrefsByAliasIdentifier = new Hashtable<IIdentifier, OracleAliasPrefs>();
      }
      _prefsManager = new PluginQueryTokenizerPreferencesManager();
      _prefsManager.initialize(this, new OraclePreferenceBean());

      /* Register custom DataTypeComponent factory for Oracles XMLType */
      CellComponentFactory.registerDataTypeFactory(
         new OracleXmlTypeDataTypeComponentFactory(), 2007, "SYS.XMLTYPE");
    } catch (Exception e)
View Full Code Here


  {
    if (!isOracle(session))
    {
      return null;
    }
    OraclePreferenceBean prefs = (OraclePreferenceBean) _prefsManager.getPreferences();
    if (prefs.isInstallCustomQueryTokenizer())
    {
      session.setQueryTokenizer(new OracleQueryTokenizer(prefs));
    }

    if (prefs.isShowErrorOffset())
    {
      OracleExceptionFormatter formatter = new OracleExceptionFormatter();
      formatter.setSession(session);
      session.setExceptionFormatter(formatter);
    }
View Full Code Here

    {
      return new DefaultDatabaseExpander(session);
    }
    if (type == DatabaseObjectType.TABLE_TYPE_DBO && isOracleWithFlashBack)
    {
      OraclePreferenceBean prefs = (OraclePreferenceBean) _prefsManager.getPreferences();
      return new OracleTableParentExpander(prefs);
    }
    return null;
  }
View Full Code Here

{

  @Before
  public void setUp() throws Exception
  {
    OraclePreferenceBean prefs = mockHelper.createMock(OraclePreferenceBean.class);
    classUnderTest = new OracleTableParentExpander(prefs);

    expect(prefs.isExcludeRecycleBinTables()).andStubReturn(true);
    ITableInfo mockTableInfo = mockHelper.createMock(ITableInfo.class);
    expect(mockTableInfo.getSimpleName()).andReturn(TEST_SIMPLE_NAME);
    String[] tableTypes = new String[] { TEST_SIMPLE_NAME };
    ITableInfo[] tables = new ITableInfo[] { mockTableInfo };
    expect(
View Full Code Here

   
    @Before
    public void setUp() throws Exception {
        createSQLFile();
        PluginQueryTokenizerPreferencesManager prefsManager = new PluginQueryTokenizerPreferencesManager();
        prefsManager.initialize(mockPlugin, new OraclePreferenceBean());
        _prefs = prefsManager.getPreferences();
        _prefs.setRemoveMultiLineComments(false);
    }
View Full Code Here

      //";","--",true
      IQueryTokenizerPreferenceBean prefs = new MSSQLPreferenceBean();
      //prefs.setStatementSeparator("GO");
      extraTokenizer=new MSSQLQueryTokenizer(prefs);
    }else if(DbConnectionFactory.isOracle()){
      IQueryTokenizerPreferenceBean prefs = new OraclePreferenceBean();
      tokenizer=new OracleQueryTokenizer(prefs);
    }else if(DbConnectionFactory.isMySql()){
      IQueryTokenizerPreferenceBean prefs = new BaseQueryTokenizerPreferenceBean();
      prefs.setProcedureSeparator("#");
      tokenizer=new MysqlQueryTokenizer(prefs);

    }
    tokenizer.setScriptToTokenize(schema.toString());
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePreferenceBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.