db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1433868 - /db/jdo/site/src/site/xdoc/jdoql_methods.xml
Date Wed, 16 Jan 2013 09:24:22 GMT
Author: andyj
Date: Wed Jan 16 09:24:22 2013
New Revision: 1433868

URL: http://svn.apache.org/viewvc?rev=1433868&view=rev
Log:
added JDO3.1 methods

Modified:
    db/jdo/site/src/site/xdoc/jdoql_methods.xml

Modified: db/jdo/site/src/site/xdoc/jdoql_methods.xml
URL: http://svn.apache.org/viewvc/db/jdo/site/src/site/xdoc/jdoql_methods.xml?rev=1433868&r1=1433867&r2=1433868&view=diff
==============================================================================
--- db/jdo/site/src/site/xdoc/jdoql_methods.xml (original)
+++ db/jdo/site/src/site/xdoc/jdoql_methods.xml Wed Jan 16 09:24:22 2013
@@ -25,6 +25,10 @@
                         <td>Returns if the string starts with the passed string</td>
                     </tr>
                     <tr>
+                        <td>startsWith(String, int)</td>
+                        <td>Returns if the string starts with the passed string, after
the specified position</td>
+                    </tr>
+                    <tr>
                         <td>endsWith(String)</td>
                         <td>Returns if the string ends with the passed string</td>
                     </tr>
@@ -33,7 +37,7 @@
                         <td>Returns the first position of the passed string</td>
                     </tr>
                     <tr>
-                        <td>indexOf(String,int)</td>
+                        <td>indexOf(String, int)</td>
                         <td>Returns the position of the passed string, after the passed
position</td>
                     </tr>
                     <tr>
@@ -41,7 +45,7 @@
                         <td>Returns the substring starting from the passed position</td>
                     </tr>
                     <tr>
-                        <td>substring(int,int)</td>
+                        <td>substring(int, int)</td>
                         <td>Returns the substring between the passed positions</td>
                     </tr>
                     <tr>
@@ -57,6 +61,18 @@
                         <td>Returns whether string matches the passed expression. The
pattern argument follows the rules of 
                             java.lang.String.matches method.</td>
                     </tr>
+                    <tr>
+                        <td>trim()</td>
+                        <td>Retuns the string with leading/trailing spaces trimmed</td>
+                    </tr>
+                    <tr>
+                        <td>length()</td>
+                        <td>Retuns the length of the string</td>
+                    </tr>
+                    <tr>
+                        <td>charAt(int)</td>
+                        <td>Returns the character at the specified position of the
string</td>
+                    </tr>
                 </table>
                 <p>
                     Here's an example using a Product class, looking for objects which their
abreviation is the 
@@ -192,6 +208,58 @@ List results = (List)query.execute();</s
                 <br/>
             </subsection>
  
+            <subsection name="Temporal Methods">
+                <table>
+                    <tr>
+                        <th width="220">Method</th>
+                        <th>Description</th>
+                    </tr>
+                    <tr>
+                        <td>getDay()</td>
+                        <td>Returns the day of the month</td>
+                    </tr>
+                    <tr>
+                        <td>getMonth()</td>
+                        <td>Returns the month of the year</td>
+                    </tr>
+                    <tr>
+                        <td>getYear()</td>
+                        <td>Returns the year</td>
+                    </tr>
+                    <tr>
+                        <td>getHour()</td>
+                        <td>Returns the hour</td>
+                    </tr>
+                    <tr>
+                        <td>getMinute()</td>
+                        <td>Returns the minute</td>
+                    </tr>
+                    <tr>
+                        <td>getSecond()</td>
+                        <td>Returns the second</td>
+                    </tr>
+                </table>
+                <br/>
+            </subsection>
+ 
+            <subsection name="Enum Methods">
+                <table>
+                    <tr>
+                        <th width="220">Method</th>
+                        <th>Description</th>
+                    </tr>
+                    <tr>
+                        <td>ordinal()</td>
+                        <td>Returns the ordinal of the enum</td>
+                    </tr>
+                    <tr>
+                        <td>toString()</td>
+                        <td>Returns the string form of the enum</td>
+                    </tr>
+                </table>
+                <br/>
+            </subsection>
+ 
             <subsection name="Other Methods">
                 <table>
                     <tr>
@@ -207,9 +275,25 @@ List results = (List)query.execute();</s
                         <td>Returns the square root of the passed number</td>
                     </tr>
                     <tr>
+                        <td>Math.cos(number)</td>
+                        <td>Returns the cosine of the passed number</td>
+                    </tr>
+                    <tr>
+                        <td>Math.sin(number)</td>
+                        <td>Returns the sine of the passed number</td>
+                    </tr>
+                    <tr>
+                        <td>Math.tan(number)</td>
+                        <td>Returns the tangent of the passed number</td>
+                    </tr>
+                    <tr>
                         <td>JDOHelper.getObjectId(object)</td>
                         <td>Returns the object identity of the passed persistent object</td>
                     </tr>
+                    <tr>
+                        <td>JDOHelper.getVersion(object)</td>
+                        <td>Returns the version of the passed persistent object</td>
+                    </tr>
                 </table>
             </subsection>
         </section>



Mime
View raw message