public abstract class AbstractEntityFieldProcessor extends Object implements MetadataProcessor
| Modifier and Type | Field and Description |
|---|---|
protected EntityManagerFactoryImpl.KunderaMetadata |
kunderaMetadata |
private static org.slf4j.Logger |
log
The Constant log.
|
protected EntityValidator |
validator
The Validator.
|
| Constructor and Description |
|---|
AbstractEntityFieldProcessor(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getValidJPAColumnName(Class<?> entity,
Field f)
Gets the valid jpa column name.
|
protected void |
populateIdAccessorMethods(EntityMetadata metadata,
Class<?> clazz,
Field f)
Populates @Id accesser methods like, getId and setId of clazz to
metadata.
|
void |
validate(Class<?> clazz)
Validate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessprivate static final org.slf4j.Logger log
protected EntityValidator validator
protected EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata
public AbstractEntityFieldProcessor(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
public final void validate(Class<?> clazz) throws javax.persistence.PersistenceException
clazz - the clazzjavax.persistence.PersistenceException - the persistence exceptionprotected final String getValidJPAColumnName(Class<?> entity, Field f)
entity - the entityf - the fprotected final void populateIdAccessorMethods(EntityMetadata metadata, Class<?> clazz, Field f)
metadata - the metadataclazz - the clazzf - the fCopyright © 2015. All Rights Reserved.