public class CrudAccessor extends AbstractAnnotatedAccessor implements ClassAccessor
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected CrudConfiguration |
crudConfiguration |
protected CrudPropertyAccessor[] |
keyPropertyAccessors |
static org.slf4j.Logger |
logger |
protected ClassAccessor |
nestedAccessor |
protected CrudPropertyAccessor[] |
propertyAccessors |
annotations
Constructor and Description |
---|
CrudAccessor(CrudConfiguration crudConfiguration,
ClassAccessor nestedAccessor) |
Modifier and Type | Method and Description |
---|---|
static CrudProperty |
findCrudPropertyByName(CrudConfiguration crudConfiguration,
String propertyName) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
CrudConfiguration |
getCrudConfiguration() |
PropertyAccessor[] |
getKeyProperties() |
String |
getName() |
PropertyAccessor[] |
getProperties() |
CrudPropertyAccessor |
getProperty(String propertyName) |
Class<?> |
getType()
The type of the objects this accessor can operate on.
|
Object |
newInstance() |
getDeclaredAnnotations, isAnnotationPresent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaredAnnotations, isAnnotationPresent
public static final String copyright
protected final CrudConfiguration crudConfiguration
protected final ClassAccessor nestedAccessor
protected final CrudPropertyAccessor[] propertyAccessors
protected final CrudPropertyAccessor[] keyPropertyAccessors
public static final org.slf4j.Logger logger
public CrudAccessor(@NotNull CrudConfiguration crudConfiguration, @NotNull ClassAccessor nestedAccessor)
public static CrudProperty findCrudPropertyByName(CrudConfiguration crudConfiguration, String propertyName)
public String getName()
getName
in interface ClassAccessor
public Class<?> getType()
ClassAccessor
getType
in interface ClassAccessor
public CrudPropertyAccessor getProperty(String propertyName) throws NoSuchFieldException
getProperty
in interface ClassAccessor
NoSuchFieldException
public PropertyAccessor[] getProperties()
getProperties
in interface ClassAccessor
public PropertyAccessor[] getKeyProperties()
getKeyProperties
in interface ClassAccessor
public Object newInstance()
newInstance
in interface ClassAccessor
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
getAnnotation
in class AbstractAnnotatedAccessor
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
getAnnotations
in class AbstractAnnotatedAccessor
public CrudConfiguration getCrudConfiguration()