org.eclipse.birt.data_3.7.2.v20120213

16:41:32.545 INFO  jd.cli.Main - Decompiling org.eclipse.birt.data_3.7.2.v20120213.jar
package javax.olap;

import org.eclipse.birt.data.engine.core.DataException;

public class OLAPException
  extends DataException
{
  public OLAPException(String reason)
  {
    super(reason);
  }
  
  public OLAPException(String reason, String OLAPState)
  {
    super(reason);
  }
  
  public OLAPException(String reason, Throwable cause)
  {
    super(reason, cause);
  }
  
  public OLAPException(String reason, String OLAPState, int vendorCode)
  {
    super(reason);
  }
  
  public String getOLAPState()
  {
    return "OLAPException";
  }
  
  public void setNextException(OLAPException exception) {}
}

/* Location:
 * Qualified Name:     javax.olap.OLAPException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap;

public class OLAPWarning
  extends OLAPException
{
  public OLAPWarning(String reason)
  {
    super(reason);
  }
  
  public OLAPWarning(String reason, String OLAPState)
  {
    super(reason, OLAPState);
  }
  
  public OLAPWarning(String reason, String OLAPState, int vendorCode)
  {
    super(reason, OLAPState, vendorCode);
  }
}

/* Location:
 * Qualified Name:     javax.olap.OLAPWarning
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.io.InputStream;
import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Blob
  extends NamedObject
{
  public abstract long length()
    throws OLAPException;
  
  public abstract byte[] getBytes(long paramLong, int paramInt)
    throws OLAPException;
  
  public abstract InputStream getBinaryStream()
    throws OLAPException;
  
  public abstract long position(byte[] paramArrayOfByte, long paramLong)
    throws OLAPException;
  
  public abstract long position(Blob paramBlob, long paramLong)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Blob
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.io.InputStream;
import java.io.Reader;
import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Clob
  extends NamedObject
{
  public abstract long length()
    throws OLAPException;
  
  public abstract String getSubString(long paramLong, int paramInt)
    throws OLAPException;
  
  public abstract Reader getCharacterStream()
    throws OLAPException;
  
  public abstract InputStream getAsciiStream()
    throws OLAPException;
  
  public abstract long position(String paramString, long paramLong)
    throws OLAPException;
  
  public abstract long position(Clob paramClob, long paramLong)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Clob
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.util.Collection;
import java.util.List;
import javax.olap.OLAPException;

public abstract interface CubeCursor
  extends RowDataAccessor, Cursor
{
  public abstract List getOrdinateEdge()
    throws OLAPException;
  
  public abstract Collection getPageEdge()
    throws OLAPException;
  
  public abstract void synchronizePages()
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.CubeCursor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Cursor
  extends NamedObject
{
  public abstract Object clone();
  
  public abstract boolean equals(Object paramObject);
  
  public abstract int hashCode();
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Cursor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Date
  extends NamedObject
{
  public abstract void date(long paramLong)
    throws OLAPException;
  
  public abstract void setTime(long paramLong)
    throws OLAPException;
  
  public abstract Date valueOf(String paramString)
    throws OLAPException;
  
  public abstract String toString();
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Date
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.OLAPException;

public abstract interface DimensionCursor
  extends RowDataAccessor, RowDataNavigation, Cursor
{
  public abstract long getEdgeStart()
    throws OLAPException;
  
  public abstract void setEdgeStart(long paramLong)
    throws OLAPException;
  
  public abstract long getEdgeEnd()
    throws OLAPException;
  
  public abstract void setEdgeEnd(long paramLong)
    throws OLAPException;
  
  public abstract EdgeCursor getEdgeCursor()
    throws OLAPException;
  
  public abstract void setEdgeCursor(EdgeCursor paramEdgeCursor)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.DimensionCursor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.util.List;
import javax.olap.OLAPException;

public abstract interface EdgeCursor
  extends RowDataNavigation, Cursor
{
  public abstract List getDimensionCursor()
    throws OLAPException;
  
  public abstract CubeCursor getPageOwner()
    throws OLAPException;
  
  public abstract void setPageOwner(CubeCursor paramCubeCursor)
    throws OLAPException;
  
  public abstract CubeCursor getOrdinateOwner()
    throws OLAPException;
  
  public abstract void setOrdinateOwner(CubeCursor paramCubeCursor)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.EdgeCursor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Map;
import javax.olap.OLAPException;

public abstract interface RowDataAccessor
{
  public abstract InputStream getAsciiStream(int paramInt)
    throws OLAPException;
  
  public abstract InputStream getAsciiStream(String paramString)
    throws OLAPException;
  
  public abstract BigDecimal getBigDecimal(int paramInt)
    throws OLAPException;
  
  public abstract BigDecimal getBigDecimal(String paramString)
    throws OLAPException;
  
  public abstract InputStream getBinaryStream(int paramInt)
    throws OLAPException;
  
  public abstract InputStream getBinaryStream(String paramString)
    throws OLAPException;
  
  public abstract Blob getBlob(int paramInt)
    throws OLAPException;
  
  public abstract Blob getBlob(String paramString)
    throws OLAPException;
  
  public abstract boolean getBoolean(int paramInt)
    throws OLAPException;
  
  public abstract boolean getBoolean(String paramString)
    throws OLAPException;
  
  public abstract byte getByte(int paramInt)
    throws OLAPException;
  
  public abstract byte getByte(String paramString)
    throws OLAPException;
  
  public abstract byte[] getBytes(int paramInt)
    throws OLAPException;
  
  public abstract byte[] getBytes(String paramString)
    throws OLAPException;
  
  public abstract Reader getCharacterStream(int paramInt)
    throws OLAPException;
  
  public abstract Reader getCharacterStream(String paramString)
    throws OLAPException;
  
  public abstract Clob getClob(int paramInt)
    throws OLAPException;
  
  public abstract Clob getClob(String paramString)
    throws OLAPException;
  
  public abstract Date getDate(int paramInt)
    throws OLAPException;
  
  public abstract Date getDate(String paramString)
    throws OLAPException;
  
  public abstract Date getDate(int paramInt, Calendar paramCalendar)
    throws OLAPException;
  
  public abstract Date getDate(String paramString, Calendar paramCalendar)
    throws OLAPException;
  
  public abstract void close()
    throws OLAPException;
  
  public abstract RowDataMetaData getMetaData()
    throws OLAPException;
  
  public abstract double getDouble(int paramInt)
    throws OLAPException;
  
  public abstract double getDouble(String paramString)
    throws OLAPException;
  
  public abstract float getFloat(int paramInt)
    throws OLAPException;
  
  public abstract float getFloat(String paramString)
    throws OLAPException;
  
  public abstract int getInt(int paramInt)
    throws OLAPException;
  
  public abstract int getInt(String paramString)
    throws OLAPException;
  
  public abstract long getLong(int paramInt)
    throws OLAPException;
  
  public abstract long getLong(String paramString)
    throws OLAPException;
  
  public abstract Object getObject(int paramInt)
    throws OLAPException;
  
  public abstract Object getObject(String paramString)
    throws OLAPException;
  
  public abstract Object getObject(int paramInt, Map paramMap)
    throws OLAPException;
  
  public abstract Object getObject(String paramString, Map paramMap)
    throws OLAPException;
  
  public abstract short getShort(int paramInt)
    throws OLAPException;
  
  public abstract short getShort(String paramString)
    throws OLAPException;
  
  public abstract String getString(int paramInt)
    throws OLAPException;
  
  public abstract String getString(String paramString)
    throws OLAPException;
  
  public abstract Time getTime(int paramInt)
    throws OLAPException;
  
  public abstract Time getTime(String paramString)
    throws OLAPException;
  
  public abstract Time getTime(int paramInt, Calendar paramCalendar)
    throws OLAPException;
  
  public abstract Time getTime(String paramString, Calendar paramCalendar)
    throws OLAPException;
  
  public abstract Timestamp getTimestamp(int paramInt)
    throws OLAPException;
  
  public abstract Timestamp getTimestamp(String paramString)
    throws OLAPException;
  
  public abstract Timestamp getTimestamp(int paramInt, Calendar paramCalendar)
    throws OLAPException;
  
  public abstract Timestamp getTimestamp(String paramString, Calendar paramCalendar)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.RowDataAccessor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface RowDataMetaData
  extends NamedObject
{
  public abstract int getColumnCount()
    throws OLAPException;
  
  public abstract boolean isCaseSensitive(int paramInt)
    throws OLAPException;
  
  public abstract boolean isCurrency(int paramInt)
    throws OLAPException;
  
  public abstract boolean isNullable(int paramInt)
    throws OLAPException;
  
  public abstract boolean isSigned(int paramInt)
    throws OLAPException;
  
  public abstract int getColumnDisplaySize(int paramInt)
    throws OLAPException;
  
  public abstract String getColumnLabel(int paramInt)
    throws OLAPException;
  
  public abstract String getColumnName(int paramInt)
    throws OLAPException;
  
  public abstract int getPrecision(int paramInt)
    throws OLAPException;
  
  public abstract int getScale(int paramInt)
    throws OLAPException;
  
  public abstract int getColumnType(int paramInt)
    throws OLAPException;
  
  public abstract String getColumnTypeName(int paramInt)
    throws OLAPException;
  
  public abstract String getColumnClassName(int paramInt)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.RowDataMetaData
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import java.util.Collection;
import javax.olap.OLAPException;

public abstract interface RowDataNavigation
{
  public abstract boolean next()
    throws OLAPException;
  
  public abstract void close()
    throws OLAPException;
  
  public abstract void beforeFirst()
    throws OLAPException;
  
  public abstract void afterLast()
    throws OLAPException;
  
  public abstract boolean first()
    throws OLAPException;
  
  public abstract int getType()
    throws OLAPException;
  
  public abstract boolean isAfterLast()
    throws OLAPException;
  
  public abstract boolean isBeforeFirst()
    throws OLAPException;
  
  public abstract boolean isFirst()
    throws OLAPException;
  
  public abstract boolean isLast()
    throws OLAPException;
  
  public abstract boolean last()
    throws OLAPException;
  
  public abstract boolean previous()
    throws OLAPException;
  
  public abstract boolean relative(int paramInt)
    throws OLAPException;
  
  public abstract void clearWarnings()
    throws OLAPException;
  
  public abstract Collection getWarnings()
    throws OLAPException;
  
  public abstract long getExtent()
    throws OLAPException;
  
  public abstract void setPosition(long paramLong)
    throws OLAPException;
  
  public abstract long getPosition()
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.RowDataNavigation
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Time
  extends NamedObject
{
  public abstract Time valueOf(String paramString)
    throws OLAPException;
  
  public abstract String toString();
  
  public abstract void setTime(long paramLong)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Time
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

import javax.olap.OLAPException;
import javax.olap.query.querycoremodel.NamedObject;

public abstract interface Timestamp
  extends NamedObject
{
  public abstract Timestamp valueOf(String paramString)
    throws OLAPException;
  
  public abstract String toString();
  
  public abstract int getNanos()
    throws OLAPException;
  
  public abstract void setNanos(int paramInt)
    throws OLAPException;
  
  public abstract boolean equals(Timestamp paramTimestamp);
  
  public abstract boolean equals(Object paramObject);
  
  public abstract boolean before(Timestamp paramTimestamp)
    throws OLAPException;
  
  public abstract boolean after(Timestamp paramTimestamp)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.cursor.Timestamp
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.cursor;

public abstract interface Types {}

/* Location:
 * Qualified Name:     javax.olap.cursor.Types
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package javax.olap.query.querycoremodel;

import javax.olap.OLAPException;

public abstract interface NamedObject
{
  public abstract String getName()
    throws OLAPException;
  
  public abstract void setName(String paramString)
    throws OLAPException;
  
  public abstract String getId()
    throws OLAPException;
  
  public abstract void setId(String paramString)
    throws OLAPException;
}

/* Location:
 * Qualified Name:     javax.olap.query.querycoremodel.NamedObject
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.aggregation;

import org.eclipse.birt.data.engine.api.aggregation.IAggrFunction;
import org.eclipse.birt.data.engine.api.aggregation.IParameterDefn;

public class AggregationUtil
{
  public static boolean needDataField(IAggrFunction aggrFunc)
  {
    if (aggrFunc == null) {
      return false;
    }
    IParameterDefn[] params = aggrFunc.getParameterDefn();
    for (int i = 0; i < params.length; i++) {
      if (params[i].isDataField()) {
        return true;
      }
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.aggregation.AggregationUtil
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class CloseListenerManager
{
  List<ICloseListener> list = null;
  private int activateDteCount = 0;
  
  public CloseListenerManager()
  {
    list = new ArrayList();
  }
  
  public void dataEngineStart()
  {
    activateDteCount += 1;
  }
  
  public void dataEngineShutDown()
  {
    activateDteCount -= 1;
  }
  
  public void add(ICloseListener stream)
  {
    list.add(stream);
  }
  
  public void closeAll()
    throws IOException
  {
    for (int i = 0; i < list.size(); i++) {
      ((ICloseListener)list.get(i)).close();
    }
    list.clear();
  }
  
  public int getActivateDteCount()
  {
    return activateDteCount;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.CloseListenerManager
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import java.util.Collection;
import org.eclipse.birt.data.engine.api.querydefn.BaseExpression;

public class CollectionConditionalExpression
  extends BaseExpression
  implements ICollectionConditionalExpression
{
  private Collection<IScriptExpression> expr;
  private Collection<Collection<IScriptExpression>> operand;
  private int operator;
  
  public CollectionConditionalExpression(Collection<IScriptExpression> expr, int operator, Collection<Collection<IScriptExpression>> operand)
  {
    this.expr = expr;
    this.operand = operand;
    this.operator = operator;
  }
  
  public Collection<IScriptExpression> getExpr()
  {
    return expr;
  }
  
  public Collection<Collection<IScriptExpression>> getOperand()
  {
    return operand;
  }
  
  public int getOperator()
  {
    return operator;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.CollectionConditionalExpression
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import java.io.File;
import java.util.Map;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.framework.Platform;
import org.eclipse.birt.core.framework.PlatformConfig;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.olap.api.IPreparedCubeQuery;
import org.eclipse.birt.data.engine.olap.api.query.ICubeQueryDefinition;
import org.eclipse.birt.data.engine.olap.api.query.ISubCubeQueryDefinition;
import org.mozilla.javascript.Scriptable;

public abstract class DataEngine
{
  /**
   * @deprecated
   */
  public static String DATASET_CACHE_OPTION = "org.eclipse.birt.data.engine.dataset.cache.option";
  public static String DATA_SET_CACHE_ROW_LIMIT = "org.eclipse.birt.data.cache.RowLimit";
  public static String MEMORY_BUFFER_SIZE = "org.eclipse.birt.data.query.ResultBufferSize";
  public static String MAX_DATA_OBJECT_ROWS = "org.eclipse.birt.data.query.MaxDataObjectRows";
  public static String DATA_SET_CACHE_DELTA_FILE = "org.eclipse.birt.data.cache.DeltaFile";
  public static String MEMORY_DATA_SET_CACHE = "org.eclipse.birt.data.cache.memory";
  public static String MEMORY_USAGE = "org.eclipse.birt.data.memoryusage";
  public static String MEMORY_USAGE_AGGRESSIVE = "org.eclipse.birt.data.memoryusage.Aggressive";
  public static String MEMORY_USAGE_NORMAL = "org.eclipse.birt.data.memoryusage.normal";
  public static String MEMORY_USAGE_CONSERVATIVE = "org.eclipse.birt.data.memoryusage.conservative";
  public static String INCREMENTAL_CACHE_CONFIG = "org.eclipse.birt.data.cache.incremental.config";
  public static String CUBECURSOR_FETCH_LIMIT_ON_COLUMN_EDGE = "org.eclipse.birt.data.engine.olap.cursor.onColumn";
  public static String CUBECUSROR_FETCH_LIMIT_ON_ROW_EDGE = "org.eclipse.birt.data.engine.olap.cursor.onRow";
  /**
   * @deprecated
   */
  public static String CUBECURSOR_FETCH_LIMIT_ON_LEVEL = "org.eclipse.birt.data.engine.olap.cursor.onLevel";
  public static String IN_MEMORY_CUBE_SIZE = "org.eclipse.birt.data.engine.cube.inmemory.size";
  
  public static DataEngine newDataEngine(DataEngineContext context)
  {
    try
    {
      return newDataEngine(null, context);
    }
    catch (BirtException e)
    {
      throw new RuntimeException(e);
    }
  }
  
  public static DataEngine newDataEngine(PlatformConfig platformConfig, DataEngineContext dataContext)
    throws BirtException
  {
    Platform.startup(platformConfig);
    
    Object factory = Platform.createFactoryObject("org.eclipse.birt.data.DataEngineFactory");
    if ((factory instanceof IDataEngineFactory)) {
      return ((IDataEngineFactory)factory).createDataEngine(dataContext);
    }
    throw new DataException("load.factory.error");
  }
  
  /**
   * @deprecated
   */
  public static DataEngine newDataEngine(Scriptable sharedScope)
  {
    try
    {
      return newDataEngine(DataEngineContext.newInstance(3, 
        sharedScope, 
        null, 
        null));
    }
    catch (BirtException localBirtException) {}
    return null;
  }
  
  /**
   * @deprecated
   */
  public static DataEngine newDataEngine(Scriptable sharedScope, File homeDir)
  {
    return newDataEngine(sharedScope);
  }
  
  public abstract IQueryResults getQueryResults(String paramString)
    throws BirtException;
  
  public abstract void defineDataSource(IBaseDataSourceDesign paramIBaseDataSourceDesign)
    throws BirtException;
  
  public abstract void defineDataSet(IBaseDataSetDesign paramIBaseDataSetDesign)
    throws BirtException;
  
  public abstract IResultMetaData getCachedDataSetMetaData(IBaseDataSourceDesign paramIBaseDataSourceDesign, IBaseDataSetDesign paramIBaseDataSetDesign)
    throws BirtException;
  
  public abstract void clearCache(IBaseDataSourceDesign paramIBaseDataSourceDesign, IBaseDataSetDesign paramIBaseDataSetDesign)
    throws BirtException;
  
  public abstract IPreparedQuery prepare(IQueryDefinition paramIQueryDefinition)
    throws BirtException;
  
  public abstract IPreparedQuery prepare(IQueryDefinition paramIQueryDefinition, Map paramMap)
    throws BirtException;
  
  public abstract void registerQueries(IDataQueryDefinition[] paramArrayOfIDataQueryDefinition)
    throws DataException;
  
  public abstract void closeDataSource(String paramString)
    throws BirtException;
  
  public abstract IPreparedCubeQuery prepare(ICubeQueryDefinition paramICubeQueryDefinition, Map paramMap)
    throws BirtException;
  
  public abstract IPreparedCubeQuery prepare(ISubCubeQueryDefinition paramISubCubeQueryDefinition, Map paramMap)
    throws BirtException;
  
  public abstract void addShutdownListener(IShutdownListener paramIShutdownListener);
  
  public abstract void removeListener(IShutdownListener paramIShutdownListener);
  
  public abstract void cancel();
  
  public abstract void shutdown();
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.DataEngine
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import com.ibm.icu.util.TimeZone;
import com.ibm.icu.util.ULocale;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Locale;
import java.util.logging.Logger;
import org.eclipse.birt.core.archive.IDocArchiveReader;
import org.eclipse.birt.core.archive.IDocArchiveWriter;
import org.eclipse.birt.core.archive.RAInputStream;
import org.eclipse.birt.core.archive.RAOutputStream;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.script.ScriptContext;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.core.security.PropertySecurity;
import org.eclipse.birt.data.engine.core.security.TempPathManager;
import org.mozilla.javascript.Scriptable;

