ObjectDB Database Search

101-150 of 200 results

jakarta.persistence.criteria.LocalTimeField.LocalTimeField(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.criteria.LocalTimeField LocalTimeField (    String name ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.getEntityGraph(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager EntityGraph getEntityGraph (    String graphName ) Obtain a named EntityGraph . The returned instance of EntityGraph should be considered immutable. Parameters: graphName - name of an existing entity graph Returns

jakarta.persistence.LockTimeoutException.LockTimeoutException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (    String message ) Constructs a new LockTimeoutException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.LockTimeoutException.LockTimeoutException(String,Throwable)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (    String message ,    Throwable cause ) Constructs a new LockTimeoutException exception with the specified detail message and cause. Parameters: cause - the cause. message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.LockTimeoutException.LockTimeoutException(String,Throwable,Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (    String message ,    Throwable cause ,    Object entity ) Constructs a new LockTimeoutException exception with the specified detail message, cause, and entity

jakarta.persistence.TransactionRequiredException.TransactionRequiredException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.TransactionRequiredException TransactionRequiredException (    String message ) Constructs a new TransactionRequiredException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TransactionRequiredException.TransactionRequiredException(String,Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.TransactionRequiredException TransactionRequiredException (    String message ,    Exception cause ) Constructs a new TransactionRequiredException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

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

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void setProperty (    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

jakarta.persistence.criteria.LocalDateField.LocalDateField(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.criteria.LocalDateField LocalDateField (    String name ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.LocalDateTimeField.LocalDateTimeField(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.criteria.LocalDateTimeField LocalDateTimeField (    String name ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Persistence.PersistenceUtilImpl.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence.PersistenceUtilImpl boolean isLoaded (    Object entity ,    String attributeName ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Persistence.createEntityManagerFactory(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    String persistenceUnitName ) Create and return an EntityManagerFactory for the named persistence unit. Parameters: persistenceUnitName - the name of the persistence

jakarta.persistence.Persistence.createEntityManagerFactory(String,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    String persistenceUnitName ,    Map properties ) Create and return an EntityManagerFactory for the named persistence unit, using the given properties

jakarta.persistence.PersistenceConfiguration.provider(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration provider (    String providerClassName ) Specify the persistence provider. Parameters: providerClassName - the qualified name of the persistence provider class Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.jtaDataSource(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration jtaDataSource (    String dataSourceJndiName ) Specify the JNDI name of a JTA javax.sql.DataSource . Parameters: dataSourceJndiName - the JNDI name of a JTA datasource Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Persistence.generateSchema(String,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence void generateSchema (    String persistenceUnitName ,    Map map ) Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called when schema generation

jakarta.persistence.EntityNotFoundException.EntityNotFoundException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.EntityNotFoundException EntityNotFoundException (    String message ) Constructs a new EntityNotFoundException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.parameter(Class,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder ParameterExpression parameter (    Class paramClass ,    String name ) Create a parameter expression with the given name. Parameters: name - name that can be used to refer to the parameter

jakarta.persistence.EntityNotFoundException.EntityNotFoundException(String,Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.EntityNotFoundException EntityNotFoundException (    String message ,    Exception cause ) Constructs a new EntityNotFoundException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.FetchParent.fetch(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    String attributeName ) Create a fetch join to the specified attribute using an inner join. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting

jakarta.persistence.criteria.FetchParent.fetch(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    String attributeName ,    JoinType jt ) Create a fetch join to the specified attribute using the given join type. Parameters: attributeName - name of the attribute for the target

jakarta.persistence.SchemaValidationException.SchemaValidationException(String,Exception...)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.SchemaValidationException SchemaValidationException (    String message ,    Exception... failures ) Constructs a new instance with a message and, optionally, an array of exceptions, each representing a problem

jakarta.persistence.criteria.From.join(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From Join join (    String attributeName ) Create an inner join to the specified attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join. Throws

jakarta.persistence.criteria.From.join(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From Join join (    String attributeName ,    JoinType jt ) Create a join to the specified attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt

jakarta.persistence.criteria.From.joinCollection(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From CollectionJoin joinCollection (    String attributeName ,    JoinType jt ) Create a join to the specified Collection -valued attribute using the given join type. Parameters: attributeName - name

jakarta.persistence.criteria.From.joinSet(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From SetJoin joinSet (    String attributeName ,    JoinType jt ) Create a join to the specified Set -valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target

jakarta.persistence.criteria.From.joinList(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From ListJoin joinList (    String attributeName ,    JoinType jt ) Create a join to the specified List -valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target

jakarta.persistence.criteria.From.joinCollection(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From CollectionJoin joinCollection (    String attributeName ) Create an inner join to the specified Collection -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns

jakarta.persistence.criteria.From.joinSet(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From SetJoin joinSet (    String attributeName ) Create an inner join to the specified Set -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join. Throws

jakarta.persistence.criteria.From.joinList(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From ListJoin joinList (    String attributeName ) Create an inner join to the specified List -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join

jakarta.persistence.criteria.From.joinMap(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From MapJoin joinMap (    String attributeName ) Create an inner join to the specified Map -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join. Throws

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

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery 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

jakarta.persistence.criteria.CriteriaUpdate.set(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    String attributeName ,    Object value ) Update the value of the specified attribute. Parameters: attributeName - name of the attribute to be updated value - new value

jakarta.persistence.Query.getParameter(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Parameter getParameter (    String name ) Get the parameter object corresponding to the declared parameter of the given name. This method is not required to be supported for native queries. Parameters: name - parameter name

jakarta.persistence.Query.getParameter(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Parameter getParameter (    String name ,    Class type ) Get the parameter object corresponding to the declared parameter of the given name and type. This method is required to be supported for criteria queries

jakarta.persistence.Query.setParameter(String,Calendar,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setParameter (    String name ,    Calendar value ,    TemporalType temporalType ) Bind an instance of Calendar to a named parameter. Parameters: name - parameter name temporalType - temporal type

jakarta.persistence.Query.setParameter(String,Date,TemporalType)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setParameter (    String name ,    Date value ,    TemporalType temporalType ) Bind an instance of Date to a named parameter. Parameters: name - parameter name temporalType - temporal type value

jakarta.persistence.Query.getParameterValue(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Object getParameterValue (    String name ) Return the input value bound to the named parameter. (Note that OUT parameters are unbound.) Parameters: name - parameter name Returns: parameter value. Throws: IllegalStateException

jakarta.persistence.PersistenceUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUtil boolean isLoaded (    Object entity ,    String attributeName ) Determine the load state of a given persistent attribute. Parameters: attributeName - name of attribute whose load state is to be determined

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

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setParameter (    String name ,    Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws

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

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query 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

jakarta.persistence.PersistenceConfiguration.mappingFile(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration mappingFile (    String name ) Add the path of an XML mapping file loaded as a resource to the configuration. Parameters: name - the resource path of the mapping file Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.function(String,Class,Expression...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression function (    String name ,    Class type ,    Expression ... args ) Create an expression for the execution of a database function. Parameters: name - function name args

jakarta.persistence.PersistenceConfiguration.nonJtaDataSource(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration nonJtaDataSource (    String dataSourceJndiName ) Specify the JNDI name of a non-JTA javax.sql.DataSource . Parameters: dataSourceJndiName - the JNDI name of a non-JTA datasource

Query Parameters in JPA

with different parameter values is more efficient than using a new query string for each execution ... , String name) { TypedQuery query = em. createQuery ( "SELECT c FROM Country c WHERE c.name = :name ... the call to getSingleResult in the same expression. Named parameters in a query string are identifiable by

Index Definition

class EntityWithSimpleIndex { @Index String indexedField1; @Index ( unique ="true") int indexedField2 ... , Integer , Long , Float , Double java.math.BigInteger , java.math.BigDecimal java.lang. String java ... ={"lastName","firstName"}) public class EntityWithCompositeIndex { String firstName; String

JPA Criteria API Queries

are defined as strings , similar to SQL. In contrast, JPA Criteria queries are defined by instantiating ... compile-time error checking. Errors in string -based JPQL queries, however, are found at runtime. Many developers find string -based JPQL queries easier to use and understand

Literals in JPQL and Criteria Queries

, including NULL , boolean literals ( TRUE and FALSE ), numeric literals (for example, 100 ), string ... ) numeric literals. This feature is not supported by all JPA implementations. String literals JPQL follows SQL syntax for string literals. Strings are enclosed in single quotation marks (for example

jakarta.persistence.criteria.CriteriaBuilder

) Create an expression for string concatenation. If the given list of expressions is empty, returns an expression equivalent to literal("") . Parameters: expressions - string expressions Returns: expression ... x , Expression y ) Create an expression for string concatenation. Parameters: x - string expression

JPA Persistable Types

superclasses, and embeddable classes. Simple Java data types: Primitive types, wrapper classes, ` String ... { String street; String city; String state; String country; String zip; } Instances of embeddable ... , Integer , Long , Float and Double . java.math.BigInteger , java.math.BigDecimal . java.lang. String . java