Klasse SqlBuilderTest

java.lang.Object
org.apache.torque.BaseTestCase
org.apache.torque.sql.SqlBuilderTest

public class SqlBuilderTest extends BaseTestCase
Tests for SqlExpression
Version:
$Id: SqlBuilderTest.java 1917245 2024-04-21 14:06:23Z tv $
Autor:
Martin Poeschl, Scott Eade
  • Konstruktordetails

    • SqlBuilderTest

      public SqlBuilderTest()
  • Methodendetails

    • testAndString

      public void testAndString() throws Exception
      Test where condition with several ANDs compairing against Strings.
      Löst aus:
      Exception
    • testOrString

      public void testOrString() throws Exception
      Test where condition with several ORs compairing against Strings.
      Löst aus:
      Exception
    • testAndCriterions

      public void testAndCriterions() throws Exception
      Test where condition with several ANDs compairing against Strings.
      Löst aus:
      Exception
    • testOrCriterions

      public void testOrCriterions() throws Exception
      Test where condition with several ORs compairing against Strings.
      Löst aus:
      Exception
    • testAndVerbatimSqlReplacementNull

      public void testAndVerbatimSqlReplacementNull() throws Exception
      Test the andVerbatimSql method with null replacements.
      Löst aus:
      Exception
    • testAndVerbatimSqlWithReplacements

      public void testAndVerbatimSqlWithReplacements() throws Exception
      Test the andVerbatimSql method with replacements.
      Löst aus:
      Exception
    • testAndVerbatimSqlWithFromColumns

      public void testAndVerbatimSqlWithFromColumns() throws Exception
      Test the andVerbatimSql method with from Columns.
      Löst aus:
      Exception
    • testOrVerbatimSqlReplacementNull

      public void testOrVerbatimSqlReplacementNull() throws Exception
      Test the orVerbatimSql method with null replacements.
      Löst aus:
      Exception
    • testOrVerbatimSqlWithReplacements

      public void testOrVerbatimSqlWithReplacements() throws Exception
      Test the orVerbatimSql method with replacements.
      Löst aus:
      Exception
    • testOrVerbatimSqlWithFromColumns

      public void testOrVerbatimSqlWithFromColumns() throws Exception
      Test the orVerbatimSql method with from Columns.
      Löst aus:
      Exception
    • testWhereVerbatimSqlReplacementNull

      public void testWhereVerbatimSqlReplacementNull() throws Exception
      Test the whereVerbatimSql method with null replacements.
      Löst aus:
      Exception
    • testWhereVerbatimSqlWithReplacements

      public void testWhereVerbatimSqlWithReplacements() throws Exception
      Test the whereVerbatimSql method with replacements.
      Löst aus:
      Exception
    • testWhereVerbatimSqlWithFromColumns

      public void testWhereVerbatimSqlWithFromColumns() throws Exception
      Test the whereVerbatimSql method with from Columns.
      Löst aus:
      Exception
    • testignoreCaseUnknownColumnType

      public void testignoreCaseUnknownColumnType() throws Exception
      Test that unknown columns are treated case-insensitive if ignoreCase is set.
      Löst aus:
      Exception
    • testIgnoreCaseStringColumnType

      public void testIgnoreCaseStringColumnType() throws Exception
      Löst aus:
      Exception
    • testIgnoreCaseIntegerColumnType

      public void testIgnoreCaseIntegerColumnType() throws Exception
      Löst aus:
      Exception
    • testOrderByDesc

      public void testOrderByDesc() throws org.apache.torque.TorqueException
      Löst aus:
      org.apache.torque.TorqueException
    • testOrderByAsc

      public void testOrderByAsc() throws Exception
      Löst aus:
      Exception
    • testOrderByNullColumn

      public void testOrderByNullColumn() throws Exception
      Löst aus:
      Exception
    • testOrderByMultiple

      public void testOrderByMultiple() throws Exception
      Löst aus:
      Exception
    • testOrderByWithDefaultSchema

      public void testOrderByWithDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testOrderByWithFunction

      public void testOrderByWithFunction() throws Exception
      Löst aus:
      Exception
    • testOrderByWithAsColumn

      public void testOrderByWithAsColumn() throws Exception
      Löst aus:
      Exception
    • testOrderByWithAsColumnIgnoreCase

      public void testOrderByWithAsColumnIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testOrderByWithAsColumnAndAliasIgnoreCase

      public void testOrderByWithAsColumnAndAliasIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testOrderByAscendingIgnoreCaseString

      public void testOrderByAscendingIgnoreCaseString() throws Exception
      Löst aus:
      Exception
    • testOrderByAscendingIgnoreCaseInteger

      public void testOrderByAscendingIgnoreCaseInteger() throws Exception
      Löst aus:
      Exception
    • testOrderByAscendingIgnoreCaseStringInCriteria

      public void testOrderByAscendingIgnoreCaseStringInCriteria() throws Exception
      Löst aus:
      Exception
    • testOrderByAscendingIgnoreCaseIntegerInCriteria

      public void testOrderByAscendingIgnoreCaseIntegerInCriteria() throws Exception
      Löst aus:
      Exception
    • testOrderByDescendingIgnoreCaseString

      public void testOrderByDescendingIgnoreCaseString() throws Exception
      Löst aus:
      Exception
    • testOrderByDescendingIgnoreCaseInteger

      public void testOrderByDescendingIgnoreCaseInteger() throws Exception
      Löst aus:
      Exception
    • testOrderByDescendingIgnoreCaseStringInCriteria

      public void testOrderByDescendingIgnoreCaseStringInCriteria() throws Exception
      Löst aus:
      Exception
    • testOrderByDescendingIgnoreCaseIntegerInCriteria

      public void testOrderByDescendingIgnoreCaseIntegerInCriteria() throws Exception
      Löst aus:
      Exception
    • testAlias

      public void testAlias() throws Exception
      Löst aus:
      Exception
    • testAliasWithDefaultSchema

      public void testAliasWithDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testAliasWithIgnoreCaseUnknownColumnType

      public void testAliasWithIgnoreCaseUnknownColumnType() throws Exception
      Löst aus:
      Exception
    • testAliasWithSubquery

      public void testAliasWithSubquery() throws Exception
      Löst aus:
      Exception
    • testAliasWithSubqueryAndReplacements

      public void testAliasWithSubqueryAndReplacements() throws Exception
      Löst aus:
      Exception
    • testAliasWithIgnoreCaseStringColumnType

      public void testAliasWithIgnoreCaseStringColumnType() throws Exception
      Löst aus:
      Exception
    • testAliasWithIgnoreCaseIntegerColumnType

      public void testAliasWithIgnoreCaseIntegerColumnType() throws Exception
      Löst aus:
      Exception
    • testAliasWithIgnoreCaseStringColumnTypeAndDefaultSchema

      public void testAliasWithIgnoreCaseStringColumnTypeAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testAliasWithIgnoreCaseIntegerColumnTypeAndDefaultSchema

      public void testAliasWithIgnoreCaseIntegerColumnTypeAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testAsColumn

      public void testAsColumn() throws Exception
      Löst aus:
      Exception
    • testAsColumnWithIgnoreCaseUnknownColumn

      public void testAsColumnWithIgnoreCaseUnknownColumn() throws Exception
      Löst aus:
      Exception
    • testAsColumnWithIgnoreCaseStringColumn

      public void testAsColumnWithIgnoreCaseStringColumn() throws Exception
      Löst aus:
      Exception
    • testAsColumnWithIgnoreCaseIntegerColumn

      public void testAsColumnWithIgnoreCaseIntegerColumn() throws Exception
      Löst aus:
      Exception
    • testAsColumnWithIgnoreCaseStringColumnAndDefaultSchema

      public void testAsColumnWithIgnoreCaseStringColumnAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testAsColumnWithIgnoreCaseIntegerColumnAndDefaultSchema

      public void testAsColumnWithIgnoreCaseIntegerColumnAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicit

      public void testInnerJoinImplicit() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithComparison

      public void testInnerJoinImplicitWithComparison() throws Exception
      Löst aus:
      Exception
    • testInnerJoinExplicit

      public void testInnerJoinExplicit() throws Exception
      Löst aus:
      Exception
    • testInnerJoinWithExcplicitExistingRightTable

      public void testInnerJoinWithExcplicitExistingRightTable() throws Exception
      Löst aus:
      Exception
    • testInnerJoinWithExcplicitExistingRightTableAndOperator

      public void testInnerJoinWithExcplicitExistingRightTableAndOperator() throws Exception
      Löst aus:
      Exception
    • testInnerJoinExcplicitWithExistingRightAndLeftTable

      public void testInnerJoinExcplicitWithExistingRightAndLeftTable() throws Exception
      Löst aus:
      Exception
    • testInnerJoinExplicitWithComplicatedCondition

      public void testInnerJoinExplicitWithComplicatedCondition() throws Exception
      Löst aus:
      Exception
    • testInnerJoinExplicitWithSubselect

      public void testInnerJoinExplicitWithSubselect() throws Exception
      Tests that a subselect can be added to the from clause.
      Löst aus:
      Exception - if an error occurs
    • testInnerJoinWithJoinCriteriaAndDefaultSchema

      public void testInnerJoinWithJoinCriteriaAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testLeftJoin

      public void testLeftJoin() throws Exception
      Löst aus:
      Exception
    • testLeftJoinWithExistingRightTable

      public void testLeftJoinWithExistingRightTable() throws Exception
      Löst aus:
      Exception
    • testRightJoin

      public void testRightJoin() throws Exception
      Löst aus:
      Exception
    • testRightJoinWithExistingRightTable

      public void testRightJoinWithExistingRightTable() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithAlias

      public void testInnerJoinImplicitWithAlias() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithAliasAndAsColumn

      public void testInnerJoinImplicitWithAliasAndAsColumn() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithDefaultSchema

      public void testInnerJoinImplicitWithDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithAliasAndDefaultSchema

      public void testInnerJoinImplicitWithAliasAndDefaultSchema() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithAliasAndSchema

      public void testInnerJoinImplicitWithAliasAndSchema() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithSubqueryAndReplacements

      public void testInnerJoinImplicitWithSubqueryAndReplacements() throws Exception
      Löst aus:
      Exception
    • testInnerJoinImplicitWithComplicatedCondition

      public void testInnerJoinImplicitWithComplicatedCondition() throws Exception
      Löst aus:
      Exception
    • testDistinct

      public void testDistinct() throws Exception
      Löst aus:
      Exception
    • testGroupBy

      public void testGroupBy() throws Exception
      Löst aus:
      Exception
    • testLimitPostgresql

      public void testLimitPostgresql() throws Exception
      Löst aus:
      Exception
    • testOffsetPostgresql

      public void testOffsetPostgresql() throws Exception
      Löst aus:
      Exception
    • testLimitOffsetPostgresql

      public void testLimitOffsetPostgresql() throws Exception
      Löst aus:
      Exception
    • testLimitMysql

      public void testLimitMysql() throws Exception
      Löst aus:
      Exception
    • testOffsetMysql

      public void testOffsetMysql() throws Exception
      Löst aus:
      Exception
    • testLimitOffsetMysql

      @Test public void testLimitOffsetMysql() throws Exception
      Löst aus:
      Exception
    • testLimitOracle

      public void testLimitOracle() throws Exception
      Löst aus:
      Exception
    • testOffsetOracle

      public void testOffsetOracle() throws Exception
      Löst aus:
      Exception
    • testLimitOffsetOracle

      public void testLimitOffsetOracle() throws Exception
      Löst aus:
      Exception
    • testSelectForUpdate

      public void testSelectForUpdate() throws Exception
      Löst aus:
      Exception
    • testHaving

      public void testHaving() throws Exception
      Löst aus:
      Exception
    • testSelectColumnWithoutTable

      public void testSelectColumnWithoutTable() throws Exception
      Löst aus:
      Exception
    • testCriterionCustomSql

      public void testCriterionCustomSql() throws Exception
      Löst aus:
      Exception
    • testLvalueIsObject

      public void testLvalueIsObject() throws Exception
      Löst aus:
      Exception
    • testCurrentDate

      public void testCurrentDate() throws Exception
      Löst aus:
      Exception
    • testCurrentTime

      public void testCurrentTime() throws Exception
      Löst aus:
      Exception
    • testCurrentTimestamp

      public void testCurrentTimestamp() throws Exception
      Löst aus:
      Exception
    • testObjectKey

      public void testObjectKey() throws Exception
      Löst aus:
      Exception
    • testNullValue

      public void testNullValue() throws Exception
      Löst aus:
      Exception
    • testNullValueNotEqual

      public void testNullValueNotEqual() throws Exception
      Löst aus:
      Exception
    • testNullValueAltNotEqual

      public void testNullValueAltNotEqual() throws Exception
      Löst aus:
      Exception
    • testIsNull

      public void testIsNull() throws Exception
      Löst aus:
      Exception
    • testIsNotNull

      public void testIsNotNull() throws Exception
      Löst aus:
      Exception
    • testSubselect

      public void testSubselect() throws Exception
      Löst aus:
      Exception
    • testSubselectReferenceOuterTable

      public void testSubselectReferenceOuterTable() throws Exception
      Löst aus:
      Exception
    • testLike

      public void testLike() throws Exception
      Löst aus:
      Exception
    • testLikeWithEscape

      public void testLikeWithEscape() throws org.apache.torque.TorqueException
      Test whether LIKE clauses with Escapes are built correctly.
      Löst aus:
      org.apache.torque.TorqueException
    • testLikeWithEscapeOracle

      public void testLikeWithEscapeOracle() throws org.apache.torque.TorqueException
      Test whether LIKE clauses with Escapes are built correctly in Oracle. Oracle needs to have an ESCAPE clause
      Löst aus:
      org.apache.torque.TorqueException
    • testLikeIgnoreCase

      public void testLikeIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testLikeIgnoreCaseNoWildcard

      public void testLikeIgnoreCaseNoWildcard() throws Exception
      Löst aus:
      Exception
    • testLikeInteger

      public void testLikeInteger() throws org.apache.torque.TorqueException
      Löst aus:
      org.apache.torque.TorqueException
    • testNotLike

      public void testNotLike() throws Exception
      Löst aus:
      Exception
    • testNotLikeIgnoreCase

      public void testNotLikeIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testNotLikeIgnoreCaseNoWildcard

      public void testNotLikeIgnoreCaseNoWildcard() throws Exception
      Löst aus:
      Exception
    • testIlike

      public void testIlike() throws Exception
      Löst aus:
      Exception
    • testIlikeNoWildcard

      public void testIlikeNoWildcard() throws Exception
      Löst aus:
      Exception
    • testNotIlike

      public void testNotIlike() throws Exception
      Löst aus:
      Exception
    • testNotIlikeNoWildcard

      public void testNotIlikeNoWildcard() throws Exception
      Löst aus:
      Exception
    • testLvalueString

      public void testLvalueString() throws Exception
      Löst aus:
      Exception
    • testLvalueNull

      public void testLvalueNull() throws Exception
      Löst aus:
      Exception
    • testLvalueCriteria

      public void testLvalueCriteria() throws Exception
      Löst aus:
      Exception
    • testInArray

      public void testInArray() throws Exception
      Löst aus:
      Exception
    • testInArrayIgnoreCase

      public void testInArrayIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testInList

      public void testInList() throws Exception
      Löst aus:
      Exception
    • testInListIgnoreCase

      public void testInListIgnoreCase() throws Exception
      Löst aus:
      Exception
    • testNotInList

      public void testNotInList() throws Exception
      Löst aus:
      Exception
    • testInLargeArray

      public void testInLargeArray() throws org.apache.torque.TorqueException
      Löst aus:
      org.apache.torque.TorqueException
    • testInString

      public void testInString() throws Exception
      Löst aus:
      Exception
    • testFromElementsSetExplicitly

      public void testFromElementsSetExplicitly() throws Exception
      Löst aus:
      Exception
    • testFromElementsSetExplicitlyAsString

      public void testFromElementsSetExplicitlyAsString() throws Exception
      Löst aus:
      Exception
    • testUnion

      public void testUnion() throws Exception
      Löst aus:
      Exception
    • testUnionAll

      public void testUnionAll() throws Exception
      Löst aus:
      Exception
    • testExcept

      public void testExcept() throws Exception
      Löst aus:
      Exception
    • testExceptAll

      public void testExceptAll() throws Exception
      Löst aus:
      Exception
    • testIntersect

      public void testIntersect() throws Exception
      Löst aus:
      Exception
    • testIntersectAll

      public void testIntersectAll() throws Exception
      Löst aus:
      Exception
    • testUnionOrderByLimitOffset

      public void testUnionOrderByLimitOffset() throws Exception
      Löst aus:
      Exception
    • testSetOperationBraces

      public void testSetOperationBraces() throws Exception
      Löst aus:
      Exception
    • testEnumValues

      public void testEnumValues() throws Exception
      Löst aus:
      Exception
    • testEnumValuesNoGetValueMethod

      public void testEnumValuesNoGetValueMethod() throws Exception
      Tests that an enum which does not have a getValue() method cannot be added as select value.
      Löst aus:
      Exception