public class DataEngineContext
{
  public static final int MODE_GENERATION = 1;
  public static final int MODE_PRESENTATION = 2;
  public static final int DIRECT_PRESENTATION = 3;
  public static final int MODE_UPDATE = 4;
  public static final int CACHE_USE_DEFAULT = 1;
  public static final int CACHE_USE_DISABLE = 2;
  public static final int CACHE_USE_ALWAYS = 3;
  public static final int CACHE_MODE_IN_MEMORY = 1;
  public static final int CACHE_MODE_IN_DISK = 2;
  private int mode;
  private int generationOption;
  private Scriptable scope;
  private IDocArchiveReader reader;
  private IDocArchiveWriter writer;
  private ULocale currentLocale;
  private int cacheOption;
  private int cacheCount;
  private String tmpDir = PropertySecurity.getSystemProperty("java.io.tmpdir");
  private ClassLoader classLoader;
  public static final int VERSION_INFO_STREAM = 11;
  public static final int DATASET_DATA_STREAM = 21;
  public static final int DATASET_META_STREAM = 22;
  public static final int DATASET_DATA_LEN_STREAM = 23;
  public static final int EXPR_VALUE_STREAM = 31;
  public static final int EXPR_META_STREAM = 32;
  public static final int EXPR_ROWLEN_STREAM = 33;
  public static final int GROUP_INFO_STREAM = 41;
  public static final int SUBQUERY_INFO_STREAM = 42;
  public static final int QUERY_DEFN_STREAM = 43;
  public static final int ORIGINAL_QUERY_DEFN_STREAM = 44;
  public static final int ROW_INDEX_STREAM = 51;
  public static final int QUERYID_INFO_STREAM = 61;
  public static final int SUBQUERY_PARENTINDEX_STREAM = 71;
  public static final int META_STREAM = 99;
  public static final int META_INDEX_STREAM = 100;
  public static final int NAMING_RELATION_STREAM = 101;
  public static final int PLS_GROUPLEVEL_STREAM = 102;
  public static final int AGGR_INDEX_STREAM = 103;
  public static final int AGGR_VALUE_STREAM = 104;
  public static final int COMBINED_AGGR_INDEX_STREAM = 105;
  public static final int COMBINED_AGGR_VALUE_STREAM = 106;
  public static final int META_SECURITY_STREAM = 109;
  @Deprecated
  public static final int ROW_SECURITY_STREAM = 110;
  public static final int ACL_COLLECTION_STREAM = 111;
  public static final int CUBE_META_SECURITY_STREAM = 112;
  public static final int DIMENSION_META_SECURITY_STREAM = 114;
  @Deprecated
  public static final int ROW_SECURITY_STREAM_INDEX = 115;
  public static final int EMPTY_NESTED_QUERY_ID = 116;
  public static final String QUERY_STARTING_ID = "/dataEngine/queryStartingID";
  public static final int PROGRESSIVE_VIEWING_GROUP_STREAM = 120;
  private static Logger logger = Logger.getLogger(DataEngineContext.class.getName());
  private ScriptContext scriptContext;
  private TimeZone currentTimeZone;
  private String bundleVersion;
  
