| Modifier and Type | Method and Description |
|---|---|
protected void |
ClientBase.indexNode(Node node,
EntityMetadata entityMetadata) |
protected abstract void |
ClientBase.onPersist(EntityMetadata entityMetadata,
Object entity,
Object id,
List<RelationHolder> rlHolders)
Method to be implemented by inherited classes.
|
protected void |
ClientBase.unIndexNode(EntityMetadata metadata,
Object entity,
Object pKey) |
| Modifier and Type | Method and Description |
|---|---|
private Map<String,EntityMetadata> |
SchemaConfiguration.getEntityMetadataCol(ApplicationMetadata appMetadata,
String persistenceUnit)
Returns map of entity metdata
EntityMetadata. |
| Modifier and Type | Method and Description |
|---|---|
private void |
SchemaConfiguration.addColumnToTableInfo(EntityMetadata entityMetadata,
EntityMetadata.Type type,
TableInfo tableInfo)
Adds column to table info of entity.
|
private void |
SchemaConfiguration.addJoinColumnToInfo(String joinColumn,
TableInfo targetTableInfo,
List<TableInfo> targetTableInfos,
EntityMetadata m)
adds join column name to the table Info of entity.
|
private void |
SchemaConfiguration.addTableGenerator(ApplicationMetadata appMetadata,
String persistenceUnit,
List<TableInfo> tableInfos,
EntityMetadata entityMetadata)
Add tableGenerator to table info.
|
private void |
SchemaConfiguration.parseRelations(String persistenceUnit,
List<TableInfo> tableInfos,
EntityMetadata entityMetadata,
TableInfo tableInfo,
List<Relation> relations)
parse the relations of entites .
|
private void |
MetamodelConfiguration.processGeneratedValueAnnotation(Class<?> clazz,
String persistenceUnit,
EntityMetadata m,
Map<String,IdDiscriptor> entityNameToKeyDiscriptorMap) |
| Modifier and Type | Method and Description |
|---|---|
private List<Class<?>> |
MetamodelConfiguration.scanClassAndPutMetadata(InputStream bits,
Reader reader,
Map<String,EntityMetadata> entityMetadataMap,
Map<String,Class<?>> entityNameToClassMap,
String persistenceUnit,
String client,
Map<String,List<String>> clazzToPuMap,
Map<String,IdDiscriptor> entityNameToKeyDiscriptorMap)
Scan class and put metadata.
|
| Modifier and Type | Field and Description |
|---|---|
private EntityMetadata |
GraphBuilder.RelationBuilder.metadata |
| Modifier and Type | Method and Description |
|---|---|
(package private) GraphBuilder.RelationBuilder |
GraphBuilder.RelationBuilder.assignResources(PersistenceDelegator pd,
PersistenceCache pc,
EntityMetadata metadata)
Assign relation builder resources
|
private NodeState |
ObjectGraphBuilder.getChildNodeState(EntityMetadata metadata,
Object childObj) |
private Map<NodeLink.LinkProperty,Object> |
ObjectGraphBuilder.getLinkProperties(EntityMetadata metadata,
Relation relation) |
private Map<NodeLink.LinkProperty,Object> |
GraphGenerator.getLinkProperties(EntityMetadata metadata,
Relation relation,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
(package private) void |
GraphGenerator.onBuildChildNode(Object childObject,
EntityMetadata childMetadata,
PersistenceDelegator delegator,
PersistenceCache pc,
Node node,
Relation relation)
On building child node
|
private Object |
GraphGenerator.onIfSharedByPK(Relation relation,
Object childObject,
EntityMetadata childMetadata,
Object entityId)
Check and set if relation is set via primary key.
|
private void |
Node.onPostEvent(EntityMetadata metadata,
Node.EntityEvent event) |
private void |
Node.onPreEvent(EntityMetadata metadata,
Node.EntityEvent event) |
| Modifier and Type | Method and Description |
|---|---|
void |
Indexer.index(Class entityClazz,
EntityMetadata entityMetadata,
Map<String,Object> values,
Object parentId,
Class parentClazz)
Index a document for given entity class and collection of values.
|
void |
IndexManager.remove(EntityMetadata metadata,
Object entity,
Object key)
Removes an object from Index.
|
Map<String,Object> |
Indexer.search(Class<?> clazz,
EntityMetadata m,
String luceneQuery,
int start,
int count)
Deprecated.
|
Map<String,Object> |
IndexManager.search(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery,
PersistenceDelegator persistenceDelegator,
EntityMetadata m,
int maxResults) |
Map<String,Object> |
Indexer.search(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery,
PersistenceDelegator persistenceDelegator,
EntityMetadata m,
int maxResults) |
Map<String,Object> |
Indexer.search(String query,
Class<?> parentClass,
EntityMetadata parentMetadata,
Class<?> childClass,
EntityMetadata childMetadata,
Object entityId,
int start,
int count)
Searches into a secondary index
|
void |
Indexer.unIndex(Class entityClazz,
Object entity,
EntityMetadata entityMetadata,
MetamodelImpl metamodel)
Deletes index for given entity class.
|
void |
IndexManager.update(EntityMetadata metadata,
Object entity,
Object parentId,
Class<?> clazz)
Updates the index for an object.
|
void |
IndexManager.write(EntityMetadata metadata,
Object entity)
Indexes an object.
|
void |
IndexManager.write(EntityMetadata metadata,
Object entity,
String parentId,
Class<?> clazz)
Indexes an object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Indexer.documentExistsInIndex(EntityMetadata metadata,
Object id,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
boolean isEmbeddedId,
Class<?> parentClazz) |
boolean |
Indexer.entityExistsInIndex(Class<?> entityClass,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
EntityMetadata metadata) |
void |
Indexer.index(EntityMetadata metadata,
MetamodelImpl metaModel,
Object object)
Indexes and object.
|
void |
Indexer.index(EntityMetadata metadata,
MetamodelImpl metaModel,
Object object,
String parentId,
Class<?> clazz)
Indexes and object.
|
Map<String,Object> |
Indexer.search(String luceneQuery,
int start,
int count,
boolean fetchRelation,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
EntityMetadata metadata)
Searches for an object.
|
void |
Indexer.unindex(EntityMetadata metadata,
Object id,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
Class<?> parentClazz)
Unindexed an entity with key:id.
|
void |
Indexer.update(EntityMetadata metadata,
MetamodelImpl metaModel,
Object entity,
Object id,
String parentId)
Updates the existing document.
|
| Modifier and Type | Method and Description |
|---|---|
private EntityMetadata |
MetadataBuilder.belongsToPersistenceUnit(EntityMetadata metadata)
If parameterised metadata is not for intended persistence unit, assign it
to null.
|
EntityMetadata |
MetadataBuilder.buildEntityMetadata(Class<?> clazz)
Process.
|
static EntityMetadata |
KunderaMetadataManager.getEntityMetadata(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
Class entityClass)
Finds ands returns Entity metadata for a given array of PUs.
|
static EntityMetadata |
KunderaMetadataManager.getEntityMetadata(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
String persistenceUnit,
Class entityClass)
Gets the entity metadata.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
MetadataBuilder.applyMetadataChanges(EntityMetadata metadata) |
private EntityMetadata |
MetadataBuilder.belongsToPersistenceUnit(EntityMetadata metadata)
If parameterised metadata is not for intended persistence unit, assign it
to null.
|
static boolean |
MetadataUtils.containsBasicElementCollectionField(EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Checks whether an entity with given metadata contains a collection field
|
static Map<String,Field> |
MetadataUtils.createColumnsFieldMap(EntityMetadata m,
javax.persistence.metamodel.EmbeddableType superColumn)
Creates the columns field map.
|
static Map<String,Field> |
MetadataUtils.createSuperColumnsFieldMap(EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Creates the super columns field map.
|
private static void |
MetadataUtils.getEmbeddableType(EntityMetadata m,
Map<String,Field> columnNameToFieldMap,
Map<String,Field> superColumnNameToFieldMap,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
static String |
MetadataUtils.getEnclosingEmbeddedFieldName(EntityMetadata m,
String criteria,
boolean viaColumnName,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Gets the enclosing document name.
|
static String |
MetadataUtils.getMappedName(EntityMetadata parentMetadata,
Relation relation,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Returns mapped relational name, in case of bi directional mapping, it
will return back pKey name of associated entity.
|
static void |
MetadataUtils.onJPAColumnMapping(javax.persistence.metamodel.EntityType entityType,
EntityMetadata entityMetadata) |
static void |
MetadataUtils.populateColumnAndSuperColumnMaps(EntityMetadata m,
Map<String,Field> columnNameToFieldMap,
Map<String,Field> superColumnNameToFieldMap,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Populate column and super column maps.
|
void |
MetadataProcessor.process(Class<?> clazz,
EntityMetadata metadata)
Process.
|
static void |
MetadataUtils.setSchemaAndPersistenceUnit(EntityMetadata m,
String schemaStr,
Map puProperties)
Sets the schema and persistence unit.
|
private void |
MetadataBuilder.setSchemaAndPU(Class<?> clazz,
EntityMetadata metadata) |
| Modifier and Type | Field and Description |
|---|---|
private EntityMetadata |
Relation.targetEntityMetadata
Target entity metadata.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<String,EntityMetadata> |
MetamodelImpl.entityMetadataMap
The entity metadata map.
|
| Modifier and Type | Method and Description |
|---|---|
EntityMetadata |
MetamodelImpl.getEntityMetadata(Class<?> entityClass)
Gets the entity metadata.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,EntityMetadata> |
MetamodelImpl.getEntityMetadataMap()
Gets the entity metadata map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetamodelImpl.addEntityMetadata(Class<?> clazz,
EntityMetadata entityMetadata)
Adds the entity metadata.
|
void |
ApplicationMetadata.addEntityMetadata(String persistenceUnit,
Class<?> clazz,
EntityMetadata entityMetadata)
Adds the entity metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetamodelImpl.setEntityMetadataMap(Map<String,EntityMetadata> entityMetadataMap)
Sets the entity metadata map.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
EntityListenersProcessor.addCallBackMethod(EntityMetadata metadata,
Class<?> jpaAnnotation,
CallbackMethod callbackMethod)
Adds the call back method.
|
private void |
TableProcessor.addRelationIntoMetadata(Class<?> entityClass,
Field relationField,
EntityMetadata metadata)
Adds relationship info into metadata for a given field
relationField. |
private void |
TableProcessor.onFamilyType(EntityMetadata entityMetadata,
Class clazz,
Field f)
On family type.
|
private void |
TableProcessor.onIdAttribute(MetaModelBuilder builder,
EntityMetadata entityMetadata,
Class clazz,
Field f)
On id attribute.
|
protected void |
AbstractEntityFieldProcessor.populateIdAccessorMethods(EntityMetadata metadata,
Class<?> clazz,
Field f)
Populates @Id accesser methods like, getId and setId of clazz to
metadata.
|
private <X extends Class,T> |
TableProcessor.populateMetadata(EntityMetadata metadata,
Class<X> clazz,
Map puProperties)
Populate metadata.
|
private <X> void |
TableProcessor.populateRelationMetaData(javax.persistence.metamodel.EntityType entityType,
Class<X> clazz,
EntityMetadata metadata)
Populate metadata.
|
private String |
IndexProcessor.prepareCompositeIndexName(String indexedColumns,
javax.persistence.metamodel.EntityType entityType,
EntityMetadata metadata)
prepare composite index.
|
void |
IndexProcessor.process(Class<?> clazz,
EntityMetadata metadata) |
void |
CacheableAnnotationProcessor.process(Class<?> entityClass,
EntityMetadata metadata) |
void |
EntityListenersProcessor.process(Class<?> entityClass,
EntityMetadata metadata) |
void |
GeneratedValueProcessor.process(Class<?> clazz,
Field idField,
EntityMetadata m,
Map<String,IdDiscriptor> entityNameToKeyDiscriptorMap) |
void |
TableProcessor.process(Class clazz,
EntityMetadata metadata) |
private SequenceGeneratorDiscriptor |
GeneratedValueProcessor.processSequenceGenerator(Class<?> clazz,
Field idField,
EntityMetadata m,
String generatorName) |
private TableGeneratorDiscriptor |
GeneratedValueProcessor.processTableGenerator(Class<?> clazz,
Field idField,
EntityMetadata m,
String generatorName) |
private <X,T> void |
TableProcessor.validateandSetEntityType(EntityMetadata metadata,
Class<X> clazz,
MetaModelBuilder<X,T> metaModelBuilder) |
private <X,T> void |
TableProcessor.validateAndSetId(EntityMetadata metadata,
Class<X> clazz,
MetaModelBuilder<X,T> metaModelBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
ManyToOneRelationMetadataProcessor.addRelationIntoMetadata(Field relationField,
EntityMetadata metadata) |
void |
OneToOneRelationMetadataProcessor.addRelationIntoMetadata(Field relationField,
EntityMetadata metadata) |
void |
ManyToManyRelationMetadataProcessor.addRelationIntoMetadata(Field relationField,
EntityMetadata metadata) |
void |
RelationMetadataProcessor.addRelationIntoMetadata(Field relationField,
EntityMetadata metadata)
Adds the relation into metadata.
|
void |
OneToManyRelationMetadataProcessor.addRelationIntoMetadata(Field relationField,
EntityMetadata metadata) |
void |
ManyToOneRelationMetadataProcessor.process(Class<?> clazz,
EntityMetadata metadata) |
void |
OneToOneRelationMetadataProcessor.process(Class<?> clazz,
EntityMetadata metadata) |
void |
ManyToManyRelationMetadataProcessor.process(Class<?> clazz,
EntityMetadata metadata) |
void |
OneToManyRelationMetadataProcessor.process(Class<?> clazz,
EntityMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
private EntityMetadata |
PersistenceDelegator.getMetadata(Class<?> clazz)
Gets the metadata.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
AbstractEntityReader.addToRelationStack(Map<Object,Object> relationStack,
Object entity,
EntityMetadata m) |
private Boolean |
AbstractEntityReader.existsInRelationStack(Map<Object,Object> relationStack,
Object entity,
EntityMetadata m) |
private Object |
AbstractEntityReader.fetchFromRelationStack(Map<Object,Object> relationStack,
Object entity,
EntityMetadata m) |
private List |
AbstractEntityReader.fetchRelations(Relation relation,
EntityMetadata metadata,
PersistenceDelegator pd,
Object entityId,
Object relationValue,
EntityMetadata targetEntityMetadata)
Based on relation type, method invokes database to fetch relation
entities.
|
EnhanceEntity |
EntityReader.findById(Object primaryKey,
EntityMetadata m,
Client client)
Find by id.
|
protected EnhanceEntity |
AbstractEntityReader.findById(Object primaryKey,
EntityMetadata m,
Client client)
Retrieves an entity from ID
|
Object |
IdGenerator.generateAndSetId(Object e,
EntityMetadata m,
PersistenceDelegator pd,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
private Object |
IdGenerator.generateId(Object e,
EntityMetadata m,
Client<?> client,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
Client |
PersistenceDelegator.getClient(EntityMetadata m)
Gets the client.
|
protected Object |
AbstractEntityReader.getId(Object entity,
EntityMetadata metadata)
Gets the id.
|
private Object |
AbstractEntityReader.handleAssociation(Object entity,
Map<String,Object> relationsMap,
EntityMetadata m,
PersistenceDelegator pd,
boolean lazilyloaded,
Map<Object,Object> relationStack)
Recursively fetches associated entities for a given
entity |
boolean |
PersistenceValidator.isValidEntityObject(Object entity,
EntityMetadata metadata)
Validates an entity object for CRUD operations
|
protected List<EnhanceEntity> |
AbstractEntityReader.onAssociationUsingLucene(EntityMetadata m,
Client client,
List<EnhanceEntity> ls)
On association using lucene.
|
private Object |
IdGenerator.onAutoGenerator(EntityMetadata m,
Client<?> client,
Object e)
Generate Id when given auto generation strategy.
|
private void |
AbstractEntityReader.onParseRelation(Object entity,
PersistenceDelegator pd,
EntityMetadata targetEntityMetadata,
Object relationEntity,
Relation relation,
boolean lazilyloaded,
Map<Object,Object> relationStack)
Invokes parseRelations for relation entity and set relational entity
within entity
|
private void |
AbstractEntityReader.onRelation(Object entity,
Map<String,Object> relationsMap,
EntityMetadata m,
PersistenceDelegator pd,
Relation relation,
Relation.ForeignKey relationType,
boolean lazilyloaded,
Map<Object,Object> relationStack)
Parse over each relation of fetched entity.
|
private void |
AbstractEntityReader.onRelation(Object entity,
Map<String,Object> relationsMap,
Relation relation,
EntityMetadata metadata,
PersistenceDelegator pd,
boolean lazilyloaded,
Map<Object,Object> relationStack)
Method to handle one to one association relation events.
|
private Object |
IdGenerator.onSequenceGenerator(EntityMetadata m,
Client<?> client,
IdDiscriptor keyValue,
Object e)
Generate Id when given sequence generation strategy.
|
private void |
PersistenceDelegator.onSetProxyOwners(EntityMetadata m,
Object e) |
private void |
PersistenceDelegator.onSynchronization(Node node,
EntityMetadata metadata)
If transaction is in progress and user explicitly invokes em.flush()!
|
private Object |
IdGenerator.onTableGenerator(EntityMetadata m,
Client<?> client,
IdDiscriptor keyValue,
Object e)
Generate Id when given table generation strategy.
|
private void |
AbstractEntityReader.parseRelations(Object originalEntity,
Object relationEntity,
Map<String,Object> relationsMap,
PersistenceDelegator pd,
EntityMetadata metadata,
boolean lazilyloaded,
Map<Object,Object> relationStack)
Parse relations of provided relationEntity.
|
private void |
AssociationBuilder.populateCollectionFromJoinTable(Object entity,
EntityMetadata entityMetadata,
PersistenceDelegator delegator,
Relation relation)
Populates a relationship of type
Collection (i.e. |
List<EnhanceEntity> |
EntityReader.populateRelation(EntityMetadata m,
Client client,
int maxResults)
Method responsible for reading back entity and relations using secondary
indexes(if it holds any relation), else retrieve row keys using lucene.
|
(package private) void |
AssociationBuilder.populateRelationForM2M(Object entity,
EntityMetadata entityMetadata,
PersistenceDelegator delegator,
Relation relation,
Object relObject,
Map<String,Object> relationsMap)
Populates entities related via join table for
entity |
Object |
EntityReader.recursivelyFindEntities(Object entity,
Map<String,Object> relationsMap,
EntityMetadata m,
PersistenceDelegator pd,
boolean lazilyLoaded,
Map<Object,Object> relationStack)
Returns populated entity along with all relational value.
|
Object |
AbstractEntityReader.recursivelyFindEntities(Object entity,
Map<String,Object> relationsMap,
EntityMetadata m,
PersistenceDelegator pd,
boolean lazilyLoaded,
Map<Object,Object> relationStack)
Recursively fetches associated entities for a given
entity |
void |
AssociationBuilder.setProxyRelationObject(Object entity,
Map<String,Object> relationsMap,
EntityMetadata m,
PersistenceDelegator pd,
Object entityId,
Relation relation) |
protected List<EnhanceEntity> |
AbstractEntityReader.transform(EntityMetadata m,
List<EnhanceEntity> ls,
List resultList)
Transform.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
CacheBase.getNodeFromCache(Object entity,
EntityMetadata entityMetadata,
PersistenceDelegator pd) |
| Modifier and Type | Field and Description |
|---|---|
private EntityMetadata |
InternalCallbackMethod.entityMetadata
The entity metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EntityEventDispatcher.fireEventListeners(EntityMetadata metadata,
Object entity,
Class<?> event)
Fire event listeners.
|
| Constructor and Description |
|---|
InternalCallbackMethod(EntityMetadata entityMetadata,
Method method)
Instantiates a new internal callback method.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
PropertyAccessorHelper.getId(Object entity,
EntityMetadata metadata)
Get identifier of an entity object by invoking getXXX() method.
|
static void |
PropertyAccessorHelper.setId(Object entity,
EntityMetadata metadata,
byte[] rowKey)
Sets Primary Key (Row key) into entity field that was annotated with @Id.
|
static void |
PropertyAccessorHelper.setId(Object entity,
EntityMetadata metadata,
Object rowKey)
Sets Primary Key (Row key) into entity field that was annotated with @Id.
|
| Modifier and Type | Method and Description |
|---|---|
<E> void |
LazyInitializerFactory.setProxyOwners(EntityMetadata entityMetadata,
E e)
Sets the entity e as "owner" into proxy it holds.
|
| Modifier and Type | Method and Description |
|---|---|
<E> void |
CglibLazyInitializerFactory.setProxyOwners(EntityMetadata entityMetadata,
E e) |
| Modifier and Type | Method and Description |
|---|---|
EntityMetadata |
KunderaQuery.getEntityMetadata()
Gets the entity metadata.
|
protected EntityMetadata |
QueryImpl.getEntityMetadata()
Returns entity metadata, in case of native query mapped class is present
within application metadata.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
KunderaQueryUtils.addToOutputColumns(org.eclipse.persistence.jpa.jpql.parser.Expression selectExpression,
EntityMetadata m,
List<Map<String,Object>> columnsToOutput,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Adds the to output columns.
|
protected void |
QueryImpl.addToRelationStack(Map<Object,Object> relationStack,
Object entity,
EntityMetadata m)
Adds the to relation stack.
|
protected abstract List |
QueryImpl.findUsingLucene(EntityMetadata m,
Client client)
Find using lucene.
|
protected List |
LuceneQuery.findUsingLucene(EntityMetadata m,
Client client) |
private List<Object> |
QueryImpl.findUsingLucene(EntityMetadata m,
Client client,
Object[] primaryKeys)
find data using lucene.
|
protected String[] |
QueryImpl.getColumns(String[] columns,
EntityMetadata m)
Gets the columns.
|
private Object |
QueryImpl.getEntityFieldValue(EntityMetadata entityMetadata,
Object entity,
String field)
Gets the entity field value.
|
private javax.persistence.Query |
QueryResolver.getQuery(String jpaQuery,
PersistenceDelegator persistenceDelegator,
EntityMetadata m,
KunderaQuery kunderaQuery,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Gets the query instance.
|
javax.persistence.Query |
QueryResolver.getQueryImplementation(String jpaQuery,
Class queryClazz,
PersistenceDelegator persistenceDelegator,
EntityMetadata metadata,
String persistenceUnit) |
private boolean |
QueryImpl.isRelational(EntityMetadata m)
Returns true, if associated entity holds relational references(e.g.
|
static Map<String,Object> |
KunderaQueryUtils.onBetweenExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery) |
static Map<String,Object> |
KunderaQueryUtils.onComparisonExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery)
On comparison expression.
|
static Map<String,Object> |
KunderaQueryUtils.onInExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery)
On in expression.
|
static Map<String,Object> |
KunderaQueryUtils.onLikeExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery) |
static void |
KunderaQueryUtils.onLogicalExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery)
On logical expression.
|
static void |
KunderaQueryUtils.onSubExpression(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery) |
private List<Object> |
QueryImpl.populateEmbeddedIdUsingLucene(EntityMetadata m,
Client client,
List<Object> result,
Map<String,Object> searchFilter,
MetamodelImpl metaModel)
Populate using lucene for embeddeId.
|
protected abstract List<Object> |
QueryImpl.populateEntities(EntityMetadata m,
Client client)
Populate entities, Method to populate data in case no relation exist!.
|
protected List<Object> |
LuceneQuery.populateEntities(EntityMetadata m,
Client client) |
private void |
QueryImpl.populateGroupByResponse(Map<String,Object> aggregations,
Iterable<org.eclipse.persistence.jpa.jpql.parser.Expression> resultOrderIterable,
List<Object> results,
Client client,
EntityMetadata m)
Populate group by response.
|
private List |
QueryImpl.populateUsingElasticSearch(Client client,
EntityMetadata m)
Populate using elastic search.
|
protected List<Object> |
QueryImpl.populateUsingLucene(EntityMetadata m,
Client client,
List<Object> result,
String[] columnsToSelect)
Populate using lucene.
|
static List<Map<String,Object>> |
KunderaQueryUtils.readSelectClause(org.eclipse.persistence.jpa.jpql.parser.Expression selectExpression,
EntityMetadata m,
Boolean useLuceneOrES,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Read select clause.
|
protected abstract List<Object> |
QueryImpl.recursivelyPopulateEntities(EntityMetadata m,
Client client)
Recursively populate entities.
|
protected List<Object> |
LuceneQuery.recursivelyPopulateEntities(EntityMetadata m,
Client client) |
static Map<String,Object> |
KunderaQueryUtils.setFieldClazzAndColumnFamily(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Sets the fieldclazz and colfamily.
|
protected List<Object> |
QueryImpl.setRelationEntities(List enhanceEntities,
Client client,
EntityMetadata m)
Sets the relation entities.
|
static void |
KunderaQueryUtils.traverse(org.eclipse.persistence.jpa.jpql.parser.Expression expression,
EntityMetadata m,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
KunderaQuery kunderaQuery,
boolean isSubExpression)
Traverse.
|
| Modifier and Type | Method and Description |
|---|---|
private static String |
KunderaCoreUtils.getPropertyName(EntityMetadata metadata,
String property,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
static Object |
KunderaCoreUtils.initialize(EntityMetadata m,
Object entity,
Object id)
Initialize.
|
private static void |
KunderaCoreUtils.isCompletePartitionKeyPresentInQuery(Queue filterQueue,
MetamodelImpl metaModel,
EntityMetadata metadata)
cheking whether all the fields of partition key are present in the jpa
query
|
static String |
KunderaCoreUtils.prepareCompositeKey(EntityMetadata m,
Object compositeKey)
Prepares composite key .
|
| Modifier and Type | Field and Description |
|---|---|
private EntityMetadata |
NullOrInvalidEntityRule.entityMetadata |
| Constructor and Description |
|---|
NullOrInvalidEntityRule(EntityMetadata entityMetadata) |
Copyright © 2015. All Rights Reserved.