ObjectDB Database Search
1-50 of 200 resultsStrings in JPQL and Criteria Queries String values may appear in JPQL queries in various forms: as string literals - e.g. 'abc' , ''. as parameters - when string values are assigned as arguments. as path expressions - in navigation to persistent string fields. as results of predefined JPQL string manipulation functions | |
jakarta.persistence.criteria.CriteriaBuilder.replace(Expression,String,String) replace ( Expression x , String substring , String replacement ) Create an expression replacing every occurrence of a substring within a string . Parameters: x - string expression replacement - the replacement string substring - the literal substring to replace | |
jakarta.persistence.EntityManager.createNativeQuery(String,String) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Query createNativeQuery ( String sqlString , String resultSetMapping ) Create an instance of Query ... sqlString - a native SQL query string Returns: the new query instance. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createStoredProcedureQuery(String,String...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager StoredProcedureQuery createStoredProcedureQuery ( String procedureName , String ... resultSetMappings ) Create an instance of StoredProcedureQuery for executing a stored procedure in the database | |
jakarta.persistence.criteria.CriteriaBuilder.locate(Expression,String,int) ( Expression x , String pattern , int from ) Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 | |
jakarta.persistence.criteria.CriteriaBuilder.locate(Expression,String) ( Expression x , String pattern ) Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning | |
jakarta.persistence.criteria.CriteriaBuilder.replace(Expression,String,Expression) replace ( Expression x , String substring , Expression replacement ) Create an expression replacing every occurrence of a substring within a string . Parameters: x - string expression replacement - the replacement string substring - the literal substring to replace | |
jakarta.persistence.criteria.CriteriaBuilder.replace(Expression,Expression,String) replace ( Expression x , Expression substring , String replacement ) Create an expression replacing every occurrence of a substring within a string . Parameters: x - string expression replacement - the replacement string substring - the literal substring to replace | |
jakarta.persistence.criteria.CriteriaBuilder.concat(Expression,String) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression concat ( Expression x , String y ) Create an expression for string concatenation. Parameters: x - string expression y - string Returns: expression corresponding to concatenation. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.concat(String,Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression concat ( String x , Expression y ) Create an expression for string concatenation. Parameters: x - string y - string expression Returns: expression corresponding to concatenation. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createQuery(String); String qlString ) Create an instance of Query for executing a Jakarta Persistence query language statement. Parameters: qlString - a Jakarta Persistence query string Returns: the new query instance. Throws: IllegalArgumentException - if the query string is found to be invalid. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.notLike(Expression,String,Expression) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate notLike ( Expression x , String pattern , Expression escapeChar ... : x - string expression pattern - string escapeChar - escape character expression Returns: not-like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.notLike(Expression,String,char) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate notLike ( Expression x , String pattern , char escapeChar ) Create ... - string expression pattern - string escapeChar - escape character Returns: not-like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.like(Expression,String,Expression) ( Expression x , String pattern , Expression escapeChar ) Create a predicate for testing whether the expression satisfies the given pattern. Parameters: x - string expression pattern - string escapeChar - escape character expression Returns: like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.like(Expression,String,char) ( Expression x , String pattern , char escapeChar ) Create a predicate for testing whether the expression satisfies the given pattern. Parameters: x - string expression pattern - string escapeChar - escape character Returns: like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.notLike(Expression,String) ( Expression x , String pattern ) Create a predicate for testing whether the expression does not satisfy the given pattern. Parameters: x - string expression pattern - string Returns: not-like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createQuery(String,Class) ( String qlString , Class resultClass ) Create an instance of TypedQuery ... . Parameters: qlString - a Jakarta Persistence query string resultClass - the type of the query result Returns: the new query instance. Throws: IllegalArgumentException - if the query string is found | |
jakarta.persistence.criteria.CriteriaBuilder.like(Expression,String) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate like ( Expression x , String pattern ) Create a predicate for testing whether the expression satisfies the given pattern. Parameters: x - string expression pattern - string Returns: like predicate. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EnumType.STRING Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.EnumType STRING Persist enumerated type property or field as a string . The string value of an enum instance with no EnumeratedValue field is the value of its Enum.java.lang.Enum/name() member. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.Path.get(String) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Path Path get ( String attributeName ) Create a path corresponding to the referenced attribute. Note: Applications using the string -based API may need to specify the type resulting from the Path.get operation in order | |
jakarta.persistence.DiscriminatorType.STRING Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.DiscriminatorType STRING String as the discriminator type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createNativeQuery(String) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Query createNativeQuery ( String sqlString ) Create an instance of Query for executing a native SQL statement, e.g ... - a native SQL query string Returns: the new query instance. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createNativeQuery(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Query createNativeQuery ( String sqlString , Class resultClass ) Create an instance of Query ... to TypedQuery . Parameters: sqlString - a native SQL query string resultClass - the type | |
jakarta.persistence.EntityManager.createNamedQuery(String) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Query createNamedQuery ( String name ) Create an instance of Query for executing a named query written in ... been defined with the given name or if the query string is found to be invalid. See Also: NamedQuery NamedNativeQuery Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.createNamedQuery(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager TypedQuery createNamedQuery ( String name , Class resultClass ) Create an instance of TypedQuery ... with the given name or if the query string is found to be invalid or if the query result is found | |
jakarta.persistence.PersistenceConfiguration.property(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration property ( String name , Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SingularAttribute getSingularAttribute ( String name ) Return the single-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SingularAttribute getDeclaredSingularAttribute ( String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name | |
jakarta.persistence.metamodel.ManagedType.getCollection(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getCollection ( String name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getDeclaredCollection ( String name ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name | |
jakarta.persistence.PersistenceUnitUtil.load(Object,String) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load ( Object entity , String attributeName ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context | |
jakarta.persistence.metamodel.ManagedType.getAttribute(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: attribute with given | |
jakarta.persistence.metamodel.ManagedType.getDeclaredAttribute(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Attribute getDeclaredAttribute ( String name ) Return the attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns | |
jakarta.persistence.metamodel.ManagedType.getMap(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType MapAttribute getMap ( String name ) Return the Map-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: MapAttribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType MapAttribute getDeclaredMap ( String name ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isLoaded ( Object entity , String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name | |
jakarta.persistence.metamodel.ManagedType.getSet(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SetAttribute getSet ( String name ) Return the Set-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: SetAttribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSet(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SetAttribute getDeclaredSet ( String name ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute | |
jakarta.persistence.metamodel.ManagedType.getList(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType ListAttribute getList ( String name ) Return the List-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns | |
jakarta.persistence.metamodel.ManagedType.getDeclaredList(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType ListAttribute getDeclaredList ( String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute | |
jakarta.persistence.metamodel.Metamodel.entity(String) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel EntityType entity ( String entityName ) Return the metamodel entity type representing the entity. Parameters: entityName - the name of the represented entity Returns: the metamodel entity type. Throws | |
jakarta.persistence.TypedQuery.setParameter(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery 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.TypedQuery.setParameter(String,Calendar,TemporalType) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter ( String name , Calendar value , TemporalType temporalType ) Bind an instance of Calendar to a named parameter. Parameters: name - parameter name temporalType | |
jakarta.persistence.TypedQuery.setParameter(String,Date,TemporalType) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter ( String name , Date value , TemporalType temporalType ) Bind an instance of Date to a named parameter. Parameters: name - parameter name temporalType - temporal type | |
jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SingularAttribute getSingularAttribute ( String name , Class type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType SingularAttribute getDeclaredSingularAttribute ( String name , Class type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type | |
jakarta.persistence.TypedQuery.setHint(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery 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 | |
jakarta.persistence.metamodel.ManagedType.getList(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType ListAttribute getList ( String name , Class elementType ) Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name | |
jakarta.persistence.metamodel.ManagedType.getDeclaredList(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType ListAttribute getDeclaredList ( String name , Class elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type | |
jakarta.persistence.metamodel.ManagedType.getMap(String,Class,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType MapAttribute getMap ( String name , Class keyType , Class valueType ) Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key |