db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JDO-658) JDOQL : Support for further methods (String, Enum, Date, JDOHelper)
Date Wed, 26 Oct 2011 18:45:32 GMT

    [ https://issues.apache.org/jira/browse/JDO-658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13136208#comment-13136208
] 

Michael Bouschen commented on JDO-658:
--------------------------------------

Proposed spec changes:
Add the following entries to the table 5 Query Methods in chapter 14.6.2 Filter specification,
section Methods on page 170 of the JDO 3.0 spec:

charAt(int) applies to String type 
startsWith(String, int) applies to String type 
length() applies to String type 
trim() applies to String type 
ordinal() applies to Enum types
toString() applies to Enum types
getHour() applies to java.util.Date type
getMinutes() applies to java.util.Date type
getSeconds() applies to java.util.Date type
getDay() applies to java.util.Date type
getMonth() applies to java.util.Date type
getYear() applies to java.util.Date type
Math.cos(number) static method in java.lang.Math, applies to double type
Math.sin(number) static method in java.lang.Math, applies to double type
Math.tan(number) static method in java.lang.Math, applies to double type
JDOHelper.getVersion(Object)  static method in JDOHelper, allows using the version of an instance
directly in a query
                
> JDOQL : Support for further methods (String, Enum, Date, JDOHelper)
> -------------------------------------------------------------------
>
>                 Key: JDO-658
>                 URL: https://issues.apache.org/jira/browse/JDO-658
>             Project: JDO
>          Issue Type: New Feature
>          Components: specification, tck
>    Affects Versions: JDO 3
>            Reporter: Andy Jefferson
>            Assignee: Craig L Russell
>             Fix For: JDO 3 maintenance release 1
>
>         Attachments: JDO-658-math_time.patch, JDO-658-mbo.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message