  /**
   * @deprecated
   */
  public static DataEngineContext newInstance(int mode, Scriptable scope, IDocArchiveReader reader, IDocArchiveWriter writer, ClassLoader classLoader)
    throws BirtException
  {
    return new DataEngineContext(mode, scope, reader, writer, classLoader, null);
  }
  
  /**
   * @deprecated
   */
  public static DataEngineContext newInstance(int mode, Scriptable scope, IDocArchiveReader reader, IDocArchiveWriter writer)
    throws BirtException
  {
    ScriptContext context = new ScriptContext().newContext(scope);
    DataEngineContext result = newInstance(mode, context, reader, writer, null);
    return result;
  }
  
  public static DataEngineContext newInstance(int mode, ScriptContext context, IDocArchiveReader reader, IDocArchiveWriter writer, ClassLoader classLoader)
    throws BirtException
  {
    IDataScriptEngine dse = (IDataScriptEngine)context.getScriptEngine("javascript");
    DataEngineContext result = new DataEngineContext(mode, 
      dse.getJSScope(context), 
      reader, 
      writer, 
      classLoader, context);
    return result;
  }
  
  private DataEngineContext(int mode, Scriptable scope, IDocArchiveReader reader, IDocArchiveWriter writer, ClassLoader classLoader, ScriptContext context)
    throws BirtException
  {
    Object[] params = {
      Integer.valueOf(mode), scope, reader, writer, classLoader };
    
    logger.entering(DataEngineContext.class.getName(), 
      "DataEngineContext", 
      params);
    if ((mode != 1) && 
      (mode != 2) && (mode != 3) && (mode != 4)) {
      throw new DataException("data.engine.InvalidMode");
    }
    if ((writer == null) && (mode == 1)) {
      throw new DataException("data.engine.InvalidArchive");
    }
    if ((reader == null) && (mode == 2)) {
      throw new DataException("data.engine.InvalidArchive");
    }
    if ((reader == null) && (mode == 4)) {
      throw new DataException("data.engine.InvalidArchive");
    }
    this.classLoader = classLoader;
    this.mode = mode;
    this.scope = scope;
    this.reader = reader;
    this.writer = writer;
    cacheOption = 1;
    scriptContext = context;
    currentLocale = ULocale.getDefault();
    currentTimeZone = TimeZone.getDefault();
    logger.exiting(DataEngineContext.class.getName(), "DataEngineContext");
  }
  
