@Override protected void connect() throws Exception { super.connect(); dataStore.setDatabaseSchema(null); }
@Override protected void connect() throws Exception { super.connect(); dataStore.setDatabaseSchema(null); }
protected void connect() throws Exception { super.connect(); featureStore = (JDBCFeatureStore) dataStore.getFeatureSource(tname("ft1")); }
protected void connect() throws Exception { super.connect(); featureStore = (JDBCFeatureStore) dataStore.getFeatureSource(tname("ft1")); }
@Override protected void connect() throws Exception { super.connect(); fs = dataStore.getFeatureSource(tname("ft1")); }
@Override protected void connect() throws Exception { super.connect(); schema = DataUtilities.createType( dataStore.getNamespaceURI() + "." + SKIPCOLUMN, ID + ":0," + GEOM + ":Point," + NAME + ":String"); }
@Override protected void connect() throws Exception { super.connect(); lakeSchema = DataUtilities.createType( dataStore.getNamespaceURI() + "." + LAKE, ID + ":0," + GEOM + ":Polygon," + NAME + ":String"); }
protected void connect() throws Exception { super.connect(); featureSource = (JDBCFeatureStore) dataStore.getFeatureSource(tname("ft1")); }
protected void connect() throws Exception { super.connect(); source = (JDBCFeatureStore) dataStore.getFeatureSource(tname("ft1")); collection = source.getFeatures(); }
protected void connect() throws Exception { super.connect(); store = (JDBCFeatureStore) dataStore.getFeatureSource(tname("ft1")); store.setFeatureLock(FeatureLock.TRANSACTION); }
@Override protected void connect() throws Exception { super.connect(); personSchema = DataUtilities.createType( dataStore.getNamespaceURI() + "." + PERSON, ID + ":0," + NAME + ":String," + AGE + ":0"); zipCodeSchema = DataUtilities.createType( dataStore.getNamespaceURI() + "." + ZIPCODE, ID + ":0," + CODE + ":String"); }
@Override protected void connect() throws Exception { super.connect();
@Override protected void connect() throws Exception { super.connect(); SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder(); tb.setName(TESTLOB); tb.add(aname(BLOB_FIELD), byte[].class); tb.add(aname(CLOB_FIELD), String.class); tb.add(aname(RAW_FIELD), byte[].class); lobSchema = tb.buildFeatureType(); }
@Override protected void connect() throws Exception { super.connect(); line3DType = DataUtilities.createType( dataStore.getNamespaceURI() + "." + tname(getLine3d()), aname(ID) + ":0," + aname(GEOM) + ":LineString:srid=" + getEpsgCode() + "," + aname(NAME) + ":String"); line3DType.getGeometryDescriptor().getUserData().put(Hints.COORDINATE_DIMENSION, 3); poly3DType = DataUtilities.createType( dataStore.getNamespaceURI() + "." + tname(getPoly3d()), aname(ID) + ":0," + aname(GEOM) + ":Polygon:srid=" + getEpsgCode() + "," + aname(NAME) + ":String"); poly3DType.getGeometryDescriptor().getUserData().put(Hints.COORDINATE_DIMENSION, 3); crs = CRS.decode("EPSG:" + getEpsgCode()); }
protected void connect() throws Exception { super.connect(); if (td == null) { td = new TestData(((JDBCDataStoreAPITestSetup) setup).getInitialPrimaryKeyValue()); td.forceLongitudeFirst = this.forceLongitudeFirst; td.ROAD = tname(td.ROAD); td.ROAD_ID = aname(td.ROAD_ID); td.ROAD_GEOM = aname(td.ROAD_GEOM); td.ROAD_NAME = aname(td.ROAD_NAME); td.RIVER = tname(td.RIVER); td.RIVER_ID = aname(td.RIVER_ID); td.RIVER_GEOM = aname(td.RIVER_GEOM); td.RIVER_FLOW = aname(td.RIVER_FLOW); td.RIVER_RIVER = aname(td.RIVER_RIVER); td.build(); } dataStore.setDatabaseSchema(null); }
protected void connect() throws Exception { super.connect(); if (td == null) { td = new TestData(((JDBCDataStoreAPITestSetup) setup).getInitialPrimaryKeyValue()); td.ROAD = tname(td.ROAD); td.ROAD_ID = aname(td.ROAD_ID); td.ROAD_GEOM = aname(td.ROAD_GEOM); td.ROAD_NAME = aname(td.ROAD_NAME); td.RIVER = tname(td.RIVER); td.RIVER_ID = aname(td.RIVER_ID); td.RIVER_GEOM = aname(td.RIVER_GEOM); td.RIVER_FLOW = aname(td.RIVER_FLOW); td.RIVER_RIVER = aname(td.RIVER_RIVER); td.build(); } dataStore.setDatabaseSchema(null); }
@Override protected void connect() throws Exception { super.connect(); // we need to use the type builder because the pk has min occurs = 1 on Oracle AttributeTypeBuilder atb = new AttributeTypeBuilder(); atb.setMinOccurs(isPkNillable() ? 0 : 1); atb.setMaxOccurs(1); atb.setNillable(isPkNillable()); atb.setName(FID); atb.setBinding(Integer.class); AttributeDescriptor fidDescriptor = atb.buildDescriptor(FID); SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder(); tb.setNamespaceURI(dataStore.getNamespaceURI()); tb.setName(LAKESVIEW); tb.add(fidDescriptor); tb.add(ID, Integer.class); tb.add(GEOM, Polygon.class, (CoordinateReferenceSystem) null); tb.add(NAME, String.class); lakeViewSchema = tb.buildFeatureType(); lakeViewPkSchema = tb.retype(lakeViewSchema, new String[] {ID, GEOM, NAME}); }