org.loom.addons.autocompleter
Class AbstractAutocompletedConverter
java.lang.Object
org.loom.converter.AbstractConverter
org.loom.addons.autocompleter.AbstractAutocompletedConverter
- All Implemented Interfaces:
- Converter, FormInputDecorator
- Direct Known Subclasses:
- AutocompletedConverter, MultipleAutocompletedConverter
public abstract class AbstractAutocompletedConverter
- extends AbstractConverter
Common code for single and multiple-valued autocompleted converters
- Author:
- icoloma
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAutocompletedConverter
protected AbstractAutocompletedConverter()
retrieveEntity
protected java.lang.Object retrieveEntity(java.lang.String propertyValue)
throws javax.persistence.NoResultException
- Parameters:
propertyValue - the value of the autocompleted property
- Returns:
- the persistent instance found with the provided value.
- Throws:
javax.persistence.NoResultException - if no entity with that value could be found
setPersistentClass
public void setPersistentClass(java.lang.Class<?> persistentClass)
setPropertyName
public void setPropertyName(java.lang.String propertyName)
getQuery
public java.lang.String getQuery()
setQuery
public void setQuery(java.lang.String query)
getPersistentClass
public java.lang.Class<?> getPersistentClass()
getPropertyName
public java.lang.String getPropertyName()
getPropertyWrapper
public PropertyWrapper getPropertyWrapper()
setTransactionalService
public void setTransactionalService(ExtendedEntityManager entityManager)
The Loom Framework 1.6-SNAPSHOT.
Licensed under the Apache License, Version 2.0 by Extrema Sistemas de Informacion S.L.