Package it.eng.spagobi.tools.dataset.common.dataproxy

Examples of it.eng.spagobi.tools.dataset.common.dataproxy.JDBCDataProxy


  /**
     * Instantiates a new empty JDBC data set.
     */
    public JDBCDataSet() {
    super();
    setDataProxy( new JDBCDataProxy() );
    setDataReader( new JDBCStandardDataReader() );
    addBehaviour( new QuerableBehaviour(this) );
  }
View Full Code Here


    }
   
    public JDBCDataSet(SpagoBiDataSet dataSetConfig) {
    super(dataSetConfig);
   
    setDataProxy( new JDBCDataProxy() );
    setDataReader( new JDBCStandardDataReader() );
   
    try{
      setDataSource( DataSourceFactory.getDataSource( dataSetConfig.getDataSource() ) );
    } catch (Exception e) {
View Full Code Here

 

 
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;
    JDBCDataProxy dataProxy;
   
    sbd = super.toSpagoBiDataSet();
   
    sbd.setType( DS_TYPE );
     
    dataProxy = (JDBCDataProxy)this.getDataProxy();
    sbd.setDataSource(dataProxy.getDataSource().toSpagoBiDataSource());
    if(query!=null){
    sbd.setQuery(query.toString());
    }
    return sbd;
  }
View Full Code Here

    IDataProxy dataProxy;
   
    dataProxy = super.getDataProxy();
   
    if(dataProxy == null) {
      setDataProxy( new JDBCDataProxy() );
      dataProxy = getDataProxy();
    }
   
    if(!(dataProxy instanceof  JDBCDataProxy)) throw new RuntimeException("DataProxy cannot be of type [" +
        dataProxy.getClass().getName() + "] in JDBCDataSet");
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.dataset.common.dataproxy.JDBCDataProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.