10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Full Query Language Syntax<br />

740<br />

single_valued_association_path_expression}.state_field<br />

single_valued_association_path_expression ::=<br />

identification_variable.{single_valued_association_field.}*<br />

single_valued_association_field<br />

collection_valued_path_expression ::=<br />

identification_variable.{single_valued_association_field.}*<br />

collection_valued_association_field<br />

state_field ::=<br />

{embedded_class_state_field.}*simple_state_field<br />

update_clause ::=UPDATE abstract_schema_name [[AS]<br />

identification_variable] SET update_item {, update_item}*<br />

update_item ::= [identification_variable.]{state_field |<br />

single_valued_association_field} = new_value<br />

new_value ::=<br />

simple_arithmetic_expression |<br />

string_primary |<br />

datetime_primary |<br />

boolean_primary |<br />

enum_primary simple_entity_expression |<br />

NULL<br />

delete_clause ::= DELETE FROM abstract_schema_name [[AS]<br />

identification_variable]<br />

select_clause ::= SELECT [DISTINCT] select_expression {,<br />

select_expression}*<br />

select_expression ::=<br />

single_valued_path_expression |<br />

aggregate_expression |<br />

identification_variable |<br />

OBJECT(identification_variable) |<br />

constructor_expression<br />

constructor_expression ::=<br />

NEW constructor_name(constructor_item {,<br />

constructor_item}*)<br />

constructor_item ::= single_valued_path_expression |<br />

aggregate_expression<br />

aggregate_expression ::=<br />

{AVG |MAX |MIN |SUM} ([DISTINCT]<br />

state_field_path_expression) |<br />

COUNT ([DISTINCT] identification_variable |<br />

state_field_path_expression |<br />

single_valued_association_path_expression)<br />

where_clause ::= WHERE conditional_expression<br />

groupby_clause ::= GROUP BY groupby_item {, groupby_item}*<br />

groupby_item ::= single_valued_path_expression<br />

having_clause ::= HAVING conditional_expression<br />

orderby_clause ::= ORDER BY orderby_item {, orderby_item}*<br />

orderby_item ::= state_field_path_expression [ASC |DESC]<br />

subquery ::= simple_select_clause subquery_from_clause<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!