Пример #1
0
 /**
  * @param id
  * @param name
  * @param connectionId
  * @param query
  */
 public MdxDataAccess(String id, String name, String connectionId, String query) {
   super(id, name, connectionId, query);
   try {
     String _mode =
         CdaBoot.getInstance()
             .getGlobalConfig()
             .getConfigProperty("pt.webdetails.cda.BandedMDXMode");
     if (_mode != null) {
       bandedMode = BANDED_MODE.valueOf(_mode);
     }
   } catch (Exception ex) {
     bandedMode = BANDED_MODE.COMPACT;
   }
 }
Пример #2
0
  public MdxDataAccess(final Element element) {
    super(element);

    try {
      bandedMode =
          BANDED_MODE.valueOf(element.selectSingleNode("./BandedMode").getText().toUpperCase());

    } catch (Exception e) {
      // Getting defaults
      try {
        String _mode =
            CdaBoot.getInstance()
                .getGlobalConfig()
                .getConfigProperty("pt.webdetails.cda.BandedMDXMode");
        if (_mode != null) {
          bandedMode = BANDED_MODE.valueOf(_mode);
        }
      } catch (Exception ex) {
        // ignore, let the default take it's place
      }
    }
  }
Пример #3
0
  protected void setUp() throws Exception {

    CdaBoot.getInstance().start();

    super.setUp();
  }