diff --git a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/EntityTransactionWrapper.java b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/EntityTransactionWrapper.java index a8d2054b8d..6775749c8e 100644 --- a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/EntityTransactionWrapper.java +++ b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/EntityTransactionWrapper.java @@ -44,6 +44,16 @@ public boolean isActive() { return delegate.isActive(); } + @Override + public void setTimeout(Integer timeout) { + delegate.setTimeout(timeout); + } + + @Override + public Integer getTimeout() { + return delegate.getTimeout(); + } + public void commit() { delegate.commit(); } diff --git a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/NoopTransactionWrapper.java b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/NoopTransactionWrapper.java index e78b42ba1e..003b4b4795 100644 --- a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/NoopTransactionWrapper.java +++ b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/NoopTransactionWrapper.java @@ -34,6 +34,16 @@ public boolean isActive() { return true; } + @Override + public void setTimeout(Integer timeout) { + + } + + @Override + public Integer getTimeout() { + return null; + } + public void commit() { } diff --git a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/UserTransactionWrapper.java b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/UserTransactionWrapper.java index 56ed1902aa..461a95aa75 100644 --- a/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/UserTransactionWrapper.java +++ b/common/src/main/java/com/sun/ts/tests/common/vehicle/ejb3share/UserTransactionWrapper.java @@ -77,6 +77,16 @@ public boolean isActive() { return active; } + @Override + public void setTimeout(Integer timeout) { + + } + + @Override + public Integer getTimeout() { + return null; + } + public void commit() { TestUtil.logTrace("in UserTransactionWrapper.commit()"); diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerFactoryImpl.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerFactoryImpl.java index 1f4c0cc85a..cc797d24ce 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerFactoryImpl.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerFactoryImpl.java @@ -17,12 +17,17 @@ package ee.jakarta.tck.persistence.common.pluggability.altprovider.implementation; import java.util.Map; +import java.util.function.Consumer; +import java.util.function.Function; import jakarta.persistence.Cache; import jakarta.persistence.EntityGraph; import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceUnitTransactionType; import jakarta.persistence.PersistenceUnitUtil; import jakarta.persistence.Query; +import jakarta.persistence.SchemaManager; +import jakarta.persistence.TypedQueryReference; import jakarta.persistence.criteria.CriteriaBuilder; import jakarta.persistence.metamodel.Metamodel; import jakarta.persistence.spi.PersistenceUnitInfo; @@ -66,6 +71,11 @@ public void close() { isOpen = false; } + @Override + public String getName() { + return null; + } + public EntityManager createEntityManager() { logger.log("Called EntityManagerFactoryImpl.createEntityManager()"); verifyOpen(); @@ -118,6 +128,16 @@ public PersistenceUnitUtil getPersistenceUnitUtil() { return null; } + @Override + public PersistenceUnitTransactionType getTransactionType() { + return null; + } + + @Override + public SchemaManager getSchemaManager() { + return null; + } + public Map getProperties() { return null; } @@ -133,6 +153,26 @@ public void addNamedEntityGraph(String graphName, EntityGraph entityGraph } + @Override + public Map> getNamedQueries(Class resultType) { + return null; + } + + @Override + public Map> getNamedEntityGraphs(Class entityType) { + return null; + } + + @Override + public void runInTransaction(Consumer work) { + + } + + @Override + public R callInTransaction(Function work) { + return null; + } + public boolean isOpen() { return isOpen; } diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerImpl.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerImpl.java index f9b0970e9f..5ae58adaa5 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerImpl.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityManagerImpl.java @@ -19,17 +19,26 @@ import java.util.List; import java.util.Map; +import jakarta.persistence.CacheRetrieveMode; +import jakarta.persistence.CacheStoreMode; +import jakarta.persistence.ConnectionConsumer; +import jakarta.persistence.ConnectionFunction; import jakarta.persistence.EntityGraph; import jakarta.persistence.EntityManagerFactory; import jakarta.persistence.EntityTransaction; +import jakarta.persistence.FindOption; import jakarta.persistence.FlushModeType; import jakarta.persistence.LockModeType; +import jakarta.persistence.LockOption; import jakarta.persistence.Query; +import jakarta.persistence.RefreshOption; import jakarta.persistence.StoredProcedureQuery; import jakarta.persistence.TypedQuery; +import jakarta.persistence.TypedQueryReference; import jakarta.persistence.criteria.CriteriaBuilder; import jakarta.persistence.criteria.CriteriaDelete; import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.CriteriaSelect; import jakarta.persistence.criteria.CriteriaUpdate; import jakarta.persistence.metamodel.Metamodel; @@ -87,6 +96,11 @@ public TypedQuery createNamedQuery(String arg0, Class arg1) { return (TypedQuery) query; } + @Override + public TypedQuery createQuery(TypedQueryReference reference) { + return null; + } + @Override public Query createNativeQuery(String arg0) { QueryImpl query = new QueryImpl(); @@ -122,6 +136,11 @@ public TypedQuery createQuery(CriteriaQuery arg0) { return null; } + @Override + public TypedQuery createQuery(CriteriaSelect selectQuery) { + return null; + } + @Override public TypedQuery createQuery(String arg0, Class arg1) { QueryImpl query = new QueryImpl(); @@ -185,6 +204,16 @@ public T find(Class arg0, Object arg1, LockModeType arg2, Map T find(Class entityClass, Object primaryKey, FindOption... options) { + return null; + } + + @Override + public T find(EntityGraph entityGraph, Object primaryKey, FindOption... options) { + return null; + } + @Override public void flush() { @@ -216,6 +245,26 @@ public LockModeType getLockMode(Object arg0) { return null; } + @Override + public void setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) { + + } + + @Override + public void setCacheStoreMode(CacheStoreMode cacheStoreMode) { + + } + + @Override + public CacheRetrieveMode getCacheRetrieveMode() { + return null; + } + + @Override + public CacheStoreMode getCacheStoreMode() { + return null; + } + @Override public Metamodel getMetamodel() { return null; @@ -231,6 +280,11 @@ public T getReference(Class arg0, Object arg1) { return null; } + @Override + public T getReference(T entity) { + return null; + } + @Override public EntityTransaction getTransaction() { logger.log("Called EntityManagerImpl.getTransaction()"); @@ -265,6 +319,11 @@ public void lock(Object arg0, LockModeType arg1, Map arg2) { } + @Override + public void lock(Object entity, LockModeType lockMode, LockOption... options) { + + } + @Override public T merge(T arg0) { return arg0;// not cloning it in case the object can't be cloned @@ -295,6 +354,11 @@ public void refresh(Object arg0, LockModeType arg1, Map arg2) { } + @Override + public void refresh(Object entity, RefreshOption... options) { + + } + @Override public void remove(Object arg0) { @@ -322,6 +386,16 @@ public List> getEntityGraphs(Class entityClass) { return null; } + @Override + public void runWithConnection(ConnectionConsumer action) { + + } + + @Override + public T callWithConnection(ConnectionFunction function) { + return null; + } + public EntityGraph getEntityGraph(String graphName) { return null; } diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityTransactionImpl.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityTransactionImpl.java index aa4881bed4..90bf665f79 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityTransactionImpl.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/EntityTransactionImpl.java @@ -46,6 +46,16 @@ public boolean isActive() { return this.isActive; } + @Override + public void setTimeout(Integer timeout) { + + } + + @Override + public Integer getTimeout() { + return null; + } + @Override public void rollback() { diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceProvider.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceProvider.java index 7c51eae482..c149baae41 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceProvider.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceProvider.java @@ -25,6 +25,7 @@ import java.util.Set; import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceConfiguration; import jakarta.persistence.spi.LoadState; import jakarta.persistence.spi.PersistenceProviderResolver; import jakarta.persistence.spi.PersistenceProviderResolverHolder; @@ -38,7 +39,7 @@ public class PersistenceProvider // Used to store static PersistenceUnitInfo where this is the provider static Map puInfoMap; - static private PersistenceProvider provider = new PersistenceProvider(); + static private final PersistenceProvider provider = new PersistenceProvider(); protected TSLogger logger; @@ -150,6 +151,11 @@ public EntityManagerFactory createEntityManagerFactory(String puName, Map proper return emf; } + @Override + public EntityManagerFactory createEntityManagerFactory(PersistenceConfiguration configuration) { + return null; + } + public ProviderUtil getProviderUtil() { callLogger("Called getProviderUtil()"); return provider; diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceUnitInfoImpl.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceUnitInfoImpl.java index 2e1e712722..7437b59fa8 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceUnitInfoImpl.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/PersistenceUnitInfoImpl.java @@ -130,6 +130,16 @@ public String getPersistenceProviderClassName() { return persistenceProviderClassName; } + @Override + public String getScopeAnnotationName() { + return null; + } + + @Override + public List getQualifierAnnotationNames() { + return null; + } + @Override public String getPersistenceUnitName() { logger.log("Called PersistenceUnitInfoImpl.getPersistenceUnitName()"); diff --git a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/QueryImpl.java b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/QueryImpl.java index 2f96059f49..5abb949862 100755 --- a/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/QueryImpl.java +++ b/jpa/common/src/main/java/ee/jakarta/tck/persistence/common/pluggability/altprovider/implementation/QueryImpl.java @@ -22,6 +22,8 @@ import java.util.Map; import java.util.Set; +import jakarta.persistence.CacheRetrieveMode; +import jakarta.persistence.CacheStoreMode; import jakarta.persistence.FlushModeType; import jakarta.persistence.LockModeType; import jakarta.persistence.Parameter; @@ -125,6 +127,11 @@ public X getSingleResult() { return null; } + @Override + public X getSingleResultOrNull() { + return null; + } + @Override public boolean isBound(Parameter arg0) { return false; @@ -150,6 +157,36 @@ public TypedQuery setLockMode(LockModeType arg0) { return this; } + @Override + public TypedQuery setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) { + return null; + } + + @Override + public TypedQuery setCacheStoreMode(CacheStoreMode cacheStoreMode) { + return null; + } + + @Override + public CacheRetrieveMode getCacheRetrieveMode() { + return null; + } + + @Override + public CacheStoreMode getCacheStoreMode() { + return null; + } + + @Override + public TypedQuery setTimeout(Integer timeout) { + return null; + } + + @Override + public Integer getTimeout() { + return null; + } + @Override public TypedQuery setMaxResults(int arg0) { return this;