You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2010/06/01 12:07:40 UTC

[jira] Commented: (JDO-658) JDOQL : Support for further methods (String, Enum, Date, JDOHelper)

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

Andy Jefferson commented on JDO-658:
------------------------------------

We already have Math.abs, Math.sqrt, so why not also have

Math.acos(number)
Math.asin(number)
Math.atan(number)
Math.ceil(number)
Math.cos(number)
Math.exp(number)
Math.floor(number)
Math.log(number)
Math.sin(number)
Math.tan(number)

> 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
>
> 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.
-
You can reply to this email to add a comment to the issue online.