Class EntityHelper

java.lang.Object
net.ideahut.springboot.entity.EntityHelper

public final class EntityHelper extends Object
  • Field Details

  • Method Details

    • loadLazy

      public static void loadLazy(Object entity, EntityInfo entityInfo, Collection<String> tobeLoadFields)
    • loadLazy

      public static void loadLazy(Object entity, EntityInfo entityInfo, Collection<String> loadFields, Collection<String> selectedFields)
    • getFieldInfo

      public static FieldInfo getFieldInfo(EntityInfo entityInfo, String anyFieldName)
    • getFieldValue

      public static Object getFieldValue(EntityInfo entityInfo, String anyFieldName, Collection<String> value)
    • getFieldValue

      public static Object getFieldValue(EntityInfo entityInfo, String anyFieldName, String value)
    • commit

      public static void commit(org.hibernate.Session session)
    • commit

      public static void commit(org.hibernate.StatelessSession session)
    • commit

      public static void commit(org.hibernate.Transaction transaction)
    • rollback

      public static void rollback(org.hibernate.Session session)
    • rollback

      public static void rollback(org.hibernate.StatelessSession session)
    • rollback

      public static void rollback(org.hibernate.Transaction transaction)
    • close

      public static void close(org.hibernate.Session session)
    • close

      public static void close(org.hibernate.StatelessSession session)
    • close

      public static void close(Connection connection)
    • getCatalogs

      public static List<String> getCatalogs(DatabaseMetaData dbMetaData) throws SQLException
      Throws:
      SQLException
    • findTable

      public static org.hibernate.mapping.Table findTable(EntityIntegrator integrator, String name)
    • findColumn

      public static org.hibernate.mapping.Column findColumn(org.hibernate.mapping.Table table, String name)
    • createTable

      public static boolean createTable(EntityIntegrator integrator, org.hibernate.mapping.Table table, boolean isIdentityPk)
    • aliasField

      public static String aliasField(String alias, String field)
    • setAudit

      public static void setAudit(Object object, boolean isUpdate)
    • generateInIdsQuery

      public static String generateInIdsQuery(List<Object> ids, EntityInfo entityInfo, String alias, List<Object> parameters, Integer startIndex)