Java Doc for ExpressionMethodAdapter.java in  » Database-ORM » JPOX » org » jpox » store » expression » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » JPOX » org.jpox.store.expression 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jpox.store.expression.ExpressionMethodAdapter

ExpressionMethodAdapter
public interface ExpressionMethodAdapter (Code)
Interface that allows one datastore adapt operations
version:
   $Revision: 1.11 $




Method Summary
 NumericExpressionabsMethod(ScalarExpression expr)
     Returns the absolute expression for the JDOQL Math.abs(EXPRESSION) method. In SQL, it may compile to:

 ABS(str)
 

Parameters:
  expr - The argument to the abs() method.
 NumericExpressionacosMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.acos(EXPRESSION) method. In SQL, it may compile to:

 ACOS(str)
 

Parameters:
  expr - The argument to the cos() method.
 NumericExpressionasinMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.asin(EXPRESSION) method. In SQL, it may compile to:

 ASIN(str)
 

Parameters:
  expr - The argument to the asin() method.
 NumericExpressionatanMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.tan(EXPRESSION) method. In SQL, it may compile to:

 ATAN(str)
 

Parameters:
  expr - The argument to the atan() method.
 NumericExpressionceilMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.ceil(EXPRESSION) method. In SQL, it may compile to:

 CEIL(str)
 

Parameters:
  expr - The argument to the ceil() method.
 NumericExpressioncosMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.cos(EXPRESSION) method. In SQL, it may compile to:

 COS(str)
 

Parameters:
  expr - The argument to the cos() method.
 BooleanExpressionendsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand)
     Returns whether this string ends with the specified string.
Parameters:
  leftOperand - the source string
Parameters:
  rightOperand - The string to compare against.
 NumericExpressionexpMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.exp(EXPRESSION) method. In SQL, it may compile to:

 EXP(str)
 

Parameters:
  expr - The argument to the exp() method.
 NumericExpressionfloorMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.floor(EXPRESSION) method. In SQL, it may compile to:

 FLOOR(str)
 

Parameters:
  expr - The argument to the floor() method.
 ScalarExpressiongetCurrentDateMethod(QueryExpression qs)
     Method to return an expression for the current date in the datastore.
 ScalarExpressiongetCurrentTimeMethod(QueryExpression qs)
     Method to return an expression for the current time in the datastore.
 ScalarExpressiongetCurrentTimestampMethod(QueryExpression qs)
     Method to return an expression for the current timestamp in the datastore.
 NumericExpressiongetDayMethod(SqlTemporalExpression source)
     Method to handle the Date.getDay() method in JDOQL.
 NumericExpressiongetHourMethod(SqlTemporalExpression source)
     Method to handle the Time.getHour() method in JDOQL.
 NumericExpressiongetMinuteMethod(SqlTemporalExpression source)
     Method to handle the Time.getMinute() method in JDOQL.
 NumericExpressiongetMonthMethod(SqlTemporalExpression source)
     Method to handle the Date.getMonth() method in JDOQL.
 NumericExpressiongetSecondMethod(SqlTemporalExpression source)
     Method to handle the Time.getSecond() method in JDOQL.
 NumericExpressiongetYearMethod(SqlTemporalExpression source)
     Method to handle the Date.getYear() method in JDOQL.
 NumericExpressionindexOfMethod(ScalarExpression source, ScalarExpression str, NumericExpression from)
     Method to handle the indexOf operation.
 NumericExpressionlengthMethod(StringExpression str)
     Returns the expression for the JDOQL String.length() method. In SQL, it may compile to:

 CHAR_LENGTH(str)
 

Parameters:
  str - The argument to the length() method.
 NumericExpressionlogMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.log(EXPRESSION) method. In SQL, it may compile to:

 LOG(str)
 

Parameters:
  expr - The argument to the log() method.
 BooleanExpressionmatchesMethod(StringExpression text, StringExpression pattern)
     Matches this to the argument expression pattern.
 NumericExpressionsinMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.sin(EXPRESSION) method. In SQL, it may compile to:

 SIN(str)
 

Parameters:
  expr - The argument to the sin() method.
 NumericExpressionsqrtMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.sqrt(EXPRESSION) method. In SQL, it may compile to:

 SQRT(str)
 

Parameters:
  expr - The argument to the sqrt() method.
 BooleanExpressionstartsWithMethod(ScalarExpression source, ScalarExpression str)
     Method to handle the starts with operation.
 StringExpressionsubstringMethod(StringExpression str, NumericExpression begin)
     Returns the expression for the JDOQL String.substring(str,begin) method. In SQL, it may compile to:

 SUBSTRING(str FROM begin)
 
