Package org.gdbms.engine.data.metadata

Examples of org.gdbms.engine.data.metadata.DefaultDriverMetadata.addField()


     */
    public DriverMetadata getDriverMetadata() throws DriverException {
        DefaultDriverMetadata ret = new DefaultDriverMetadata();
        for (int i = 0; i < getFieldCount(); i++) {
            int type = getFieldType(i);
            ret.addField(getFieldName(i), PTTypes.typesDescription.get(type));           
        }
       
        return ret;
    }

View Full Code Here


     * @see org.gdbms.engine.data.driver.GDBMSDriver#getDriverMetadata()
     */
    public DriverMetadata getDriverMetadata() throws DriverException {
        DefaultDriverMetadata ret = new DefaultDriverMetadata();
        for (int i = 0; i < getFieldCount(); i++) {
            ret.addField(getFieldName(i), "STRING");
        }

        return ret;
    }

View Full Code Here

     */
    public DriverMetadata getDriverMetadata() throws DriverException {
        DefaultDriverMetadata ret = new DefaultDriverMetadata();
        for (int i = 0; i < getFieldCount(); i++) {
            int type = getFieldType(i);
            ret.addField(getFieldName(i), PTTypes.typesDescription.get(type));           
        }
       
        return ret;
    }

View Full Code Here

    public void testFileCreation() throws Exception {

        String path = "src/test/resources/persona.csv";
        new File(path).delete();
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("id", "STRING");
        ddm.addField("nombre", "STRING");
        ds.createDataSource(new FileSourceCreation(new File(path),
                ddm));
        ds.registerDataSource("persona_created", new FileSourceDefinition(path));
       
View Full Code Here

        String path = "src/test/resources/persona.csv";
        new File(path).delete();
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("id", "STRING");
        ddm.addField("nombre", "STRING");
        ds.createDataSource(new FileSourceCreation(new File(path),
                ddm));
        ds.registerDataSource("persona_created", new FileSourceDefinition(path));
       
        Value v1 = ValueFactory.createValue("Fernando");
View Full Code Here

        d.stop();
    }
   
    public void testCheckInput() throws Exception {
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
        ddm.addField("entero", "TINYINT");
        ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
        ddm.addField("decimal2", "DECIMAL");
        ddm.addField("texto2", "CHAR");
        ddm.setPrimaryKey(new String[]{"entero"});
View Full Code Here

    }
   
    public void testCheckInput() throws Exception {
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
        ddm.addField("entero", "TINYINT");
        ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
        ddm.addField("decimal2", "DECIMAL");
        ddm.addField("texto2", "CHAR");
        ddm.setPrimaryKey(new String[]{"entero"});
        DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
View Full Code Here

   
    public void testCheckInput() throws Exception {
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
        ddm.addField("entero", "TINYINT");
        ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
        ddm.addField("decimal2", "DECIMAL");
        ddm.addField("texto2", "CHAR");
        ddm.setPrimaryKey(new String[]{"entero"});
        DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
        "nuevo", "jdbc:hsqldb:file");
View Full Code Here

    public void testCheckInput() throws Exception {
        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
        ddm.addField("entero", "TINYINT");
        ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
        ddm.addField("decimal2", "DECIMAL");
        ddm.addField("texto2", "CHAR");
        ddm.setPrimaryKey(new String[]{"entero"});
        DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
        "nuevo", "jdbc:hsqldb:file");
        ds.createDataSource(new DBSourceCreation(dbsd, ddm));
View Full Code Here

        DefaultDriverMetadata ddm = new DefaultDriverMetadata();
        ddm.addField("texto", "VARCHAR", new String[]{"LENGTH"}, new String[]{"5"});
        ddm.addField("entero", "TINYINT");
        ddm.addField("decimal", "DECIMAL", new String[]{"SCALE", "PRECISION"}, new String[]{"2", "5"});
        ddm.addField("decimal2", "DECIMAL");
        ddm.addField("texto2", "CHAR");
        ddm.setPrimaryKey(new String[]{"entero"});
        DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
        "nuevo", "jdbc:hsqldb:file");
        ds.createDataSource(new DBSourceCreation(dbsd, ddm));
        ds.registerDataSource("nuevoDataSource", new DBTableSourceDefinition(dbsd));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.