Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.ejbgen
Annotation Type Select


@Retention(value=CLASS)
@Target(value=java.lang.annotation.ElementType.METHOD)
public @interface Select


Optional Element Summary
 String cachingName
          Specifies the name of an eager relationship caching.
 String ejbQl
          Specifies the EJB-QL that defines this select method.
 String groupName
          Names the group for the WebLogic Server query.
 Constants.Bool includeUpdates
          (True|False) Determines whether updates made during the current transaction must be reflected in the result of a query.
 String maxElements
          Specifies the maximum number of elements that should be returned by a multi-valued query.
 String orderingNumber
          (0..n) Specifies the number where this method must appear in the generated class.
 Select.ResultTypeMapping resultTypeMapping
          (Remote|Local) Specifies whether the returned objects are mapped to EJBLocalObject or EJBObject.
 Constants.Bool sqlSelectDistinct
          (True|False) Determines whether the generated SQL SELECT will contain a DISTINCT qualifier.
 String weblogicEjbQl
          Specifies the Weblogic Server EJB-QL request as it will appear in the deployment descriptor.
 

cachingName

public abstract String cachingName
Specifies the name of an eager relationship caching.

Default:
"UNSPECIFIED"

groupName

public abstract String groupName
Names the group for the WebLogic Server query.

Default:
"UNSPECIFIED"

maxElements

public abstract String maxElements
Specifies the maximum number of elements that should be returned by a multi-valued query.

Default:
"UNSPECIFIED"

sqlSelectDistinct

public abstract Constants.Bool sqlSelectDistinct
(True|False) Determines whether the generated SQL SELECT will contain a DISTINCT qualifier.

Default:
weblogic.ejbgen.Constants.Bool.UNSPECIFIED

includeUpdates

public abstract Constants.Bool includeUpdates
(True|False) Determines whether updates made during the current transaction must be reflected in the result of a query.

Default:
weblogic.ejbgen.Constants.Bool.UNSPECIFIED

orderingNumber

public abstract String orderingNumber
(0..n) Specifies the number where this method must appear in the generated class.

Default:
"UNSPECIFIED"

ejbQl

public abstract String ejbQl
Specifies the EJB-QL that defines this select method. The method name must start with ejbSelect.

Default:
"UNSPECIFIED"

weblogicEjbQl

public abstract String weblogicEjbQl
Specifies the Weblogic Server EJB-QL request as it will appear in the deployment descriptor. Note: if this request is needed, enclose both EJB-QL and Weblogic Server EJB-QL within double quotes.

Default:
"UNSPECIFIED"

resultTypeMapping

public abstract Select.ResultTypeMapping resultTypeMapping
(Remote|Local) Specifies whether the returned objects are mapped to EJBLocalObject or EJBObject.

Default:
weblogic.ejbgen.Select.ResultTypeMapping.UNSPECIFIED

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01