it.eng.qbe.wizard
Class SingleDataMartWizardObjectSourceBeanImpl

java.lang.Object
  extended by it.eng.qbe.wizard.SingleDataMartWizardObjectSourceBeanImpl
All Implemented Interfaces:
ISingleDataMartWizardObject, java.io.Serializable

public class SingleDataMartWizardObjectSourceBeanImpl
extends java.lang.Object
implements ISingleDataMartWizardObject

The Class SingleDataMartWizardObjectSourceBeanImpl.

See Also:
Serialized Form

Field Summary
static int DEFAULT_MAX_ROWS_NUM
          The Constant DEFAULT_MAX_ROWS_NUM.
static java.lang.String QUERY_RESPONSE_SOURCE_BEAN
          The QUER y_ respons e_ sourc e_ bean.
 
Constructor Summary
SingleDataMartWizardObjectSourceBeanImpl()
          Instantiates a new single data mart wizard object source bean impl.
 
Method Summary
 void composeQuery(IDataMartModel dataMartModel)
          Compose query.
 it.eng.spago.base.SourceBean executeExpertQuery(DataMartModel dataMartModel, int pageNumber, int pageSize)
          Execute expert query.
 it.eng.spago.base.SourceBean executeQbeQuery(DataMartModel dataMartModel, int pageNumber, int pageSize)
          Execute qbe query.
 it.eng.spago.base.SourceBean executeQuery(DataMartModel dataMartModel, int pageNumber, int pageSize)
          Execute query.
 it.eng.spago.base.SourceBean executeSqlQuery(DataMartModel dataMartModel, java.lang.String query, int pageNumber, int pageSize)
          Execute sql query.
 java.util.List extractExpertSelectFieldsList()
          This method extracts the name of select fields (or the alias name if present), from the expert query.
 ISingleDataMartWizardObject getCopy()
          Gets the copy.
 java.lang.String getDescription()
          Gets the description.
 java.lang.String getExpertQueryDisplayed()
          Gets the expert query displayed.
 java.lang.String getExpertQuerySaved()
          Gets the expert query saved.
 java.lang.String getFinalQuery()
          Gets the final query.
 java.lang.String getFinalSqlQuery(DataMartModel dm)
          Gets the final sql query.
 java.lang.String getOwner()
          Gets the owner.
 IQuery getQuery()
          Gets the query.
 boolean getVisibility()
          Gets the visibility.
 boolean isUseExpertedVersion()
          Checks if is use experted version.
 void setDescription(java.lang.String description)
          Sets the description.
 void setExpertQueryDisplayed(java.lang.String expertQueryDisplayed)
          Sets the expert query displayed.
 void setExpertQuerySaved(java.lang.String expertQuerySaved)
          Sets the expert query saved.
 void setFinalQuery(java.lang.String query)
          Sets the final query.
 void setOwner(java.lang.String owner)
          Sets the owner.
 void setUseExpertedVersion(boolean useExpertedVersion)
          Sets the use experted version.
 void setVisibility(boolean visibility)
          Sets the visibility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_ROWS_NUM

public static final int DEFAULT_MAX_ROWS_NUM
The Constant DEFAULT_MAX_ROWS_NUM.

See Also:
Constant Field Values

QUERY_RESPONSE_SOURCE_BEAN

public static java.lang.String QUERY_RESPONSE_SOURCE_BEAN
The QUER y_ respons e_ sourc e_ bean.

Constructor Detail

SingleDataMartWizardObjectSourceBeanImpl

public SingleDataMartWizardObjectSourceBeanImpl()
Instantiates a new single data mart wizard object source bean impl.

Method Detail

getCopy

public ISingleDataMartWizardObject getCopy()
Gets the copy.

Returns:
the copy

getFinalQuery

public java.lang.String getFinalQuery()
Description copied from interface: ISingleDataMartWizardObject
Gets the final query.

Specified by:
getFinalQuery in interface ISingleDataMartWizardObject
Returns:
the final query

getFinalSqlQuery

public java.lang.String getFinalSqlQuery(DataMartModel dm)
Description copied from interface: ISingleDataMartWizardObject
Gets the final sql query.

Specified by:
getFinalSqlQuery in interface ISingleDataMartWizardObject
Parameters:
dm - the dm
Returns:
the final sql query

setFinalQuery

public void setFinalQuery(java.lang.String query)
Description copied from interface: ISingleDataMartWizardObject
Sets the final query.

Specified by:
setFinalQuery in interface ISingleDataMartWizardObject
Parameters:
query - the new final query

composeQuery

public void composeQuery(IDataMartModel dataMartModel)
Description copied from interface: ISingleDataMartWizardObject
Compose query.

Specified by:
composeQuery in interface ISingleDataMartWizardObject
Parameters:
dataMartModel - the datamart

getDescription

public java.lang.String getDescription()
Description copied from interface: ISingleDataMartWizardObject
Gets the description.

Specified by:
getDescription in interface ISingleDataMartWizardObject
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: ISingleDataMartWizardObject
Sets the description.

Specified by:
setDescription in interface ISingleDataMartWizardObject
Parameters:
description - the new description

