|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OLAPDataSetInterface
The OLAPDataSetInterface together with the ResultSetInterface, ResultSetMetadataInterface, AxisInterface, TupleInterface, and TupleElementInterface make up the Data portion of the OLAP model. The ResultSetInterface is the central interface for retrieving the data and the structure or shape of that data. The structure of the data is defined by the ResultSetMetadataInterface, which is directly accessible via the ResultSetInterface. The AxisInterface, TupleInterface, and TupleElementInterface are the metadata components for the ResultSetMetadata. These are distinctly different from the metadata that defines the dataSource (eg Cube, Dimension, etc), as is noted throughout the javadoc. The OLAPDataSetInterface brings them all together. It provides the connection information and the means to execute a query on an OLAP server. An OLAPDataSet object is the Java Data Model that should be attached to OLAP viewers, roughly equivalent to a JDBC RowSet. The OLAPDataSetInterface extends the functionality of the ResultSetInterface. It also provides a set of properties that allow an OLAPDataSet instance to be configured to connect to an OLAP server. A connection, however, is not required in order to use this model. When a connection is defined, the OLAPDataSet is used for executing a static query statement and obtaining the results produced by it. Only one ResultSet is available within the OLAPDataSetInterface at any point in time. Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each must have been generated by different OLAPDataSetInterface objects. The executeQuery method implicitly closes the previous ResultSet object.
ResultSetInterface
Field Summary | |
---|---|
static int |
DEFAULT_CONTEXT_TYPE
The following properties specify whether the tupleelement in the resultset has context or not. |
static int |
NO_CONTEXT_TYPE
|
Fields inherited from interface com.sas.storage.olap.ResultSetInterface |
---|
DEFAULT_END_CELL, DEFAULT_ENDCELL |
Method Summary | |
---|---|
void |
executeQuery()
Executes the current query statement, which can be retrieved via the getQueryStatement() method. |
void |
executeQuery(java.lang.String queryStatement)
Executes the query statement that is passed in as a parameter. |
java.lang.Object |
getConnection()
Returns the connection to the OLAP server. |
int |
getContextType()
Get the context type. |
java.lang.String |
getCubeName()
Get the cubename associated with the current query |
MetadataInterface |
getDatabaseMetadata()
This method returns an instance of the MetadataInterface which defines all of the Cubes' metadata on the OLAP Server to which the model is connected. |
java.util.Locale |
getLocale()
Returns the locale used for the session. |
PerformanceTuning |
getPerformanceTuning()
This method returns a performanceTuning object on the model. |
void |
setConnection(java.lang.Object con)
Sets the connection to the OLAP server. |
void |
setContextType(int contextType)
Set the context type. |
void |
setLocale(java.util.Locale locale)
Sets the locale for the session object |
void |
setPerformanceTuning(PerformanceTuning performanceTuning)
Set the PerformanceTuning Object on this model. |
void |
setQueryStatement(java.lang.String queryStatement)
Sets the query statement, but does not execute the query. |
void |
setReadOnly(boolean readOnly)
Sets the updateable state of the OLAPDataSet. |
Methods inherited from interface com.sas.storage.olap.ResultSetInterface |
---|
close, getCellCount, getCells, getFormattedCells, getQueryStatement, getResultSetMetadata, isReadOnly, setCells, setFormattedCells |
Field Detail |
---|
static final int DEFAULT_CONTEXT_TYPE
static final int NO_CONTEXT_TYPE
Method Detail |
---|
void setContextType(int contextType) throws OLAPException
context
- type to be set on the resultSet. Currently there are only two types,
DEFAULT_CONTEXT_TYPE and NO_CONTEXT_TYPE
OLAPException
- if cannot set the context type.int getContextType() throws OLAPException
OLAPException
- if cannot set the context type.java.lang.Object getConnection() throws OLAPException
OLAPException
- if a database error occursvoid setConnection(java.lang.Object con) throws OLAPException
The
- connection to the OLAP server
OLAPException
- if a database error occursjava.util.Locale getLocale() throws OLAPException
OLAPException
- if a database error occursvoid setLocale(java.util.Locale locale) throws OLAPException
The
- locale to the OLAP server
OLAPException
- if a database error occursvoid executeQuery(java.lang.String queryStatement) throws OLAPException
queryStatement
- The query statement
OLAPException
- if a database error occursvoid executeQuery() throws OLAPException
OLAPException
- if a database error occursvoid setQueryStatement(java.lang.String queryStatement) throws OLAPException
queryStatement
- The query to be executed
OLAPException
- if a database error occursvoid setReadOnly(boolean readOnly) throws OLAPException
readOnly
- The updateable state of the OLAPDataSet.
OLAPException
- If a database-access error occursPerformanceTuning getPerformanceTuning() throws OLAPException
OLAPException
void setPerformanceTuning(PerformanceTuning performanceTuning) throws OLAPException
perfromanceTuning
- An Object that has performanceTuning properties set on it. Null will
not have any effect.
OLAPException
MetadataInterface getDatabaseMetadata() throws OLAPException
OLAPException
- If a database error occursjava.lang.String getCubeName() throws OLAPException
OLAPException
- if the cubename cannot be
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |