Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-658

JDOQL : Support for further methods (String, Enum, Date, JDOHelper)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 3 (3.0)
    • JDO 3.1-rc1
    • specification, tck
    • None

    Description

      Consider extending JDOQL in JDO3.1 to include a series of new methods, following the contracts of existing Java classes

      String.charAt(int)
      String.startsWith(String, int)
      String.length()
      String.trim()

      Enum.ordinal()
      Enum.toString()

      The following are obviously deprecated in the JDK, but worth consideration
      Date.getHour()
      Date.getMinutes()
      Date.getSeconds()
      Date.getDay()
      Date.getMonth()
      Date.getYear()

      We already have JDOHelper.getObjectId(Object), so why not add
      JDOHelper.getVersion(Object)

      On a related topic JDO-633 has "List.get(int)".

      Note that all of these are already implemented in the RI.

      Attachments

        1. JDO-658-mbo.patch
          24 kB
          Michael Bouschen
        2. JDO-658-math_time.patch
          26 kB
          Andy Jefferson

        Activity

          People

            mbo Michael Bouschen
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: