Home » Search

About PrimaryKey

1-10 of 25Refresh
JPA Doc
70

contains(cls, primaryKey)

Method javax.persistence.Cache boolean contains(   Class cls,   Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0
JPA Doc
70

evict(cls, primaryKey)

Method javax.persistence.Cache void evict(   Class cls,   Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0
JPA Doc
70

find(entityClass, primaryKey)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance ... class primaryKey - primary key Returns: the found entity instance or null if the entity does not
JPA Doc
70

find(entityClass, primaryKey, lockMode)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class ... primaryKey - primary key lockMode - lock mode Returns: the found entity instance or null if the entity
JPA Doc
70

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using the specified ... : entityClass - entity class primaryKey - primary key lockMode - lock mode properties - standard and vendor
JPA Doc
70

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using ... . Parameters: entityClass - entity class primaryKey - primary key lockMode - lock mode properties - standard
JPA Doc
70

find(entityClass, primaryKey, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   Map properties ) Find by primary key, using the specified properties. Search for an entity ... , it is silently ignored. Parameters: entityClass - entity class primaryKey - primary key properties - standard
JPA Doc
70

getReference(entityClass, primaryKey)

Method javax.persistence.EntityManager T getReference(   Class entityClass,   Object primaryKey ) Get an instance, whose state may be lazily fetched. If the requested instance does not exist in ... - entity class primaryKey - primary key Returns: the found entity instance Throws
JDO Doc
70

Persistent.primaryKey

Annotation Element javax.jdo.annotations.Persistent String primaryKey Whether this member is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as a separate annotation on the member. Returns: whether this member is part of the primary key Default value: "" Since: JDO 2.1
JDO Doc
68

javax.jdo.annotations.PrimaryKey

javax.jdo.annotations Annotation PrimaryKey Target: Classes and fields (including property get methods) Annotation on a member to define it as a primary key member of a class or persistent interface using application identity. Also used to define the primary key columns of a secondary table