Class BibernateEntityManagerFactory
java.lang.Object
io.github.blyznytsiaorg.bibernate.BibernateEntityManagerFactory
- All Implemented Interfaces:
EntityManagerFactory
,Closeable
,AutoCloseable
- Direct Known Subclasses:
BibernateSessionFactory
Implementation of the EntityManagerFactory interface for creating EntityManager instances in the Bibernate framework.
The BibernateEntityManagerFactory provides access to the underlying database settings and repository invocation handler.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BibernateDatabaseSettings
private final SimpleRepositoryInvocationHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the underlying resources associated with the EntityManagerFactory, such as the data source.Retrieves the BibernateSessionFactory associated with this EntityManagerFactory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.blyznytsiaorg.bibernate.EntityManagerFactory
getSimpleRepositoryInvocationHandler
-
Field Details
-
bibernateSettings
-
simpleRepositoryInvocationHandler
-
-
Constructor Details
-
BibernateEntityManagerFactory
public BibernateEntityManagerFactory()
-
-
Method Details
-
close
public void close()Closes the underlying resources associated with the EntityManagerFactory, such as the data source.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getBibernateSessionFactory
Retrieves the BibernateSessionFactory associated with this EntityManagerFactory.- Specified by:
getBibernateSessionFactory
in interfaceEntityManagerFactory
- Returns:
- the BibernateSessionFactory instance
-