public class JavaBeanMetadataProcessor extends Object implements MetadataProcessor<ObjectConnection>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
classObjectColumn |
static String |
GET |
static String |
IS |
protected boolean |
materializedSource |
static String |
OBJECT_COL_SUFFIX |
static String |
OBJECT_URI |
protected Method |
pkMethod |
static String |
PRIMARY_TABLE_PROPERTY |
protected Table |
rootTable |
static String |
SET |
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<?> type,
String attributeName,
String nis,
Column.SearchType searchType,
Table entityTable,
boolean selectable,
BaseColumn.NullType nt,
boolean updatable,
ObjectConnection conn) |
protected String |
getTableName(Class<?> entity)
Call to get the name of table based on the
Class entity |
boolean |
isClassObjectColumn() |
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) |
void |
setClassObjectColumn(boolean classObjectAsColumn) |
public static final String OBJECT_URI
@ExtensionMetadataProperty(applicable=Table.class, datatype=java.lang.String.class, display="Primary Table", description="Indicates the primary table that this staging table is used for", required=true) public static final String PRIMARY_TABLE_PROPERTY
public static final String GET
public static final String SET
public static final String IS
public static final String VIEWTABLE_SUFFIX
public static final String OBJECT_COL_SUFFIX
protected boolean classObjectColumn
protected boolean useAnnotations
protected Table rootTable
protected Method pkMethod
protected boolean materializedSource
public JavaBeanMetadataProcessor(boolean useAnnotations)
@TranslatorProperty(display="Class Object As Column", category=IMPORT, description="If true, and when the translator provides the metadata, a column of object data type will be created that represents the stored object in the cache", advanced=true) public boolean isClassObjectColumn()
public void setClassObjectColumn(boolean classObjectAsColumn)
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 Column addColumn(MetadataFactory mf, Class<?> type, String attributeName, String nis, Column.SearchType searchType, Table entityTable, boolean selectable, BaseColumn.NullType nt, boolean updatable, ObjectConnection conn)
Copyright © 2017 JBoss by Red Hat. All rights reserved.