  public int getMode()
  {
    return mode;
  }
  
  public void setMode(int mode)
  {
    this.mode = mode;
  }
  
  public Scriptable getJavaScriptScope()
  {
    return scope;
  }
  
  public int getCacheOption()
  {
    return cacheOption;
  }
  
  public int getCacheCount()
  {
    return cacheCount;
  }
  
  public void setCacheOption(int option, int cacheCount)
    throws BirtException
  {
    if (mode != 3) {
      throw new DataException("data.engine.cacheFunctionWrongMode");
    }
    cacheOption = option;
    this.cacheCount = cacheCount;
  }
  
  public RAOutputStream getOutputStream(String streamID, String subStreamID, int streamType)
    throws DataException
  {
    assert (writer != null);
    
    String relativePath = getPath(streamID, subStreamID, streamType);
    try
    {
      RAOutputStream outputStream = writer.openRandomAccessStream(relativePath);
      if (outputStream == null) {
        throw new DataException("data.engine.GetSaveStreamError");
      }
      return outputStream;
    }
    catch (IOException e)
    {
      throw new DataException("data.engine.GetSaveStreamError", e);
    }
  }
  
  public boolean hasOutStream(String streamID, String subStreamID, int streamType)
  {
    String relativePath = getPath(streamID, subStreamID, streamType);
    if (writer != null) {
      return writer.exists(relativePath);
    }
    return false;
  }
  
