ObjectDB Database Search

1-50 of 130 results

jakarta.persistence.NamedNativeQuery.hints

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedNativeQuery QueryHint[] hints Query properties and hints . (May include vendor-specific query hints .) Default: {} Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedQuery.hints

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedQuery QueryHint[] hints (Optional) Query properties and hints . May include vendor-specific query hints . Default: {} Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedStoredProcedureQuery.hints

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQuery QueryHint[] hints Query properties and hints . (May include vendor-specific query hints .) Default: {} Since: Jakarta Persistence (JPA) 1.0

Setting and Tuning of JPA Queries

Hints Additional settings can be applied to queries via hints . Supported Query Hints ObjectDB supports the following query hints : "javax.persistence.query.timeout" - sets maximum query execution time ... . Setting Query Hint (Scopes) Query hints can be set in the following scopes (from global to local

query hint

some years ago there was a chat around query hints http://www.objectdb.com/issue/2417 we are currently trying that with the latest version but we do not see that our hint is used this is the query ... )']] but the index that is in the hint is not used   the MultiVarPlan that is listed shows our index in

Locking in JPA

occurs a LockTimeoutException is thrown immediately. The "javax.persistence.lock.timeout"   hint ... ;The hint can be set in several scopes: For the entire persistence unit - using a persistence.xml   ... . setProperty ("javax.persistence.lock.timeout", 4000); In addition, the hint can be set for a specific

jakarta.persistence.EntityManager

, it is returned from there. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: entityClass - entity class properties - standard and vendor-specific properties and hints ... only statement-level rollback If a vendor-specific property or hint is not recognized, it is silently

Database Management Settings

and the database file can improve performance. The max attribute is a hint that specifies the space ... engine settings: The cache attribute is a hint that specifies the amount of memory that is used

jakarta.persistence.TypedQuery

: flush mode. Since: Jakarta Persistence (JPA) 2.0 Map getHints () Get the properties and hints ... properties and hints . Since: Jakarta Persistence (JPA) 2.0 LockModeType getLockMode () Get the current ... TypedQuery setHint ( String hintName , Object value ) Set a query property or hint . The hints elements

jakarta.persistence.Query

() Get the properties and hints and associated values that are in effect for the query instance. Returns: query properties and hints . Since: Jakarta Persistence (JPA) 2.0 LockModeType getLockMode ... property or hint . The hints elements may be used to specify query properties and hints . Properties

jakarta.persistence.StoredProcedureQuery

and hints and associated values that are in effect for the query instance. Inherited from Query Returns: query properties and hints . Since: Jakarta Persistence (JPA) 2.0 LockModeType getLockMode ... or hint . The hints elements may be used to specify query properties and hints . Properties defined

JPA Named Queries

itself and are demonstrated above. The two optional elements,  lockMode and hints , provide static replacement

jakarta.persistence.NamedStoredProcedureQuery

sets is undefined. The hints element may be used to specify query properties and hints . Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not ... metadata. Default: {} Since: Jakarta Persistence (JPA) 1.0 QueryHint[] hints Query properties

jakarta.persistence.TypedQuery.setHint(String,Object)

;  String hintName ,    Object value ) Set a query property or hint . The hints elements may be used to specify query properties and hints . Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently

jakarta.persistence.StoredProcedureQuery.setHint(String,Object)

setHint (    String hintName ,    Object value ) Set a query property or hint . The hints elements may be used to specify query properties and hints . Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by

jakarta.persistence.Query.setHint(String,Object)

hintName ,    Object value ) Set a query property or hint . The hints elements may be used to specify query properties and hints . Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently ignored

jakarta.persistence.TypedQueryReference

) Since: Jakarta Persistence (JPA) 3.2 Public Instance Methods Map getHints () A map keyed by hint name of all hints specified via NamedQuery. hints or NamedNativeQuery. hints . Since: Jakarta Persistence (JPA) 1

jakarta.persistence.QueryHint

: Annotation Used to supply a query property or hint to the NamedQuery or NamedNativeQuery annotation. Vendor-specific hints that are not recognized by a provider are ignored. Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name Name of the hint . Since: Jakarta Persistence (JPA) 1.0

Read only hint for query

Second thing after @FetchGroup I've found is read-only hint for EM. You can specify this hint to EM when executing query meaning that returned data will never be edited or persisted. My understanding of this is that each entity returned from query is in detached state as default state. query

jakarta.persistence.NamedNativeQuery

. Since: Jakarta Persistence (JPA) 1.0 QueryHint[] hints Query properties and hints . (May include vendor-specific query hints .) Default: {} Since: Jakarta Persistence (JPA) 1.0 Class resultClass The class of each

jakarta.persistence.NamedQuery

.0 QueryHint[] hints (Optional) Query properties and hints . May include vendor-specific query hints

jakarta.persistence.EntityManager.setProperty(String,Object)