Note that the value of begin is base 0(Java-style), while most SQL string functions use base 1.
Parameters:
  str - The first argument to the substring() method.
Parameters:
  begin - The second argument to the substring() method.
 StringExpressionsubstringMethod(StringExpression str, NumericExpression begin, NumericExpression end)
     Returns the expression for the JDOQL String.substring(str,begin,end) method. In SQL, it may compile to:

 SUBSTRING(str FROM begin FOR len)
 
Note that the value of begin is base 0 (Java-style), while most SQL string functions use base 1. Note also that an end position is given, while most SQL substring functions take a length.
Parameters:
  str - The first argument to the substring() method.
Parameters:
  begin - The second argument to the substring() method.
Parameters:
  end - The third argument to the substring() method.
 NumericExpressiontanMethod(ScalarExpression expr)
     Returns the expression for the JDOQL Math.tan(EXPRESSION) method. In SQL, it may compile to:

 TAN(str)
 

Parameters:
  expr - The argument to the tan() method.
 StringExpressiontranslateMethod(ScalarExpression expr, ScalarExpression toExpr, ScalarExpression fromExpr)
     Method to translate all chars in this expression to the fromExpr which corresponds to toExpr.
 StringExpressiontrimMethod(StringExpression str, boolean leading, boolean trailing)
     Returns the expression for the JDOQL String.trim(str) method.



Method Detail
absMethod
NumericExpression absMethod(ScalarExpression expr)(Code)
Returns the absolute expression for the JDOQL Math.abs(EXPRESSION) method. In SQL, it may compile to:

 ABS(str)
 

Parameters:
  expr - The argument to the abs() method. The expression.



acosMethod
NumericExpression acosMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.acos(EXPRESSION) method. In SQL, it may compile to:

 ACOS(str)
 

Parameters:
  expr - The argument to the cos() method. The expression.



asinMethod
NumericExpression asinMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.asin(EXPRESSION) method. In SQL, it may compile to:

 ASIN(str)
 

Parameters:
  expr - The argument to the asin() method. The expression.



atanMethod
NumericExpression atanMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.tan(EXPRESSION) method. In SQL, it may compile to:

 ATAN(str)
 

Parameters:
  expr - The argument to the atan() method. The expression.



ceilMethod
NumericExpression ceilMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.ceil(EXPRESSION) method. In SQL, it may compile to:

 CEIL(str)
 

Parameters:
  expr - The argument to the ceil() method. The expression.



cosMethod
NumericExpression cosMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.cos(EXPRESSION) method. In SQL, it may compile to:

 COS(str)
 

Parameters:
  expr - The argument to the cos() method. The expression.



endsWithMethod
BooleanExpression endsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand)(Code)
Returns whether this string ends with the specified string.
Parameters:
  leftOperand - the source string
Parameters:
  rightOperand - The string to compare against. Whether it ends with the string.



expMethod
NumericExpression expMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.exp(EXPRESSION) method. In SQL, it may compile to:

 EXP(str)
 

Parameters:
  expr - The argument to the exp() method. The expression.



floorMethod
NumericExpression floorMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.floor(EXPRESSION) method. In SQL, it may compile to:

 FLOOR(str)
 

Parameters:
  expr - The argument to the floor() method. The expression.



getCurrentDateMethod
ScalarExpression getCurrentDateMethod(QueryExpression qs)(Code)
Method to return an expression for the current date in the datastore.
Parameters:
  qs - QueryExpression Current date expression for this datastore



getCurrentTimeMethod
ScalarExpression getCurrentTimeMethod(QueryExpression qs)(Code)
Method to return an expression for the current time in the datastore.
Parameters:
  qs - QueryExpression Current time expression for this datastore



getCurrentTimestampMethod
ScalarExpression getCurrentTimestampMethod(QueryExpression qs)(Code)
Method to return an expression for the current timestamp in the datastore.
Parameters:
  qs - QueryExpression Current timestamp expression for this datastore



getDayMethod
NumericExpression getDayMethod(SqlTemporalExpression source)(Code)
Method to handle the Date.getDay() method in JDOQL.
Parameters:
  source - The date expression to find the day of month for The expression for the day of the month.



getHourMethod
NumericExpression getHourMethod(SqlTemporalExpression source)(Code)
Method to handle the Time.getHour() method in JDOQL.
Parameters:
  source - The time expression to find the hour for The expression for the hour.



getMinuteMethod
NumericExpression getMinuteMethod(SqlTemporalExpression source)(Code)
Method to handle the Time.getMinute() method in JDOQL.
Parameters:
  source - The time expression to find the minute for The expression for the minute.



