ObjectDB Database Search
1-21 of 21 resultsEntityManager.find(entityClass,primaryKey) - JPA Method JPA Method in jakarta.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 | |
EntityManager.find(entityClass,primaryKey,options) - JPA Method JPA Method in jakarta.persistence.EntityManager T find ( Class entityClass, Object primaryKey , FindOption... options ) Find ... class primaryKey - primary key options - standard and vendor-specific options Return: the found entity | |
EntityManager.find(entityGraph,primaryKey,options) - JPA Method JPA Method in jakarta.persistence.EntityManager T find ( EntityGraph entityGraph, Object primaryKey , FindOption... options ) Find ... graph primaryKey - primary key options - standard and vendor-specific options Return: the found | |
Cache.evict(cls,primaryKey) - JPA Method JPA Method in jakarta.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 jakarta.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 | |
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 jakarta.persistence.EntityManager T find ( Class entityClass, Object primaryKey , LockModeType lockMode ) Find by ... primaryKey - primary key lockMode - lock mode Return: the found entity instance or null if the entity | |
EntityManager.find(entityClass,primaryKey,properties) - JPA Method JPA Method in jakarta.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 jakarta.persistence.EntityManager T getReference ( Class entityClass, Object primaryKey ) Obtain a reference to an instance of the given entity ... 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 jakarta.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 | |
InterfaceRef jakarta.persistence.EntityManager is not an entity Since: JPA 2.0 T find (Class entityClass, Object primaryKey ) Find ... class primaryKey - primary key Return: the found entity instance or null if the entity does not ... (Class entityClass, Object primaryKey , FindOption... options) Find | |
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 ; } }   | |
InterfaceRef jakarta.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 ... Since: JPA 2.0 void evict (Class cls, Object primaryKey ) Remove the data for the given | |
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 | |
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 |