public class JavaBeanMetadataProcessor extends Object implements MetadataProcessor<ObjectConnection>
| Modifier and Type | Field and Description |
|---|---|
static String |
GET |
static String |
IS |
protected boolean |
isUpdatable |
static String |
OBJECT_COL_SUFFIX |
protected boolean |
useAnnotations |
static String |
VIEWTABLE_SUFFIX |
| Constructor and Description |
|---|
JavaBeanMetadataProcessor(boolean useAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
protected Column |
addColumn(MetadataFactory mf,
Class<?> entity,
Class<?> type,
String attributeName,
String nis,
Column.SearchType searchType,
Table entityTable,
boolean selectable,
BaseColumn.NullType nt,
boolean updatable) |
protected String |
getTableName(Class<?> entity)
Call to get the name of table based on the
Class entity |
protected boolean |
isFieldSearchable(Class<?> entity,
Field f) |
protected boolean |
isMethodSearchable(Class<?> entity,
Method m) |
protected boolean |
isValueRequired(Field f) |
protected boolean |
isValueRequired(Method m) |
void |
process(MetadataFactory mf,
ObjectConnection conn) |
protected void |
setIsUpdateable(boolean isUpdateable) |
public static final String GET
public static final String IS
public static final String VIEWTABLE_SUFFIX
public static final String OBJECT_COL_SUFFIX
protected boolean isUpdatable
protected boolean useAnnotations
public JavaBeanMetadataProcessor(boolean useAnnotations)
public void process(MetadataFactory mf, ObjectConnection conn) throws TranslatorException
process in interface MetadataProcessor<ObjectConnection>TranslatorExceptionprotected boolean isValueRequired(Method m)
protected boolean isValueRequired(Field f)
protected String getTableName(Class<?> entity)
Class entityentity - protected void setIsUpdateable(boolean isUpdateable)
protected Column addColumn(MetadataFactory mf, Class<?> entity, Class<?> type, String attributeName, String nis, Column.SearchType searchType, Table entityTable, boolean selectable, BaseColumn.NullType nt, boolean updatable)
Copyright © 2016 JBoss by Red Hat. All rights reserved.