;  String propertyName ,    Object value ) Set an entity manager property or hint . If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: propertyName - name of the property or hint value - value for the property or hint Throws

jakarta.persistence.TypedQueryReference.getHints()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQueryReference Map getHints() A map keyed by hint name of all hints specified via NamedQuery. hints or NamedNativeQuery. hints . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

hint is not recognized, it is silently ignored. Portable applications should not rely on the standard timeout hint . Depending on the database in use and the locking mechanisms used by the provider, the hint may or may not be observed. Parameters: lockMode - lock mode entity - a managed entity instance

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

property or hint is not recognized, it is silently ignored. Portable applications should not rely on the standard timeout hint . Depending on the database in use and the locking mechanisms used by the provider, the hint may or may not be observed. Parameters: lockMode - lock mode entity - a managed entity

jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map)

-specific property or hint is not recognized, it is silently ignored. Portable applications should not rely on the standard timeout hint . Depending on the database in use and the locking mechanisms used by the provider, the hint may or may not be observed. Parameters: entityClass - entity class lockMode

jakarta.persistence.FetchType

on the persistence provider runtime that data must be eagerly fetched. The LAZY strategy is a hint to the persistence ... is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example

jakarta.persistence.Basic

must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified ... (Optional) Specifies whether the value of the field or property may be null. This is a hint

jakarta.persistence.PersistenceConfiguration

Default pessimistic lock timeout hint . Since: Jakarta Persistence (JPA) 1.0 QUERY_TIMEOUT Default query timeout hint . Since: Jakarta Persistence (JPA) 1.0 SCHEMAGEN_CREATE_SCRIPT_SOURCE

jakarta.persistence.TypedQuery.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setTimeout (    Integer timeout ) Set the query timeout, in milliseconds. This is a hint , and is an alternative to setting the hint jakarta.persistence.query.timeout . Parameters: timeout - the timeout, in

jakarta.persistence.StoredProcedureQuery.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setTimeout (    Integer timeout ) Set the query timeout, in milliseconds. This is a hint , and is an alternative to setting the hint jakarta.persistence.query.timeout . Parameters: timeout

jakarta.persistence.EntityManager.refresh(Object,Map)

=REFRESH . If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: entity - a managed entity instance properties - standard and vendor-specific properties and hints

jakarta.persistence.EntityManager.getProperties()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Map getProperties() The properties and hints and their associated values which are in effect for this entity manager. Modifying ... of properties and hints currently in effect. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.EntityManager.find(Class,Object,Map)

-specific property or hint is not recognized, it is silently ignored. Parameters: entityClass - entity class properties - standard and vendor-specific properties and hints primaryKey - primary key Returns

jakarta.persistence.Query.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setTimeout (    Integer timeout ) Set the query timeout, in milliseconds. This is a hint , and is an alternative to setting the hint jakarta.persistence.query.timeout . Parameters: timeout - the timeout, in milliseconds

jakarta.persistence.Query.getHints()

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Map getHints() Get the properties and hints and associated values that are in effect for the query instance. Returns: query properties and hints . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.ManyToMany

is a hint to the persistence provider runtime. If not specified, defaults to LAZY . Default: FetchType

jakarta.persistence.ManyToOne

must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not

jakarta.persistence.ElementCollection

must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified

jakarta.persistence.EntityManagerFactory

. This includes configuration information such as max results, hints , flush mode, lock mode, result set

jakarta.persistence.EntityTransaction

, in seconds. This is a hint . Parameters: timeout - the timeout, in seconds, or null to indicate

jakarta.persistence.Timeout

Jakarta Persistence (JPA) Class jakarta.persistence.Timeout java.lang.Object ∟ jakarta.persistence.Timeout Implemented Interfaces: FindOption , RefreshOption , LockOption Specifies a timeout for a database request. This option is always a hint , and may be ignored by the provider. Since: Jakarta

jakarta.persistence.OneToOne

fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults

jakarta.persistence.OneToMany

that the associated entities must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime

jakarta.persistence.Basic.fetch

fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified

jakarta.persistence.EntityManagerFactory.addNamedQuery(String,Query)

results, hints , flush mode, lock mode, result set mapping information, and information about stored

jakarta.persistence.EntityTransaction.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void setTimeout (    Integer timeout ) Set the transaction timeout, in seconds. This is a hint . Parameters: timeout - the timeout, in seconds, or null to indicate that the database server should set the timeout Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityManager.refresh(Object,RefreshOption...)

and the locking mechanisms used by the provider, the hint may or may not be observed. Parameters: options

jakarta.persistence.OneToOne.fetch

. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults to EAGER

jakarta.persistence.OneToMany.fetch

. The LAZY strategy is a hint to the persistence provider runtime. Default: FetchType.LAZY Since: Jakarta Persistence (JPA) 1.0