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
FieldsModifier and TypeFieldDescriptionprivate final BibernateDatabaseSettingsprivate final SimpleRepositoryInvocationHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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, waitMethods 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getBibernateSessionFactory
Retrieves the BibernateSessionFactory associated with this EntityManagerFactory.- Specified by:
getBibernateSessionFactoryin interfaceEntityManagerFactory- Returns:
- the BibernateSessionFactory instance
-