  public boolean hasInStream(String streamID, String subStreamID, int streamType)
  {
    String relativePath = getPath(streamID, subStreamID, streamType);
    if (reader != null) {
      return reader.exists(relativePath);
    }
    if ((writer != null) && (writer.exists(relativePath))) {
      return true;
    }
    return false;
  }
  
  public void dropStream(String streamID, String subStreamID, int streamType)
  {
    String relativePath = getPath(streamID, subStreamID, streamType);
    
    dropStream(relativePath);
  }
  
  public void dropStream(String streamPath)
  {
    if (writer != null) {
      try
      {
        if (!writer.exists(streamPath)) {
          return;
        }
        OutputStream stream = writer.createRandomAccessStream(streamPath);
        stream.close();
      }
      catch (IOException e)
      {
        e.printStackTrace();
      }
    }
  }
  
  public RAInputStream getInputStream(String streamID, String subStreamID, int streamType)
    throws DataException
  {
    String relativePath = getPath(streamID, subStreamID, streamType);
    try
    {
      RAInputStream inputStream = null;
      if (reader != null) {
        inputStream = reader.getStream(relativePath);
      } else if ((writer != null) && (writer.exists(relativePath))) {
        inputStream = writer.getInputStream(relativePath);
      }
      if (inputStream == null) {
        throw new DataException("data.engine.GetLoadStreamError");
      }
      return inputStream;
    }
    catch (IOException e)
    {
      throw new DataException("data.engine.GetLoadStreamError", e);
    }
  }
  
