Package de.xima.fc.gui.bean.data
Class DbQueryBean
- java.lang.Object
 - 
- de.xima.fc.gui.common.utils.msg.I18nUtils
 - 
- de.xima.fc.gui.common.utils.msg.MessageUtils
 - 
- de.xima.fc.gui.common.utils.msg.AMessaging
 - 
- de.xima.fc.gui.bean.data.DbQueryBean
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
@Named @ViewScoped public class DbQueryBean extends AMessaging
Bean for handling db queries- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classDbQueryBean.EntityListModelImpl 
- 
Constructor Summary
Constructors Constructor Description DbQueryBean() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.primefaces.extensions.model.layout.LayoutOptionscreateLayoutOptions()List<DatenbankZugriff>getDatenbankzugriffe()StringgetGeneratedSql()StringgetGeneratedUrl()org.primefaces.model.StreamedContentgetMarkedQueries()GeneratesStreamedContentfrom the List of all the marked database queries contained within the model.IEntityListModelSelectByView<Datenquelle>getModel()StringgetParamSql()org.primefaces.model.StreamedContentgetQuery(Datenquelle query)GeneratesStreamedContentfor the given db query and returns itList<IParameterModel>getQueryParams()StringgetResourceName(Datenquelle datenquelle)StringgetResultString()DataTable<String,String>getResultTable()EDataViewgetResultView()SessionBeangetSessionBean()Deprecated.voidsetModel(IEntityListModelSelectByView<Datenquelle> model)voidsetQueryParams(List<IParameterModel> queryParams)voidsetResultView(EDataView resultView)voidsetSessionBean(SessionBean sessionBean)Deprecated.voidupdateModel()voidupload(org.primefaces.event.FileUploadEvent event)- 
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg 
- 
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault 
 - 
 
 - 
 
- 
- 
Method Detail
- 
updateModel
public void updateModel()
 
- 
getResourceName
public String getResourceName(Datenquelle datenquelle)
 
- 
getModel
public IEntityListModelSelectByView<Datenquelle> getModel()
- Returns:
 - the model
 
 
- 
setModel
public void setModel(IEntityListModelSelectByView<Datenquelle> model)
- Parameters:
 model- the model to set
 
- 
getDatenbankzugriffe
public List<DatenbankZugriff> getDatenbankzugriffe()
 
- 
getResultView
public EDataView getResultView()
 
- 
setResultView
public void setResultView(EDataView resultView)
 
- 
getQueryParams
public List<IParameterModel> getQueryParams()
 
- 
setQueryParams
public void setQueryParams(List<IParameterModel> queryParams)
 
- 
getResultString
public String getResultString()
 
- 
getParamSql
public String getParamSql()
 
- 
getGeneratedSql
public String getGeneratedSql()
 
- 
getGeneratedUrl
public String getGeneratedUrl()
 
- 
getQuery
public org.primefaces.model.StreamedContent getQuery(Datenquelle query)
GeneratesStreamedContentfor the given db query and returns it- Parameters:
 query-Datenquellefor which theStreamedContentshould be generated- Returns:
 StreamedContentof the given db query
 
- 
getMarkedQueries
public org.primefaces.model.StreamedContent getMarkedQueries()
GeneratesStreamedContentfrom the List of all the marked database queries contained within the model. If this list contains only a single entry theStreamedContentfor this database query will be returned. If the list contains more than one entry the queries will be packed into a zip file and the generatedStreamedContentof the zip file will be returned.- Returns:
 - the 
StreamedContentof all the marked model database queries 
 
- 
upload
public void upload(org.primefaces.event.FileUploadEvent event)
 
- 
createLayoutOptions
public org.primefaces.extensions.model.layout.LayoutOptions createLayoutOptions()
 
- 
getSessionBean
@Deprecated public SessionBean getSessionBean()
Deprecated. 
- 
setSessionBean
@Deprecated public void setSessionBean(SessionBean sessionBean)
Deprecated. 
 - 
 
 -