isUseExpertedVersion

public boolean isUseExpertedVersion()
Description copied from interface: ISingleDataMartWizardObject
Checks if is use experted version.

Specified by:
isUseExpertedVersion in interface ISingleDataMartWizardObject
Returns:
true, if is use experted version

setUseExpertedVersion

public void setUseExpertedVersion(boolean useExpertedVersion)
Description copied from interface: ISingleDataMartWizardObject
Sets the use experted version.

Specified by:
setUseExpertedVersion in interface ISingleDataMartWizardObject
Parameters:
useExpertedVersion - the new use experted version

getExpertQueryDisplayed

public java.lang.String getExpertQueryDisplayed()
Description copied from interface: ISingleDataMartWizardObject
Gets the expert query displayed.

Specified by:
getExpertQueryDisplayed in interface ISingleDataMartWizardObject
Returns:
the expert query displayed

setExpertQueryDisplayed

public void setExpertQueryDisplayed(java.lang.String expertQueryDisplayed)
Description copied from interface: ISingleDataMartWizardObject
Sets the expert query displayed.

Specified by:
setExpertQueryDisplayed in interface ISingleDataMartWizardObject
Parameters:
expertQueryDisplayed - the new expert query displayed

getVisibility

public boolean getVisibility()
Description copied from interface: ISingleDataMartWizardObject
Gets the visibility.

Specified by:
getVisibility in interface ISingleDataMartWizardObject
Returns:
the visibility

setVisibility

public void setVisibility(boolean visibility)
Description copied from interface: ISingleDataMartWizardObject
Sets the visibility.

Specified by:
setVisibility in interface ISingleDataMartWizardObject
Parameters:
visibility - the new visibility

getOwner

public java.lang.String getOwner()
Description copied from interface: ISingleDataMartWizardObject
Gets the owner.

Specified by:
getOwner in interface ISingleDataMartWizardObject
Returns:
the owner

setOwner

public void setOwner(java.lang.String owner)
Description copied from interface: ISingleDataMartWizardObject
Sets the owner.

Specified by:
setOwner in interface ISingleDataMartWizardObject
Parameters:
owner - the new owner

getExpertQuerySaved

public java.lang.String getExpertQuerySaved()
Description copied from interface: ISingleDataMartWizardObject
Gets the expert query saved.

Specified by:
getExpertQuerySaved in interface ISingleDataMartWizardObject
Returns:
the expert query saved

setExpertQuerySaved

public void setExpertQuerySaved(java.lang.String expertQuerySaved)
Description copied from interface: ISingleDataMartWizardObject
Sets the expert query saved.

Specified by:
setExpertQuerySaved in interface ISingleDataMartWizardObject
Parameters:
expertQuerySaved - the new expert query saved

extractExpertSelectFieldsList

public java.util.List extractExpertSelectFieldsList()
This method extracts the name of select fields (or the alias name if present), from the expert query.

Specified by:
extractExpertSelectFieldsList in interface ISingleDataMartWizardObject
Returns:
the list of the name of select fields (or the alias name if present), from the expert query, null if the query is null or doesn't contain select fields

executeQbeQuery

public it.eng.spago.base.SourceBean executeQbeQuery(DataMartModel dataMartModel,
                                                    int pageNumber,
                                                    int pageSize)
                                             throws java.lang.Exception
Description copied from interface: ISingleDataMartWizardObject
Execute qbe query.

Specified by:
executeQbeQuery in interface ISingleDataMartWizardObject
Parameters:
dataMartModel - the data mart model
pageNumber - the page number
pageSize - the page size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeExpertQuery

public it.eng.spago.base.SourceBean executeExpertQuery(DataMartModel dataMartModel,
                                                       int pageNumber,
                                                       int pageSize)
                                                throws java.lang.Exception
Description copied from interface: ISingleDataMartWizardObject
Execute expert query.

Specified by:
executeExpertQuery in interface ISingleDataMartWizardObject
Parameters:
dataMartModel - the data mart model
pageNumber - the page number
pageSize - the page size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeSqlQuery

public it.eng.spago.base.SourceBean executeSqlQuery(DataMartModel dataMartModel,
                                                    java.lang.String query,
                                                    int pageNumber,
                                                    int pageSize)
                                             throws java.lang.Exception
Description copied from interface: ISingleDataMartWizardObject
Execute sql query.

Specified by:
executeSqlQuery in interface ISingleDataMartWizardObject
Parameters:
dataMartModel - the data mart model
query - the query
pageNumber - the page number
pageSize - the page size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeQuery

public it.eng.spago.base.SourceBean executeQuery(DataMartModel dataMartModel,
                                                 int pageNumber,
                                                 int pageSize)
                                          throws java.lang.Exception
Description copied from interface: ISingleDataMartWizardObject
Execute query.

Specified by:
executeQuery in interface ISingleDataMartWizardObject
Parameters:
dataMartModel - the data mart model
pageNumber - the page number
pageSize - the page size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

getQuery

public IQuery getQuery()
Description copied from interface: ISingleDataMartWizardObject
Gets the query.

Specified by:
getQuery in interface ISingleDataMartWizardObject
Returns:
the query