test_class.file: plugin/layer-hibernate/hibernate/src/test/java/org/geomajas/layer/hibernate/HibernateLayerTest.java
test_class.identifier: HibernateLayerTest
test_class.superclass: extends AbstractHibernateLayerModelTest
test_case.body: @Test
  	public void testUpdate() throws Exception {
  		HibernateTestFeature f1 = (HibernateTestFeature) layer.create(HibernateTestFeature.getDefaultInstance1(null));
  		Assert.assertNotNull(f1.getId());
  		Object feature = layer.read(f1.getId().toString());
  		Assert.assertNotNull("The requested feature could not be found!", feature);
  
  		// Create a detached copy
  		HibernateTestFeature detached = HibernateTestFeature.getDefaultInstance1(null);
  		detached.setId(((HibernateTestFeature) feature).getId());
  		Map<String, Attribute> attributes = new HashMap<String, Attribute>();
  		attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
  		attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5f));
  		Calendar c = Calendar.getInstance();
  		attributes.put(PARAM_DATE_ATTR, new DateAttribute(c.getTime()));
  		attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(false));
  
  		// Set a ManyToOne attribute without an ID (a new one)
  		attributes.put(PARAM_MANY_TO_ONE, HibernateTestManyToOne.getDefaultAttributeInstance1(null));
  
  		layer.getFeatureModel().setAttributes(detached, attributes);
  		layer.saveOrUpdate(detached);
  
  		feature = layer.read(f1.getId().toString());
  		Assert.assertEquals("new name", layer.getFeatureModel().getAttribute(feature, PARAM_TEXT_ATTR).getValue());
  		Assert.assertEquals(5f, layer.getFeatureModel().getAttribute(feature, PARAM_FLOAT_ATTR).getValue());
  		Assert.assertEquals(c.getTime(), layer.getFeatureModel().getAttribute(feature, PARAM_DATE_ATTR).getValue());
  		Assert.assertEquals(false, layer.getFeatureModel().getAttribute(feature, PARAM_BOOLEAN_ATTR).getValue());
  		ManyToOneAttribute manytoOne = (ManyToOneAttribute) layer.getFeatureModel().getAttribute(feature,
  				PARAM_MANY_TO_ONE);
  		Assert.assertNotNull(manytoOne.getValue());
  		Assert.assertNotNull(manytoOne.getValue().getId()); // Test for ID
  	}
test_case.class_method_signature: HibernateLayerTest.testUpdate()
test_case.full_signature: @Test public void testUpdate()
test_case.identifier: testUpdate
test_case.invocations: create getDefaultInstance1 assertNotNull getId read toString getId assertNotNull getDefaultInstance1 setId getId put put getInstance put getTime put put getDefaultAttributeInstance1 setAttributes getFeatureModel saveOrUpdate read toString getId assertEquals getValue getAttribute getFeatureModel assertEquals getValue getAttribute getFeatureModel assertEquals getTime getValue getAttribute getFeatureModel assertEquals getValue getAttribute getFeatureModel getAttribute getFeatureModel assertNotNull getValue assertNotNull getId getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdate()
focal_class.declarator: featureModel
focal_class.modifier: private
focal_class.original_string: private FeatureModel featureModel;
focal_class.type: FeatureModel
focal_class.var_name: featureModel
focal_class.declarator: scrollableResultSet
focal_class.modifier: private
focal_class.original_string: private boolean scrollableResultSet;
focal_class.type: boolean
focal_class.var_name: scrollableResultSet
focal_class.declarator: dateFormat = new SimpleDateFormat("dd/MM/yyyy")
focal_class.modifier: private
focal_class.original_string: private DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
focal_class.type: DateFormat
focal_class.var_name: dateFormat
focal_class.declarator: filterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private FilterService filterService;
focal_class.type: FilterService
focal_class.var_name: filterService
focal_class.declarator: converterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService converterService;
focal_class.type: DtoConverterService
focal_class.var_name: converterService
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.declarator: applicationContext
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: crs
focal_class.modifier: private
focal_class.original_string: private CoordinateReferenceSystem crs;
focal_class.type: CoordinateReferenceSystem
focal_class.var_name: crs
focal_class.declarator: srid
focal_class.modifier: private
focal_class.original_string: private int srid;
focal_class.type: int
focal_class.var_name: srid
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: useLazyFeatureConversion = true
focal_class.modifier: private
focal_class.original_string: private boolean useLazyFeatureConversion = true;
focal_class.type: boolean
focal_class.var_name: useLazyFeatureConversion
focal_class.file: plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/HibernateLayer.java
focal_class.identifier: HibernateLayer
focal_class.interfaces: implements VectorLayer, VectorLayerAssociationSupport,
  		VectorLayerLazyFeatureConversionSupport
