Package org.gdbms.engine.data.object

Examples of org.gdbms.engine.data.object.ObjectSourceDefinition


    dsf.registerDataSource("shppuntos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/puntos.shp"));
    dsf.registerDataSource("shplineas", new SpatialFileSourceDefinition(basedir + "/src/test/resources/lineas.shp"));
    dsf.registerDataSource("shppoligonos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/poligonos.shp"));
    dsf.registerDataSource("dxfprueba", new SpatialFileSourceDefinition(basedir + "/src/test/resources/dxfprueba.dxf"));
    dsf.registerDataSource("spatialobjectpersona", new SpatialObjectSourceDefinition(new FakeSpatialObjectDriver()));
    dsf.registerDataSource("objectpersona", new ObjectSourceDefinition(new FakeObjectDriver()));
    dsf.registerDataSource("alltypes", new ObjectSourceDefinition(new AllTypesObjectDriver()));
   
    InternalExceptionCatcher.addInternalExceptionListener(new InternalExceptionListener() {
            /**
             * @see org.gdbms.engine.internalExceptions.InternalExceptionListener#exceptionRaised(org.gdbms.engine.internalExceptions.InternalExceptionEvent)
             */
 
View Full Code Here


        dm.registerDriver("copyFailingFile", CopyFailingFileDriver.class);
        dm.registerDriver("executeFailingDB", ExecuteFailingDBDriver.class);
        dm.registerDriver("closeFailingDB", CloseFailingDBDriver.class);
        dsf.setDriverManager(dm);
       
        dsf.registerDataSource("alphaObject", new ObjectSourceDefinition(new FailingObjectDriver()));
        dsf.registerDataSource("spatialObject", new SpatialObjectSourceDefinition(new FailingObjectDriver()));
        dsf.registerDataSource("alphaWriteFile", new FakeFileSourceDefinition(new WriteFailingFileDriver()));
        dsf.registerDataSource("alphaCloseFile", new FakeFileSourceDefinition(new CloseFailingFileDriver()));
        dsf.registerDataSource("alphaCopyFile", new FakeFileSourceDefinition(new CopyFailingFileDriver()));
        dsf.registerDataSource("spatialWriteFile", new FakeSpatialFileSourceDefinition(new WriteFailingFileDriver()));
View Full Code Here

   * @throws DataSourceCreationException
   *             If the instance creation fails
   */
  public AlphanumericDataSource getAlphanumericDataSource(AlphanumericObjectDriver object)
      throws DriverLoadException, DataSourceCreationException {
    ObjectSourceDefinition fsd = new ObjectSourceDefinition(object);
    String name = nameAndRegisterDataSource(fsd);
    try {
      return (AlphanumericDataSource) getDataSource(name);
    } catch (NoSuchTableException e) {
      throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.object.ObjectSourceDefinition

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.