  public void setLocale(Locale locale)
  {
    currentLocale = ULocale.forLocale(locale);
    DataException.setLocale(currentLocale);
  }
  
  public void setTimeZone(TimeZone zone)
  {
    currentTimeZone = zone;
  }
  
  public TimeZone getTimeZone()
  {
    return currentTimeZone;
  }
  
  public ULocale getLocale()
  {
    return currentLocale;
  }
  
  public String getTmpdir()
  {
    if (!tmpDir.endsWith(File.separator)) {
      return tmpDir + File.separator;
    }
    return tmpDir;
  }
  
  public void setTmpdir(String tmpdir)
  {
    tmpDir = tmpdir;
    DataEngineThreadLocal.getInstance().getPathManager().setTempPath(getTmpdir());
  }
  
  public void setDataEngineOption(int option)
  {
    generationOption = option;
  }
  
  public int getDataEngineOption()
  {
    return generationOption;
  }
  
  public void setClassLoader(ClassLoader classLoader)
  {
    this.classLoader = classLoader;
  }
  
  public IDocArchiveReader getDocReader()
  {
    return reader;
  }
  
  public IDocArchiveWriter getDocWriter()
  {
    return writer;
  }
  
  public void setDocReader(IDocArchiveReader reader)
  {
    this.reader = reader;
  }
  