focal_class.class_method_signature: HibernateLayer.getId()
focal_class.full_signature: @Override public String getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: HibernateLayer.setId(String id)
focal_class.full_signature: @Api public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: @Api public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: HibernateLayer.getCrs()
focal_class.full_signature: @Override public CoordinateReferenceSystem getCrs()
focal_class.identifier: getCrs
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CoordinateReferenceSystem
focal_class.signature: CoordinateReferenceSystem getCrs()
focal_class.class_method_signature: HibernateLayer.getFeatureModel()
focal_class.full_signature: @Override public FeatureModel getFeatureModel()
focal_class.identifier: getFeatureModel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: FeatureModel
focal_class.signature: FeatureModel getFeatureModel()
focal_class.class_method_signature: HibernateLayer.useLazyFeatureConversion()
focal_class.full_signature: @Override public boolean useLazyFeatureConversion()
focal_class.identifier: useLazyFeatureConversion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean useLazyFeatureConversion()
focal_class.class_method_signature: HibernateLayer.setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.full_signature: @Api public void setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.identifier: setUseLazyFeatureConversion
focal_class.modifiers: @Api public
focal_class.parameters: (boolean useLazyFeatureConversion)
focal_class.return: void
focal_class.signature: void setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.class_method_signature: HibernateLayer.setLayerInfo(VectorLayerInfo layerInfo)
focal_class.full_signature: @Api @Override public void setLayerInfo(VectorLayerInfo layerInfo)
focal_class.identifier: setLayerInfo
focal_class.modifiers: @Api @Override public
focal_class.parameters: (VectorLayerInfo layerInfo)
focal_class.return: void
focal_class.signature: void setLayerInfo(VectorLayerInfo layerInfo)
focal_class.class_method_signature: HibernateLayer.postConstruct()
focal_class.full_signature: @PostConstruct @SuppressWarnings("unused") protected void postConstruct()
focal_class.identifier: postConstruct
focal_class.modifiers: @PostConstruct @SuppressWarnings("unused") protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void postConstruct()
focal_class.class_method_signature: HibernateLayer.isCreateCapable()
focal_class.full_signature: @Override public boolean isCreateCapable()
focal_class.identifier: isCreateCapable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCreateCapable()
focal_class.class_method_signature: HibernateLayer.isUpdateCapable()
focal_class.full_signature: @Override public boolean isUpdateCapable()
focal_class.identifier: isUpdateCapable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isUpdateCapable()
focal_class.class_method_signature: HibernateLayer.isDeleteCapable()
focal_class.full_signature: @Override public boolean isDeleteCapable()
focal_class.identifier: isDeleteCapable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDeleteCapable()
focal_class.class_method_signature: HibernateLayer.setFeatureModel(FeatureModel featureModel)
focal_class.full_signature: @Api public void setFeatureModel(FeatureModel featureModel)
focal_class.identifier: setFeatureModel
focal_class.modifiers: @Api public
focal_class.parameters: (FeatureModel featureModel)
focal_class.return: void
focal_class.signature: void setFeatureModel(FeatureModel featureModel)
focal_class.class_method_signature: HibernateLayer.setSessionFactory(SessionFactory sessionFactory)
focal_class.full_signature: @Api public void setSessionFactory(SessionFactory sessionFactory)
focal_class.identifier: setSessionFactory
focal_class.modifiers: @Api public
focal_class.parameters: (SessionFactory sessionFactory)
focal_class.return: void
focal_class.signature: void setSessionFactory(SessionFactory sessionFactory)
focal_class.class_method_signature: HibernateLayer.getElements(Filter filter, int offset, int maxResultSize)
focal_class.full_signature: public Iterator<?> getElements(Filter filter, int offset, int maxResultSize)
focal_class.identifier: getElements
focal_class.modifiers: public
focal_class.parameters: (Filter filter, int offset, int maxResultSize)
focal_class.return: Iterator<?>
focal_class.signature: Iterator<?> getElements(Filter filter, int offset, int maxResultSize)
focal_class.class_method_signature: HibernateLayer.create(Object feature)
focal_class.full_signature: @Override public Object create(Object feature)
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: (Object feature)
focal_class.return: Object
focal_class.signature: Object create(Object feature)
focal_class.class_method_signature: HibernateLayer.saveOrUpdate(Object feature)
focal_class.full_signature: @Override public Object saveOrUpdate(Object feature)
focal_class.identifier: saveOrUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (Object feature)
focal_class.return: Object
focal_class.signature: Object saveOrUpdate(Object feature)
focal_class.class_method_signature: HibernateLayer.delete(String featureId)
focal_class.full_signature: @Override public void delete(String featureId)
focal_class.identifier: delete
focal_class.modifiers: @Override public
focal_class.parameters: (String featureId)
focal_class.return: void
focal_class.signature: void delete(String featureId)
focal_class.class_method_signature: HibernateLayer.read(String featureId)
focal_class.full_signature: @Override public Object read(String featureId)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (String featureId)
focal_class.return: Object
focal_class.signature: Object read(String featureId)
focal_class.class_method_signature: HibernateLayer.update(Object feature)
focal_class.full_signature: public void update(Object feature)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (Object feature)
focal_class.return: void
focal_class.signature: void update(Object feature)
focal_class.class_method_signature: HibernateLayer.getBounds()
focal_class.full_signature: @Override public Envelope getBounds()
focal_class.identifier: getBounds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Envelope
focal_class.signature: Envelope getBounds()
focal_class.class_method_signature: HibernateLayer.getBounds(Filter filter)
focal_class.full_signature: public Envelope getBounds(Filter filter)
focal_class.identifier: getBounds
focal_class.modifiers: public
focal_class.parameters: (Filter filter)
focal_class.return: Envelope
focal_class.signature: Envelope getBounds(Filter filter)
focal_class.class_method_signature: HibernateLayer.getAttributes(String attributeName, Filter filter)
focal_class.full_signature: @Override public List<Attribute<?>> getAttributes(String attributeName, Filter filter)
focal_class.identifier: getAttributes
focal_class.modifiers: @Override public
focal_class.parameters: (String attributeName, Filter filter)
focal_class.return: List<Attribute<?>>
focal_class.signature: List<Attribute<?>> getAttributes(String attributeName, Filter filter)
focal_class.class_method_signature: HibernateLayer.getDateFormat()
focal_class.full_signature: public DateFormat getDateFormat()
focal_class.identifier: getDateFormat
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DateFormat
focal_class.signature: DateFormat getDateFormat()
focal_class.class_method_signature: HibernateLayer.setDateFormat(DateFormat dateFormat)
focal_class.full_signature: public void setDateFormat(DateFormat dateFormat)
focal_class.identifier: setDateFormat
focal_class.modifiers: public
focal_class.parameters: (DateFormat dateFormat)
focal_class.return: void
focal_class.signature: void setDateFormat(DateFormat dateFormat)
focal_class.class_method_signature: HibernateLayer.isScrollableResultSet()
focal_class.full_signature: public boolean isScrollableResultSet()
focal_class.identifier: isScrollableResultSet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isScrollableResultSet()
focal_class.class_method_signature: HibernateLayer.setScrollableResultSet(boolean scrollableResultSet)
focal_class.full_signature: @Api public void setScrollableResultSet(boolean scrollableResultSet)
focal_class.identifier: setScrollableResultSet
focal_class.modifiers: @Api public
focal_class.parameters: (boolean scrollableResultSet)
focal_class.return: void
focal_class.signature: void setScrollableResultSet(boolean scrollableResultSet)
focal_class.class_method_signature: HibernateLayer.enforceSrid(Object feature)
focal_class.full_signature: private void enforceSrid(Object feature)
focal_class.identifier: enforceSrid
focal_class.modifiers: private
focal_class.parameters: (Object feature)
focal_class.return: void
focal_class.signature: void enforceSrid(Object feature)
focal_class.class_method_signature: HibernateLayer.getBoundsLocal(Filter filter)
focal_class.full_signature: private Envelope getBoundsLocal(Filter filter)
focal_class.identifier: getBoundsLocal
focal_class.modifiers: private
focal_class.parameters: (Filter filter)
focal_class.return: Envelope
focal_class.signature: Envelope getBoundsLocal(Filter filter)
focal_class.class_method_signature: HibernateLayer.getFeature(String featureId)
focal_class.full_signature: private Object getFeature(String featureId)
focal_class.identifier: getFeature
focal_class.modifiers: private
focal_class.parameters: (String featureId)
focal_class.return: Object
focal_class.signature: Object getFeature(String featureId)
focal_class.class_method_signature: HibernateLayer.getRecursiveAttributeInfo(String name, List<AttributeInfo> infos)
focal_class.full_signature: private AssociationAttributeInfo getRecursiveAttributeInfo(String name, List<AttributeInfo> infos)
focal_class.identifier: getRecursiveAttributeInfo
focal_class.modifiers: private
focal_class.parameters: (String name, List<AttributeInfo> infos)
focal_class.return: AssociationAttributeInfo
focal_class.signature: AssociationAttributeInfo getRecursiveAttributeInfo(String name, List<AttributeInfo> infos)
focal_class.superclass: extends HibernateLayerUtil
focal_method.body: public void update(Object feature) throws LayerException {
  		Session session = getSessionFactory().getCurrentSession();
  		session.update(feature);
  	}
focal_method.class_method_signature: HibernateLayer.update(Object feature)
focal_method.full_signature: public void update(Object feature)
focal_method.identifier: update
focal_method.invocations: getCurrentSession getSessionFactory update
focal_method.modifiers: public
focal_method.parameters: (Object feature)
focal_method.return: void
focal_method.signature: void update(Object feature)