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 class
DbQueryBean.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.LayoutOptions
createLayoutOptions()
List<DatenbankZugriff>
getDatenbankzugriffe()
String
getGeneratedSql()
String
getGeneratedUrl()
org.primefaces.model.StreamedContent
getMarkedQueries()
GeneratesStreamedContent
from the List of all the marked database queries contained within the model.IEntityListModelSelectByView<Datenquelle>
getModel()
String
getParamSql()
org.primefaces.model.StreamedContent
getQuery(Datenquelle query)
GeneratesStreamedContent
for the given db query and returns itList<IParameterModel>
getQueryParams()
String
getResourceName(Datenquelle datenquelle)
String
getResultString()
DataTable<String,String>
getResultTable()
EDataView
getResultView()
SessionBean
getSessionBean()
Deprecated.void
setModel(IEntityListModelSelectByView<Datenquelle> model)
void
setQueryParams(List<IParameterModel> queryParams)
void
setResultView(EDataView resultView)
void
setSessionBean(SessionBean sessionBean)
Deprecated.void
updateModel()
void
upload(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
-
-
-
-
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)
GeneratesStreamedContent
for the given db query and returns it- Parameters:
query
-Datenquelle
for which theStreamedContent
should be generated- Returns:
StreamedContent
of the given db query
-
getMarkedQueries
public org.primefaces.model.StreamedContent getMarkedQueries()
GeneratesStreamedContent
from the List of all the marked database queries contained within the model. If this list contains only a single entry theStreamedContent
for 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 generatedStreamedContent
of the zip file will be returned.- Returns:
- the
StreamedContent
of 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.
-
-