Package com.impetus.kundera.client

Examples of com.impetus.kundera.client.EnhanceEntity


        E result = null;
        if (enhanceEntity != null)
        {
            if (!(enhanceEntity instanceof EnhanceEntity))
            {
                enhanceEntity = new EnhanceEntity(enhanceEntity, PropertyAccessorHelper.getId(enhanceEntity, m), null);
            }
            EnhanceEntity ee = (EnhanceEntity) enhanceEntity;

            result = (E) client.getReader().recursivelyFindEntities(ee.getEntity(), ee.getRelations(), m,
                    persistenceDelegator, false);
        }
        return result;
    }
View Full Code Here


                // populate secondary tables data if there is any.
                populateSecondaryTableData(rowKey, entity, metaModel, metadata);

                if (!relationalValues.isEmpty())
                {
                    results.add(new EnhanceEntity(entity, rowKey, relationalValues));
                }
                else
                {
                    results.add(entity);
                }
View Full Code Here

            }
        }

        if (relationValue != null && !relationValue.isEmpty())
        {
            EnhanceEntity entity = new EnhanceEntity(enhancedEntity, PropertyAccessorHelper.getId(enhancedEntity,
                    entityMetadata), relationValue);
            return entity;
        }
        else
        {
View Full Code Here

                        kunderaMetadata);
            }

            if (relationValue != null && !relationValue.isEmpty())
            {
                enhancedEntity = new EnhanceEntity(enhancedEntity, PropertyAccessorHelper.getId(enhancedEntity,
                        entityMetadata), relationValue);
            }

            if (enhancedEntity != null)
            {
View Full Code Here

                Object fieldValue = results.get(fieldName);
                relations.put(fieldName, fieldValue);
            }
        }

        return relations.isEmpty() ? result : new EnhanceEntity(result, key, relations);
    }
View Full Code Here

            relationValue = handler.getEntityFromDocument(m.getEntityClazz(), entityFromDocument, m, document,
                    m.getRelationNames(), relationValue, persistenceDelegator.getKunderaMetadata());

            if (relationValue != null && !relationValue.isEmpty())
            {
                entityFromDocument = (E) new EnhanceEntity(entityFromDocument, PropertyAccessorHelper.getId(
                        entityFromDocument, m), relationValue);
            }

            if (!m.isRelationViaJoinTable() && (m.getRelationNames() == null || (m.getRelationNames().isEmpty())))
            {
View Full Code Here

        E result = null;
        if (enhanceEntity != null)
        {
            if (!(enhanceEntity instanceof EnhanceEntity))
            {
                enhanceEntity = new EnhanceEntity(enhanceEntity, PropertyAccessorHelper.getId(enhanceEntity, m), null);
            }
            EnhanceEntity ee = (EnhanceEntity) enhanceEntity;

            result = (E) client.getReader().recursivelyFindEntities(ee.getEntity(), ee.getRelations(), m,
                    persistenceDelegator, false);
        }
        return result;
    }
View Full Code Here

                }
            }

            if (entity != null)
            {
                results.add(relationMap.isEmpty() ? entity : new EnhanceEntity(entity, key != null ? key
                        : PropertyAccessorHelper.getId(entity, entityMetadata), relationMap));
            }
        }
        return results;
    }
View Full Code Here

                    }
                }
            }
            if (relationValue != null && !relationValue.isEmpty())
            {
                EnhanceEntity e = new EnhanceEntity(entity, PropertyAccessorHelper.getId(entity, m), relationValue);
                return e;
            }
            else
            {
                return entity;
View Full Code Here

        nodeIdToEntityMap.clear();

        if (!relationMap.isEmpty() && entity != null)
        {
            return new EnhanceEntity(entity, PropertyAccessorHelper.getId(entity, m), relationMap);
        }
        else
        {
            return entity;
        }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.client.EnhanceEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.