Home » apache-tomcat-6.0.26-src » javax » persistence »

javax.persistence

Sub Packages:

javax.persistence.spi   The javax.persistence.spi package defines the classes and interfaces that are implemented by the persistence provider and the Java EE container for use by the container, provider, and/or Persistence bootstrap class in deployment and bootstrapping.  

Interfaces:

EntityManager   Interface used to interact with the persistence context.  code | html
EntityManagerFactory   The EntityManagerFactory interface is used by the application to obtain an application-managed entity manager.  code | html
EntityTransaction   The EntityTransaction interface is used to control resource transactions on resource-local entity managers.  code | html
Query   Interface used to control query execution.  code | html

Classes:

CascadeType   Defines the set of cascadable operations that are propagated to the associated entity.  code | html
DiscriminatorType   Defines supported types of the discriminator column  code | html
EnumType   Defines mapping for the enumerated types.  code | html
FetchType   Defines strategies for fetching data from the database.  code | html
FlushModeType   Flush mode setting.  code | html
GenerationType   Defines the types of primary key generation.  code | html
InheritanceType   Defines inheritance strategy options.  code | html
LockModeType   Lock modes that can be specified by means of the EntityManager.lock() method.  code | html
PersistenceContextType     code | html
TemporalType   Type used to indicate a specific mapping of java.util.Date or {@link java.util.Calendar).  code | html
AssociationOverride   This annotation is used to override a many-to-one or one-to-one mapping of property or field for an entity relationship.  code | html
AssociationOverrides   This annotation is used to override mappings of multiple many-to-one or one-to-one relationship properties or fields.  code | html
AttributeOverride   The AttributeOverride annotation is used to override the mapping of a Basic (whether explicit or default) property or field or Id property or field.  code | html
AttributeOverrides   Is used to override mappings of multiple properties or fields  code | html
Basic   The Basic annotation is the simplest type of mapping to a database column.  code | html
Column   Is used to specify a mapped column for a persistent property or field.  code | html
ColumnResult   References name of a column in the SELECT clause of a SQL query - i.e., column alias, if applicable.  code | html
DiscriminatorColumn   Is used to define the discriminator column for the SINGLE_TABLE and JOINED inheritance mapping strategies.  code | html
DiscriminatorValue   Is used to specify the value of the discriminator column for entities of the given type.  code | html
Embeddable   Defines a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity.  code | html
Embedded   Defines a persistent field or property of an entity whose value is an instance of an embeddable class.  code | html
EmbeddedId   Is applied to a persistent field or property of an entity class or mapped superclass to denote a composite primary key that is an embeddable class.  code | html
Entity   Specifies that the class is an entity. This annotation is applied to the entity class.  code | html
EntityExistsException   Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists.  code | html
EntityListeners   Specifies the callback listener classes to be used for an entity or mapped superclass.  code | html
EntityNotFoundException   Thrown by the persistence provider when an entity reference obtained by EntityManager.getReference(Class,Object) is accessed but the entity does not exist.  code | html
EntityResult   References an entity in the SELECT clause of a SQL query.  code | html
Enumerated   Specifies that a persistent property or field should be persisted as a enumerated type.  code | html
ExcludeDefaultListeners   Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses.  code | html
ExcludeSuperclassListeners   Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass) and its subclasses.  code | html
FieldResult   Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class.  code | html
GeneratedValue   Provides for the specification of generation strategies for the values of primary keys.  code | html
Id   Specifies the primary key property or field of an entity.  code | html
IdClass   Specifies a composite primary key class that is mapped to multiple fields or properties of the entity.  code | html
Inheritance   Defines the inheritance strategy to be used for an entity class hierarchy.  code | html
JoinColumn   Is used to specify a mapped column for joining an entity association.  code | html
JoinColumns   Defines mapping for the composite foreign keys.  code | html
JoinTable   This annotation is used in the mapping of associations.  code | html
Lob   Specifies that a persistent property or field should be persisted as a large object to a database-supported large object type.  code | html
ManyToMany   Defines a many-valued association with many-to-many multiplicity.  code | html
ManyToOne   This annotation defines a single-valued association to another entity class that has many-to-one multiplicity.  code | html
MapKey   Is used to specify the map key for associations of type Map.  code | html
MappedSuperclass   Designates a class whose mapping information is applied to the entities that inherit from it.  code | html
NamedNativeQueries   Is used to specify an array of native SQL named queries. Query names are scoped to the persistence unit  code | html
NamedNativeQuery   Is used to specify a native SQL named query. Query names are scoped to the persistence unit.  code | html
NamedQueries   Specifies an array of named Java Persistence query language queries. Query names are scoped to the persistence unit.  code | html
NamedQuery   Is used to specify a named query in the Java Persistence query language, which is a static query expressed in metadata.  code | html
NoResultException   Thrown by the persistence provider when getSingleResult() is executed on a query and there is no result to return.  code | html
NonUniqueResultException   Thrown by the persistence provider when getSingleResult() is executed on a query and there is more than one result from the query.  code | html
OneToMany   Defines a many-valued association with one-to-many multiplicity.  code | html
OneToOne   This annotation defines a single-valued association to another entity that has one-to-one multiplicity.  code | html
OptimisticLockException   Thrown by the persistence provider when an optimistic locking conflict occurs.  code | html
OrderBy   This annotation specifies the ordering of the elements of a collection valued association at the point when the association is retrieved.  code | html
Persistence   Bootstrap class that provides access to an EntityManagerFactory.  code | html
PersistenceContext     code | html
PersistenceContexts     code | html
PersistenceException   Thrown by the persistence provider when a problem occurs.  code | html
PersistenceProperty     code | html
PersistenceUnit     code | html
PersistenceUnits     code | html
PostLoad   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PostPersist   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PostRemove   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PostUpdate   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PrePersist   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PreRemove   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PreUpdate   Is used to specify callback methods for the corresponding lifecycle event.  code | html
PrimaryKeyJoinColumn   This annotation specifies a primary key column that is used as a foreign key to join to another table.  code | html
PrimaryKeyJoinColumns   This annotation groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys.  code | html
QueryHint   An implementation-specific Query hint  code | html
RollbackException   Thrown by the persistence provider when the EntityTransaction.commit() fails  code | html
SecondaryTable   This annotation is used to specify a secondary table for the annotated entity class.  code | html
SecondaryTables   This annotation is used to specify multiple secondary tables for an entity.  code | html
SequenceGenerator   This annotation defines a primary key generator that may be referenced by name when a generator element is specified for the GeneratedValue annotation.  code | html
SqlResultSetMapping   This annotation is used to specify the mapping of the result of a native SQL query  code | html
SqlResultSetMappings   This annotation is used to define one or more SqlResultSetMapping  code | html
Table   This annotation specifies the primary table for the annotated entity.  code | html
TableGenerator   This annotation defines a primary key generator that may be referenced by name when a generator element is specified for the GeneratedValue annotation.  code | html
Temporal   This annotation must be specified for persistent fields or properties of type Date and Calendar.  code | html
TransactionRequiredException   Thrown by the persistence provider when a transaction is required but is not active.  code | html
Transient   This annotation specifies that the property or field is not persistent.  code | html
UniqueConstraint   This annotation is used to specify that a unique constraint is to be included in the generated DDL for a primary or secondary table  code | html
Version   This annotation specifies the version field or property of an entity class that serves as its optimistic lock value.  code | html