Package org.gdbms.engine.data.persistence

Examples of org.gdbms.engine.data.persistence.DataSourceLayerMemento


    /**
     * @see org.gdbms.engine.data.DataSource#getMemento()
     */
    public Memento getMemento() throws MementoException{
        DataSourceLayerMemento m = new DataSourceLayerMemento(getName(),
                getAlias());
   
        return m;
    }
View Full Code Here


   *             If DataSource execution fails
   */
  public DataSource getDataSource(Memento m) throws NoSuchTableException,
      DataSourceCreationException, ExecutionException {
    if (m instanceof DataSourceLayerMemento) {
      DataSourceLayerMemento mem = (DataSourceLayerMemento) m;

      return getDataSource(mem.getTableName(), mem.getTableAlias());
    } else {
      OperationLayerMemento mem = (OperationLayerMemento) m;

      return executeSQL(mem.getSql());
    }
  }
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.persistence.DataSourceLayerMemento

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.