Class DbQueryBean

All Implemented Interfaces:
Serializable

@Named @ViewScoped public class DbQueryBean extends AMessaging
Bean for handling db queries
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • DbQueryBean

      public DbQueryBean()
  • Method Details

    • updateModel

      public void updateModel()
    • getResourceName

      public String getResourceName(Datenquelle 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()
    • getResultTable

      public DataTable<String,String> getResultTable()
    • getParamSql

      public String getParamSql()
    • getGeneratedSql

      public String getGeneratedSql()
    • getGeneratedUrl

      public String getGeneratedUrl()
    • getQuery

      public org.primefaces.model.StreamedContent getQuery(Datenquelle query)
      Generates StreamedContent for the given db query and returns it
      Parameters:
      query - Datenquelle for which the StreamedContent should be generated
      Returns:
      StreamedContent of the given db query
    • getMarkedQueries

      public org.primefaces.model.StreamedContent getMarkedQueries()
      Generates StreamedContent from the List of all the marked database queries contained within the model. If this list contains only a single entry the StreamedContent 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 generated StreamedContent 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.