public class IndexProcessor extends AbstractEntityFieldProcessor
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log
the log used by this class.
|
kunderaMetadata, validator| Constructor and Description |
|---|
IndexProcessor(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,PropertyIndex> |
getIndexesOnEmbeddable(Class<?> entityClazz)
Returns list of indexed columns on
@Embeddable entity |
private static void |
getPropertyIndexes(Class<?> entityClazz,
Map<String,PropertyIndex> pis,
List<String> columnsNameToBeIndexed,
Map<String,Index> columnsToBeIndexed) |
private static PropertyIndex |
populatePropertyIndex(String indexName,
String indexType,
Integer max,
Integer min,
Field f) |
private String |
prepareCompositeIndexName(String indexedColumns,
javax.persistence.metamodel.EntityType entityType,
EntityMetadata metadata)
prepare composite index.
|
void |
process(Class<?> clazz,
EntityMetadata metadata)
Process.
|
getValidJPAColumnName, populateIdAccessorMethods, validatepublic IndexProcessor(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
public final void process(Class<?> clazz, EntityMetadata metadata)
MetadataProcessorclazz - the clazzmetadata - the metadataprivate static PropertyIndex populatePropertyIndex(String indexName, String indexType, Integer max, Integer min, Field f)
indexedColumn - f - public static Map<String,PropertyIndex> getIndexesOnEmbeddable(Class<?> entityClazz)
@Embeddable entityentityMetadata - entity metadataprivate static void getPropertyIndexes(Class<?> entityClazz, Map<String,PropertyIndex> pis, List<String> columnsNameToBeIndexed, Map<String,Index> columnsToBeIndexed)
entityClazz - pis - columnsNameToBeIndexed - columnsToBeIndexed - private String prepareCompositeIndexName(String indexedColumns, javax.persistence.metamodel.EntityType entityType, EntityMetadata metadata)
indexedColumns - entityType - Copyright © 2015. All Rights Reserved.