@Test public void getGeometry() { }
@Override public Geometry getGeometry(Object feature) throws LayerException { Object obj = getAttributeRecursively(feature, getGeometryAttributeName()); if (obj == null) { return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public Geometry getGeometry(Object feature) throws LayerException { Object obj = getAttributeRecursively(feature, getGeometryAttributeName()); if (obj == null) { return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } } }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public Geometry getGeometry(Object feature) throws LayerException { Object obj = getAttributeRecursively(feature, getGeometryAttributeName()); if (obj == null) { return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } }  }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public Geometry getGeometry(Object feature) throws LayerException { Object obj = getAttributeRecursively(feature, getGeometryAttributeName()); if (obj == null) { return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } }  @Override void setLayerInfo(VectorLayerInfo layerInfo); @Override Attribute getAttribute(Object feature, String name); @Override @SuppressWarnings("rawtypes") Map<String, Attribute> getAttributes(Object feature); @Override String getId(Object feature); @Override Geometry getGeometry(Object feature); @Override @SuppressWarnings("unchecked") void setAttributes(Object feature, Map<String, Attribute> attributes); @Override void setGeometry(Object feature, Geometry geometry); @Override Object newInstance(); @Override Object newInstance(String id); @Override int getSrid(); @Override String getGeometryAttributeName(); @Override boolean canHandle(Object feature); }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public Geometry getGeometry(Object feature) throws LayerException { Object obj = getAttributeRecursively(feature, getGeometryAttributeName()); if (obj == null) { return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } }  @Override void setLayerInfo(VectorLayerInfo layerInfo); @Override Attribute getAttribute(Object feature, String name); @Override @SuppressWarnings("rawtypes") Map<String, Attribute> getAttributes(Object feature); @Override String getId(Object feature); @Override Geometry getGeometry(Object feature); @Override @SuppressWarnings("unchecked") void setAttributes(Object feature, Map<String, Attribute> attributes); @Override void setGeometry(Object feature, Geometry geometry); @Override Object newInstance(); @Override Object newInstance(String id); @Override int getSrid(); @Override String getGeometryAttributeName(); @Override boolean canHandle(Object feature);  }