org.springframework.data.repository.support
Class DomainClassPropertyEditor<T,ID extends java.io.Serializable>
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.repository.support.DomainClassPropertyEditor<T,ID>
- All Implemented Interfaces:
- java.beans.PropertyEditor
public class DomainClassPropertyEditor<T,ID extends java.io.Serializable>
- extends java.beans.PropertyEditorSupport
Generic PropertyEditor
to map entities handled by a CrudRepository
to their id's and vice versa.
- Author:
- Oliver Gierke
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DomainClassPropertyEditor
public DomainClassPropertyEditor(CrudRepository<T,ID> repository,
EntityInformation<T,ID> information,
org.springframework.beans.PropertyEditorRegistry registry)
- Creates a new
DomainClassPropertyEditor
for the given CrudRepository
, EntityInformation
and
PropertyEditorRegistry
.
- Parameters:
repository
- must not be null.information
- must not be null.registry
- must not be null.
setAsText
public void setAsText(java.lang.String idAsString)
- Specified by:
setAsText
in interface java.beans.PropertyEditor
- Overrides:
setAsText
in class java.beans.PropertyEditorSupport
getAsText
public java.lang.String getAsText()
- Specified by:
getAsText
in interface java.beans.PropertyEditor
- Overrides:
getAsText
in class java.beans.PropertyEditorSupport
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2012. All Rights Reserved.