Interface DynamicEntityDao

All Known Implementing Classes:
DynamicEntityDaoImpl

public interface DynamicEntityDao
Author:
jfischer
  • Method Details

    • getAllPolymorphicEntitiesFromCeiling

      Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass)
    • getAllPolymorphicEntitiesFromCeiling

      Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass, boolean includeUnqualifiedPolymorphicEntities)
    • getUpDownInheritance

      Class<?>[] getUpDownInheritance(Class<?> testClass)
    • getImplClass

      Class<?> getImplClass(String className)
    • getCeilingImplClass

      Class<?> getCeilingImplClass(String className)
    • getClassTreeFromCeiling

      ClassTree getClassTreeFromCeiling(Class<?> ceilingClass)
    • getClassTree

      ClassTree getClassTree(Class<?>[] polymorphicClasses)
    • getPropertiesForPrimitiveClass

      Map<String,FieldMetadata> getPropertiesForPrimitiveClass(String propertyName, String friendlyPropertyName, Class<?> targetClass, Class<?> parentClass, MergedPropertyType mergedPropertyType)
    • getMergedProperties

      Map<String,FieldMetadata> getMergedProperties(String ceilingEntityFullyQualifiedClassname, Class<?>[] entities, ForeignKey foreignField, String[] additionalNonPersistentProperties, ForeignKey[] additionalForeignFields, MergedPropertyType mergedPropertyType, Boolean populateManyToOneFields, String[] includeManyToOneFields, String[] excludeManyToOneFields, String configurationKey, String prefix)
    • getMergedProperties

      Map<String,FieldMetadata> getMergedProperties(@Nonnull Class<?> cls)
      Parameters:
      cls -
      Returns:
    • persist

      <T> T persist(T entity)
    • merge

      <T> T merge(T entity)
    • retrieve

      Serializable retrieve(Class<?> entityClass, Object primaryKey)
    • remove

      void remove(Serializable entity)
    • clear

      void clear()
    • flush

      void flush()
    • detach

      void detach(Serializable entity)
    • refresh

      void refresh(Serializable entity)
    • find

      Object find(Class<?> entityClass, Object key)
    • getStandardEntityManager

      jakarta.persistence.EntityManager getStandardEntityManager()
    • setStandardEntityManager

      void setStandardEntityManager(jakarta.persistence.EntityManager entityManager)
    • getPersistentClass

      org.hibernate.mapping.PersistentClass getPersistentClass(String targetClassName)
      Get the Hibernate PersistentClass instance associated with the fully-qualified class name. Will return null if no persistent class is associated with this name.
      Parameters:
      targetClassName -
      Returns:
      The PersistentClass instance
    • getSimpleMergedProperties

      Map<String,FieldMetadata> getSimpleMergedProperties(String entityName, PersistencePerspective persistencePerspective)
    • getFieldManager

      FieldManager getFieldManager()
    • getFieldManager

      FieldManager getFieldManager(boolean cleanFieldManger)
    • getEntityConfiguration

      EntityConfiguration getEntityConfiguration()
    • setEntityConfiguration

      void setEntityConfiguration(EntityConfiguration entityConfiguration)
    • getIdMetadata

      Map<String,Object> getIdMetadata(Class<?> entityClass)
    • getPropertyTypes

      List<org.hibernate.type.Type> getPropertyTypes(Class<?> entityClass)
    • getPropertyNames

      List<String> getPropertyNames(Class<?> entityClass)
    • createCriteria

      org.hibernate.Criteria createCriteria(Class<?> entityClass)
    • getAllFields

      Field[] getAllFields(Class<?> targetClass)
    • getMetadata

      Metadata getMetadata()
    • setMetadata

      void setMetadata(Metadata metadata)
    • getDefaultFieldMetadataProvider

      FieldMetadataProvider getDefaultFieldMetadataProvider()
    • useCache

      boolean useCache()
    • getDynamicDaoHelper

      DynamicDaoHelper getDynamicDaoHelper()
    • getTabAndGroupMetadata

      Map<String,TabMetadata> getTabAndGroupMetadata(Class<?>[] clazz, ClassMetadata cmd)
    • readOtherEntitiesWithPropertyValue

      List<Long> readOtherEntitiesWithPropertyValue(Serializable instance, String propertyName, String value)
      Returns a list of ids for entities that share the property value of the entity passed in
      Parameters:
      instance -
      propertyName -
      value -
      Returns:
    • getIdentifier

      Serializable getIdentifier(Object entity)
      Retrieve the identifier from the Hibernate entity (the entity must reside in the current session)
      Parameters:
      entity -
      Returns: