Internal Website Search
1-25 of 25 resultsEntityManager.find(entityClass,primaryKey) - JPA Method JPA Method in javax.persistence.EntityManager T find ( Class entityClass, Object primaryKey ) Find by primary key. Search for an entity of the specified ... from there. Parameters: entityClass - entity class primaryKey - primary key Return: the found entity | |
Cache.evict(cls,primaryKey) - JPA Method JPA Method in 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 | |
Cache.contains(cls,primaryKey) - JPA Method JPA Method in 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 Return: boolean indicating whether the entity is in the cache Since: JPA 2.0 | |
EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method JPA Method in javax.persistence.EntityManager T find ( Class entityClass, Object primaryKey , LockModeType lockMode ) Find by primary ... only statement-level rollback Parameters: entityClass - entity class primaryKey - primary key lockMode - lock | |
EntityManager.find(entityClass,primaryKey,properties) - JPA Method JPA Method in javax.persistence.EntityManager T find ( Class entityClass, Object primaryKey , Map properties ) Find by primary key ... class primaryKey - primary key properties - standard and vendor-specific properties and hints Return | |
EntityManager.getReference(entityClass,primaryKey) - JPA Method JPA Method in javax.persistence.EntityManager T getReference ( Class entityClass, Object primaryKey ) Get an instance, whose state may be lazily fetched ... while the entity manager was open. Parameters: entityClass - entity class primaryKey - primary key Return | |
EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method JPA Method in javax.persistence.EntityManager T find ( Class entityClass, Object primaryKey , LockModeType lockMode,   ... class primaryKey - primary key lockMode - lock mode properties - standard and vendor-specific | |
EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs * * EntityManager.find(entityClass, primaryKey ) is slow when accessing * non-existent IDs. * * Select queries | |
javax.persistence.EntityManager;Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary ... there. Parameters: entityClass - entity class primaryKey - primary key Return: the found entity instance or null ... is null Since: JPA 1.0 T find (Class entityClass, Object primaryKey , LockModeType | |
Object as parameter results in exception T fetch(Company company, Long primaryKey ) { mLogger.info("Fetching type: {} with id {} with company: {}", new Object[]{managedClass, primaryKey , company}); CriteriaBuilder qb ... "), primaryKey ), qb.and(qb.equal(p.get("owningCompany"), company)));   | |
EntityManager refresh problem SimpleEntity { @Id @GeneratedValue private Long primaryKey ;   ... primaryKey ; } public void setPrimaryKey(Long primaryKey ) { this. primaryKey = primaryKey ; } }   | |
javax.persistence.Cache contains (Class cls, Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Return: boolean indicating ... void evict (Class cls, Object primaryKey ) Remove the data for the given entity from | |
ObjectDB JDO - foreign key constraints Serializable{ @ PrimaryKey private String name; private int age; ...} @Entity public class Company implements Serializable{ @ PrimaryKey private String name; private Person employee; ...} When I save | |
javax.jdo.annotations.Persistent.primaryKey JDO Annotation Attribute in javax.jdo.annotations.Persistent String primaryKey default "" 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. Since: JDO 2.1 | |
javax.jdo.annotations.PrimaryKey.column JDO Annotation Attribute in javax.jdo.annotations. PrimaryKey String column default "" Name of the column to use for the primary key Since: JDO 2.1 | |
javax.jdo.annotations.PrimaryKey.name JDO Annotation Attribute in javax.jdo.annotations. PrimaryKey String name default "" Name of the primary key constraint Since: JDO 2.1 | |
javax.jdo.annotations.PrimaryKey.columns JDO Annotation Attribute in javax.jdo.annotations. PrimaryKey Column [] columns default {} The column(s) for the primary key Since: JDO 2.1 | |
javax.jdo.annotations.PrimaryKey JDO Annotation PrimaryKey Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation 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 | |
javax.jdo.annotations.Join.primaryKey JDO Annotation Attribute in javax.jdo.annotations.Join String primaryKey default "" Name for a generated primary key constraint. Since: JDO 2.1 | |
Is 2 level cache in use?.getCache().contains(entityClass, primaryKey ) , so you can persist or retrieve an entity object | |
ID format in objectdb 2.x for JDOHelper.getObjectId it should be: @ PrimaryKey @Persistent(valueStrategy | |
JDOHelper.isDetached failure ? implements Serializable { @ PrimaryKey private long id; private String name; protected TestClass() { } public | |
JDO Predefined ID Classes class MyClass { @ PrimaryKey String id; } Persistent objects with a String primary key (including | |
javax.jdo.annotations.Persistent and persistent in the embedded usage. Since: JDO 2.1 String primaryKey default "" Whether this member is part of the primary key for application identity. This is equivalent to specifying @ PrimaryKey as | |
javax.jdo.annotations.Join "" Whether to use an outer join. Since: JDO 2.1 String primaryKey default "" Name for a generated primary key |