  public ClassLoader getClassLoader()
  {
    return classLoader;
  }
  
  public static String getPath(String streamID, String subStreamID, int streamType)
  {
    String relativePath = null;
    switch (streamType)
    {
    case 11: 
      return "/DataEngine/VesionInfo";
    case 101: 
      return "/DataEngine/NamingRelation";
    case 21: 
      relativePath = "DataSetData";
      break;
    case 22: 
      relativePath = "ResultClass";
      break;
    case 23: 
      relativePath = "DataSetLens";
      break;
    case 31: 
      relativePath = "ExprValue";
      break;
    case 33: 
      relativePath = "ExprRowLen";
      break;
    case 32: 
      relativePath = "ExprMetaInfo";
      break;
    case 41: 
      relativePath = "GroupInfo";
      break;
    case 42: 
      relativePath = "SubQueryInfo";
      break;
    case 43: 
      relativePath = "QueryDefn";
      break;
    case 44: 
      relativePath = "OriginalQueryDefn";
      break;
    case 51: 
      relativePath = "RowIndex";
      break;
    case 61: 
      relativePath = "QueryIDInfo";
      break;
    case 71: 
      relativePath = "ParentIndex";
      break;
    case 99: 
      relativePath = "Meta";
      break;
    case 100: 
      relativePath = "MetaIndex";
      break;
    case 102: 
      relativePath = "PlsGroupLevel";
      break;
    case 103: 
      relativePath = "AggrIndex";
      break;
    case 104: 
      relativePath = "AggrValue";
      break;
    case 105: 
      relativePath = "CombinedAggrIndex";
      break;
    case 106: 
      relativePath = "CombinedAggrValue";
      break;
    case 109: 
      relativePath = "MetaSecurity";
      break;
    case 110: 
      relativePath = "RowSecurity";
      break;
    case 115: 
      relativePath = "RowSecurityIndex";
      break;
    case 112: 
      relativePath = "CubeMetaSecurity";
      break;
    case 111: 
      relativePath = "ACLCollection";
      break;
    case 114: 
      relativePath = "DimensionSecurity";
      break;
    case 120: 
      relativePath = "ProgressiveViewingGroupInfo";
      break;
    case 116: 
      relativePath = "EmptyNestQueryResultIDs";
      break;
    default: 
      if (!$assertionsDisabled) {
        throw new AssertionError();
      }
      break;
    }
    String streamRoot = "/" + streamID + "/";
    if (subStreamID != null) {
      streamRoot = streamRoot + subStreamID + "/";
    }
    return streamRoot + relativePath;
  }
  
