ObjectDB Database Search
1-50 of 169 resultsjakarta.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 java.util.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 java.util.Date to a named parameter. Parameters: name - parameter name temporalType | |
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 | |
jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String,Class,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType MapAttribute getDeclaredMap ( String name , Class keyType , Class valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name | |
jakarta.persistence.metamodel.ManagedType.getCollection(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getCollection ( String name , Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type | |
jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getDeclaredCollection ( String name , Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java | |
ORDER BY problem, when String starts with language specific character anaq x ObjectDB uses the ordinal Java String lexicographical order, which is based on the order ... fields - name and normalizedName , and just keeping strings in name using the decomposed form ... .*; public final class T352 { public static void main( String [] args)   | |
like operator (String); objectdb-2.4.7_07, alsothere exists an @Index for String email   | |
SELECT clause (JPQL / Criteria API), the following query returns country names as String instances, rather than Country objects: SELECT ... of the previous query are returned as a list of String values: TypedQuery query = em. createQuery ( "SELECT c.name FROM Country AS c", String .class); List results = query. getResultList (); You can use | |
JPA Entity Fields { String name; @ManyToOne Department department; } @Entity public class Department { @OneToMany ... () { return _id; } void setId(int id) { _id = id; } private String str; String getStr() { return str; } void setStr( String str) { this.str = str; } } In some JPA implementations, such as Hibernate | |
jakarta.persistence.EntityManager createEntityGraph ( String graphName ) Obtain a mutable copy of a named EntityGraph , or return null ... graph. Since: Jakarta Persistence (JPA) 2.1 Query createNamedQuery ( String name ) Create an instance ... string is found to be invalid. See Also: NamedQuery NamedNativeQuery Since: Jakarta Persistence (JPA | |
jakarta.persistence.EntityGraph.createEntityGraph( String ) EntityManager.getEntityGraph( String ) EntityManagerFactory.addNamedEntityGraph( String , EntityGraph) EntityManager.find(EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 2.1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName | |
Server Configuration the connection URL string , as explained in the JPA Overview section. The max attribute specifies | |
jakarta.persistence.Graph Instance Methods AttributeNode addAttributeNode ( String attributeName ) Get an existing attribute node ... Persistence (JPA) 3.2 void addAttributeNodes ( String ... attributeName ) Add one or more attribute ... ) 3.2 Subgraph addElementSubgraph ( String attributeName ) Add a node to the graph that corresponds | |
jakarta.persistence.Embeddable; ... } Example 2: @Embeddable public class PhoneNumber { protected String areaCode; protected String ... PhoneServiceProvider { @Id protected String name; ... } Example 3: @Embeddable public class Address { protected String street; protected String city; protected String state; @Embedded protected Zipcode zipcode | |
jakarta.persistence.DiscriminatorColumn to DiscriminatorType. STRING . Example: @Entity @Table(name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn(name = "DISC", discriminatorType = STRING , length = 20) public class Customer ... DiscriminatorType Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Optional) The name | |
jakarta.persistence.MapKeyJoinColumn") Map organization; } Example 2: @Entity public class VideoStore { @Id int id; String name; Address ... = "ID") Map videoInventory; ... } @Entity public class Movie { @Id long id; String title ... ; ... } See Also: ForeignKey Since: Jakarta Persistence (JPA) 2.0 Annotation Elements String name | |
jakarta.persistence.JoinColumn CollectionTable ForeignKey Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Optional ... Persistence (JPA) 1.0 String referencedColumnName (Optional) The name of the column referenced by ... Since: Jakarta Persistence (JPA) 1.0 String columnDefinition (Optional) The SQL fragment that is used | |
jakarta.persistence.PessimisticLockException. Since: Jakarta Persistence (JPA) 1.0 PessimisticLockException ( String message ) Constructs a new ... . Since: Jakarta Persistence (JPA) 1.0 PessimisticLockException ( String message , Throwable cause ... PessimisticLockException ( String message , Throwable cause , Object entity ) Constructs a new PessimisticLockException | |
jakarta.persistence.JoinTable Persistence (JPA) 1.0 Annotation Elements String name (Optional) The name of the join table. Defaults ... . Default: "" Since: Jakarta Persistence (JPA) 1.0 String catalog (Optional) The catalog of the table. Defaults to the default catalog. Default: "" Since: Jakarta Persistence (JPA) 1.0 String schema | |
jakarta.persistence.LockTimeoutException ( String message ) Constructs a new LockTimeoutException exception with the specified detail message ... ( String message , Throwable cause ) Constructs a new LockTimeoutException exception with the specified ... LockTimeoutException ( String message , Throwable cause , Object entity ) Constructs a new | |
jakarta.persistence.EnumType() member. Since: Jakarta Persistence (JPA) 1.0 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#name ... ( String ) Additional JDK methods inherited from java.lang.Enum java.lang.Enum/clone(), java.lang.Enum | |
[ODB1] Chapter 6 - Persistent Objects is applicable to all persistent types, including system types, such as String and ArrayList (a complete list ... the numeric ID of the object as a string . The ability to convert Object IDs to strings , and the ability to convert strings back to object IDs (as shown in the next section), make object IDs very useful | |
Step 2: Entity Class and Persistence Unit String name; private Date signingDate; // Constructors: public Guest() { } public Guest( String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation: @Override public String toString() { return name + " (signed on " + signingDate | |
Step 2: Define a JPA Entity Class public String toString() { return String .format("(%d, %d)", this.x, this.y); } } The new class | |
Step 2: Define a JPA Entity Class() { return id; } public int getX() { return x; } public int getY() { return y; } @Override public String toString() { return String .format("(%d, %d)", this.x, this.y); } } The new class should represent Point | |
Step 4: Add a Controller Class") public ModelAndView guestbook(HttpServletRequest request) { // Handle a new guest (if any): String | |
Step 4: Add a Servlet Class a new guest (if any): String name = request.getParameter("name"); if (name != null) { em |