getMonthMethod
NumericExpression getMonthMethod(SqlTemporalExpression source)(Code)
Method to handle the Date.getMonth() method in JDOQL.
Parameters:
  source - The date expression to find the month for The expression for the month.



getSecondMethod
NumericExpression getSecondMethod(SqlTemporalExpression source)(Code)
Method to handle the Time.getSecond() method in JDOQL.
Parameters:
  source - The time expression to find the second for The expression for the second.



getYearMethod
NumericExpression getYearMethod(SqlTemporalExpression source)(Code)
Method to handle the Date.getYear() method in JDOQL.
Parameters:
  source - The date expression to find the year for The expression for the year.



indexOfMethod
NumericExpression indexOfMethod(ScalarExpression source, ScalarExpression str, NumericExpression from)(Code)
Method to handle the indexOf operation.
Parameters:
  source - The expression with the searched string
Parameters:
  str - The expression for the search string
Parameters:
  from - Position to start searching from The expression.



lengthMethod
NumericExpression lengthMethod(StringExpression str)(Code)
Returns the expression for the JDOQL String.length() method. In SQL, it may compile to:

 CHAR_LENGTH(str)
 

Parameters:
  str - The argument to the length() method. The expression.



logMethod
NumericExpression logMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.log(EXPRESSION) method. In SQL, it may compile to:

 LOG(str)
 

Parameters:
  expr - The argument to the log() method. The expression.



matchesMethod
BooleanExpression matchesMethod(StringExpression text, StringExpression pattern)(Code)
Matches this to the argument expression pattern. Use "." to find any character and ".*" for wildcard matches. A global case-insensitive flag "(?i)" can be set for the pattern. If used, the global case-insensitive flag must prefix the pattern. The pattern passed to matches must be a literal or parameter.
Parameters:
  text - The argument to the length() method.
Parameters:
  pattern - The literal expression with the pattern. the match expression.



sinMethod
NumericExpression sinMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.sin(EXPRESSION) method. In SQL, it may compile to:

 SIN(str)
 

Parameters:
  expr - The argument to the sin() method. The expression.



sqrtMethod
NumericExpression sqrtMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.sqrt(EXPRESSION) method. In SQL, it may compile to:

 SQRT(str)
 

Parameters:
  expr - The argument to the sqrt() method. The expression.



startsWithMethod
BooleanExpression startsWithMethod(ScalarExpression source, ScalarExpression str)(Code)
Method to handle the starts with operation.
Parameters:
  source - The expression with the searched string
Parameters:
  str - The expression for the search string The expression.



substringMethod
StringExpression substringMethod(StringExpression str, NumericExpression begin)(Code)
Returns the expression for the JDOQL String.substring(str,begin) method. In SQL, it may compile to:

 SUBSTRING(str FROM begin)
 
Note that the value of begin is base 0(Java-style), while most SQL string functions use base 1.
Parameters:
  str - The first argument to the substring() method.
Parameters:
  begin - The second argument to the substring() method. The expression.



substringMethod
StringExpression substringMethod(StringExpression str, NumericExpression begin, NumericExpression end)(Code)
Returns the expression for the JDOQL String.substring(str,begin,end) method. In SQL, it may compile to:

 SUBSTRING(str FROM begin FOR len)
 
Note that the value of begin is base 0 (Java-style), while most SQL string functions use base 1. Note also that an end position is given, while most SQL substring functions take a length.
Parameters:
  str - The first argument to the substring() method.
Parameters:
  begin - The second argument to the substring() method.
Parameters:
  end - The third argument to the substring() method. The expression.



tanMethod
NumericExpression tanMethod(ScalarExpression expr)(Code)
Returns the expression for the JDOQL Math.tan(EXPRESSION) method. In SQL, it may compile to:

 TAN(str)
 

Parameters:
  expr - The argument to the tan() method. The expression.



translateMethod
StringExpression translateMethod(ScalarExpression expr, ScalarExpression toExpr, ScalarExpression fromExpr)(Code)
Method to translate all chars in this expression to the fromExpr which corresponds to toExpr. The expression.



trimMethod
StringExpression trimMethod(StringExpression str, boolean leading, boolean trailing)(Code)
Returns the expression for the JDOQL String.trim(str) method. In SQL, it may compile to:
TRIM(str)

Parameters:
  str - The first argument to the trim() method.
Parameters:
  leading - Whether to trim leading spaces
Parameters:
  trailing - Whether to trim trailing spaces The expression.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.