  public ScriptContext getScriptContext()
  {
    if (scriptContext == null) {
      scriptContext = new ScriptContext();
    }
    return scriptContext;
  }
  
  public void setBundleVersion(String bundleVersion)
  {
    this.bundleVersion = bundleVersion;
  }
  
  public String getBundleVersion()
  {
    return bundleVersion;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.DataEngineContext
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

class DataEngineThreadLocal$1
  extends ThreadLocal<CloseListenerManager>
{
  DataEngineThreadLocal$1(DataEngineThreadLocal paramDataEngineThreadLocal) {}
  
  protected CloseListenerManager initialValue()
  {
    return new CloseListenerManager();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.DataEngineThreadLocal.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import org.eclipse.birt.data.engine.core.security.TempPathManager;

class DataEngineThreadLocal$2
  extends ThreadLocal<TempPathManager>
{
  DataEngineThreadLocal$2(DataEngineThreadLocal paramDataEngineThreadLocal) {}
  
  protected TempPathManager initialValue()
  {
    return new TempPathManager();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.DataEngineThreadLocal.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import org.eclipse.birt.data.engine.core.security.TempPathManager;

public class DataEngineThreadLocal
{
  private static DataEngineThreadLocal local = new DataEngineThreadLocal();
  
  public static DataEngineThreadLocal getInstance()
  {
    return local;
  }
  
  private ThreadLocal<CloseListenerManager> closeHolder = new ThreadLocal()
  {
    protected CloseListenerManager initialValue()
    {
      return new CloseListenerManager();
    }
  };
  private ThreadLocal<TempPathManager> pathManager = new ThreadLocal()
  {
    protected TempPathManager initialValue()
    {
      return new TempPathManager();
    }
  };
  
  public TempPathManager getPathManager()
  {
    return (TempPathManager)pathManager.get();
  }
  
  public CloseListenerManager getCloseListener()
  {
    return (CloseListenerManager)closeHolder.get();
  }
  
  public void removeCloseListener()
  {
    closeHolder.remove();
  }
  
  public void removeTempPathManger()
  {
    pathManager.remove();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.DataEngineThreadLocal
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import com.ibm.icu.util.ULocale;
import java.util.Collection;
import java.util.List;
import org.eclipse.birt.data.engine.api.script.IBaseDataSetEventHandler;

public abstract interface IBaseDataSetDesign
{
  public static final String NULLS_ORDERING_NULLS_LOWEST = "nulls lowest";
  public static final String NULLS_ORDERING_NULLS_HIGHEST = "nulls highest";
  public static final String NULLS_ORDERING_EXCLUDE_NULLS = "exclude nulls";
  
  public abstract String getName();
  
  /**
   * @deprecated
   */
  public abstract int getCacheRowCount();
  
  public abstract boolean needDistinctValue();
  
  public abstract String getDataSourceName();
  
  public abstract List getComputedColumns();
  
  public abstract List getFilters();
  
  public abstract List<ISortDefinition> getSortHints();
  
  public abstract List getParameters();
  
  public abstract List getResultSetHints();
  
  public abstract Collection getInputParamBindings();
  
  public abstract String getBeforeOpenScript();
  
  public abstract String getAfterOpenScript();
  
  public abstract String getOnFetchScript();
  
  public abstract String getBeforeCloseScript();
  
  public abstract String getAfterCloseScript();
  
  public abstract IBaseDataSetEventHandler getEventHandler();
  
  public abstract void setRowFetchLimit(int paramInt);
  
  public abstract int getRowFetchLimit();
  
  public abstract ULocale getCompareLocale();
  
  public abstract String getNullsOrdering();
}

/* Location:
 * Qualified Name:     org.eclipse.birt.data.engine.api.IBaseDataSetDesign
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.birt.data.engine.api;

import org.eclipse.birt.data.engine.api.script.IBaseDataSourceEventHandler;

public abstract interface IBaseDataSourceDesign
{
  public abstract String getName();
  
  public abstract String getBeforeOpenScript();
  
  public abstract String getAfterOpenScript();
  
  public abstract String getBeforeCloseScript();
  
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd