Class AbstractCoreTest

java.lang.Object
com.blazebit.persistence.testsuite.base.jpa.AbstractJpaPersistenceTest
com.blazebit.persistence.testsuite.base.AbstractPersistenceTest
com.blazebit.persistence.testsuite.AbstractCoreTest

public abstract class AbstractCoreTest extends AbstractPersistenceTest
Since:
1.0.0
Author:
Christian Beikov, Moritz Becker
  • Field Details

    • STATIC_JPA_PROVIDER

      protected static final JpaProvider STATIC_JPA_PROVIDER
    • dbms

      protected String dbms
  • Constructor Details

    • AbstractCoreTest

      public AbstractCoreTest()
  • Method Details

    • requiresCriteriaBuilderConfigurationCustomization

      protected boolean requiresCriteriaBuilderConfigurationCustomization()
      Overrides:
      requiresCriteriaBuilderConfigurationCustomization in class com.blazebit.persistence.testsuite.base.jpa.AbstractJpaPersistenceTest
    • configure

      protected void configure(CriteriaBuilderConfiguration config)
      Overrides:
      configure in class com.blazebit.persistence.testsuite.base.jpa.AbstractJpaPersistenceTest
    • listParameter

      protected String listParameter(String name)
      Only use this for parameters that have more than 1 value!
      Parameters:
      name -
      Returns:
    • joinAliasValue

      protected String joinAliasValue(String alias)
    • joinAliasValue

      protected String joinAliasValue(String alias, String field)
    • onClause

      protected String onClause(String expression)
    • booleanConditionalExpression

      protected String booleanConditionalExpression(boolean value)
    • escapeCharacter

      protected String escapeCharacter(char character)
    • noEscape

      protected String noEscape()
    • renderNullPrecedence

      protected String renderNullPrecedence(String expression, String resolvedExpression, String order, String nulls)
    • renderNullPrecedenceGroupBy

      protected String renderNullPrecedenceGroupBy(String resolvedExpression, String order, String nulls)
    • groupBy

      protected String groupBy(String... groupBys)
    • groupByPathExpressions

      protected String groupByPathExpressions(String... pathExpressions)
    • countStar

      protected String countStar()
    • correlationPath

      protected String correlationPath(String correlationPath, Class<?> entityClass, String alias, String predicate)
    • correlationPath

      protected String correlationPath(String correlationPath, Class<?> entityClass, String alias, String predicate, String normalSuffix)
    • correlationPath

      protected String correlationPath(Class<?> ownerEntity, String correlationPath, String alias, String predicate)
    • correlationPath

      protected String correlationPath(Class<?> ownerEntity, String correlationPath, String alias, String predicate, String normalSuffix)
    • correlationPath

      protected String correlationPath(Class<?> ownerEntity, String correlationPath, Class<?> entityClass, String alias, String predicate, String normalSuffix)
    • countPaginated

      protected String countPaginated(String string, boolean distinct)
    • countPaginatedBounded

      protected String countPaginatedBounded(String string, boolean distinct)
    • treatRoot

      protected String treatRoot(String path, Class<?> type, String property)
    • treatRoot

      protected String treatRoot(String path, Class<?> type, String property, boolean subtypeProperty)
    • treatRootWhereFragment

      protected String treatRootWhereFragment(String alias, Class<?> rootType, Class<?> treatType, String after)
    • treatJoinedConstraintFragment

      protected String treatJoinedConstraintFragment(String alias, Class<?> treatType, String after, boolean subtypeProperty)
    • treatJoinWhereFragment

      protected String treatJoinWhereFragment(Class<?> sourceType, String attribute, String alias, Class<?> type, JoinType joinType, String whereFragment)
    • treatJoin

      protected String treatJoin(String path, Class<?> type, JoinType joinType)
    • treatRootJoin

      protected String treatRootJoin(String path, Class<?> type, String property)
    • treatRootTreatJoin

      protected String treatRootTreatJoin(JoinType joinType, String path, Class<?> type, String property, Class<?> type2, String alias)
    • renderNullPrecedence

      protected String renderNullPrecedence(String expression, String order, String nulls)
    • staticJoinAliasValue

      protected static String staticJoinAliasValue(String alias, String field)
    • function

      protected static String function(String name, String... args)
    • count

      protected static String count(String... args)
    • countDistinct

      protected static String countDistinct(String... args)
    • countTuple

      protected static String countTuple(String... args)
    • countTupleDistinct

      protected static String countTupleDistinct(String... args)
    • singleValuedAssociationIdJoin

      protected String singleValuedAssociationIdJoin(String singleValuedAssociationIdBasePath, String joinAlias, boolean optionalAssociation)
    • singleValuedAssociationIdPath

      protected String singleValuedAssociationIdPath(String idPath, String joinAlias)
    • singleValuedAssociationIdNullnessPath

      protected String singleValuedAssociationIdNullnessPath(String path, String id)
    • tsLiteral

      protected static String tsLiteral(LocalDateTime value)
    • tsLiteral

      protected static String tsLiteral(String literalValue)
    • tsLiteral

      protected static String tsLiteral(Calendar value)
    • dateLiteral

      protected static String dateLiteral(String literalValue)
    • timeLiteral

      protected static String timeLiteral(String literalValue)
    • resolveRegisteredFunctionName

      protected static String resolveRegisteredFunctionName(String functionName)
    • getEntityClasses

      protected Class<?>[] getEntityClasses()
      Specified by:
      getEntityClasses in class com.blazebit.persistence.testsuite.base.jpa.AbstractJpaPersistenceTest
    • concat

      protected static <T> T[] concat(T[] array1, T... array2)
    • transactional

      protected void transactional(TxVoidWork work)
    • transactional

      protected <V> V transactional(TxWork<V> work)