Package org.gdbms.engine.data.metadata

Examples of org.gdbms.engine.data.metadata.DriverMetadata


        }
        return new DBFDriver().getParameters(driverType);
    }
   
    public SpatialDriverMetadata getDriverMetadata() throws DriverException {
       DriverMetadata dmd = dataSource.getDriverMetadata();
       DefaultSpatialDriverMetadata ret = new DefaultSpatialDriverMetadata();
       ret.addSpatialField(getMetadata().getFieldName(0), getGeometryType());
       ret.addAll(dmd);
      
       return ret;
View Full Code Here


        if (cachedPKIndices == null) {
            String[] pkNames = getDriverMetadata().getPrimaryKeys();
            cachedPKIndices = new int[pkNames.length];

            for (int i = 0; i < cachedPKIndices.length; i++) {
                DriverMetadata dmd = getDriverMetadata();
                cachedPKIndices[i] = -1;
                for (int j = 0; j < dmd.getFieldCount(); j++) {
                    if (dmd.getFieldName(j).equals(pkNames[i])) {
                        cachedPKIndices[i] = j;
                        break;
                    }
                }
                if (cachedPKIndices[i] == -1) {
View Full Code Here

        return ret;
    }
   
    public Metadata getDataSourceMetadata() throws DriverException {
        DriverMetadata dmd = getDriverMetadata();
        String[] pkNames = getPKNames();
        boolean[] readOnly = new boolean[dmd.getFieldCount()];
        for (int i = 0; i < readOnly.length; i++) {
            readOnly[i] = driver.isReadOnly(i);
        }
        return new DefaultMetadata(dmd, driver, readOnly, pkNames);
    }
View Full Code Here

    public String check(Field field, Value value) throws DriverException {
        return driver.check(field, value);
    }

    public Metadata getOriginalMetadata() throws DriverException {
        DriverMetadata dmd = getDriverMetadata();
        boolean[] readOnly = new boolean[dmd.getFieldCount()];
        for (int i = 0; i < readOnly.length; i++) {
            readOnly[i] = driver.isReadOnly(i);
        }
       
        return new DefaultMetadata(dmd, getDriver(), readOnly, new String[0]);
View Full Code Here

        }
        ds.stop();
    }

    public Metadata getOriginalMetadata() throws DriverException {
        DriverMetadata dmd = driver.getDriverMetadata();
        boolean[] readOnly = new boolean[dmd.getFieldCount()];
        for (int i = 0; i < readOnly.length; i++) {
            readOnly[i] = driver.isReadOnly(i);
        }
       
        return new DefaultMetadata(dmd, driver, readOnly, driver.getPrimaryKeys());
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.metadata.DriverMetadata

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.