Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-beta1
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      I want to create a org.apache.torque.util.Criteria object from a (possible complicated) textual expression: this is made using a parser and an interpreter for a textual expression using brackets and different operators. During the creation of the org.apache.torque.util.Criteria object several database select operations are made (among others replacing some textual labels from the original textual expression with their corresponding IDs form different database tables).

      Thereafter I have to use the resulting Criteria object several times as a base for creating further Criteria objects. For that the clone() method would be the ideal candidate...

      But as I see the clone() method is not yet implemented for the Criteria class.
      I want to avoid the "parsing-interpreting-replacing labels with IDs" phase for each new Criteria object needed because they are time-consuming operations. Other alternative would be the use of org.apache.commons.lang.SerializationUtils, but this is also quite slow.

      Do you plan to implement the clone() method in the near future?

        Activity

        Tamas Ruff created issue -
        Hide
        Thomas Fox added a comment -

        clone() is now implemented for criteria

        Show
        Thomas Fox added a comment - clone() is now implemented for criteria
        Thomas Fox made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Thomas Fox [ tfischer ]
        Fix Version/s 4.0 [ 12312102 ]
        Resolution Fixed [ 1 ]
        Thomas Fox made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Tamas Ruff
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development