Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.data.repository.support
Class DomainClassPropertyEditor<T,ID extends Serializable>

    java.lang.Object
      java.beans.PropertyEditorSupport
          org.springframework.data.repository.support.DomainClassPropertyEditor<T,ID>

All Implemented Interfaces:
  PropertyEditor

    public class DomainClassPropertyEditor<T,ID extends Serializable>

extends PropertyEditorSupport

Generic `PropertyEditor` to map entities handled by a `CrudRepository` to their id's and vice versa.

Author:
  Oliver Gierke

Constructor Summary
`DomainClassPropertyEditor(CrudRepository<T,ID> repository, EntityInformation<T,ID> information, PropertyEditorRegistry registry)` Creates a new `DomainClassPropertyEditor` for the given `CrudRepository`, `EntityInformation` and `PropertyEditorRegistry`.

Method Summary
`boolean` | `equals(Object obj)`
`String` | `getAsText()`
`int` | `hashCode()`
`void` | `setAsText(String idAsString)`

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`

Constructor Detail

### DomainClassPropertyEditor

    public DomainClassPropertyEditor(CrudRepository<T,ID> repository,
                                     EntityInformation<T,ID> information,
                                     PropertyEditorRegistry registry)

  Creates a new `DomainClassPropertyEditor` for the given `CrudRepository`, `EntityInformation` and `PropertyEditorRegistry`.

  Parameters:
    `repository` -
    `information` -
    `registry` -

Method Detail

### setAsText

    public void setAsText(String idAsString)
                   throws IllegalArgumentException

  Specified by:
    `setAsText` in interface `PropertyEditor`
  Overrides:
    `setAsText` in class `PropertyEditorSupport`
  Throws:
    `IllegalArgumentException`

### getAsText

    public String getAsText()

  Specified by:
    `getAsText` in interface `PropertyEditor`
  Overrides:
    `getAsText` in class `PropertyEditorSupport`

### equals

    public boolean equals(Object obj)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.