Class SafeChatHibernate
java.lang.Object
studio.thevipershow.safechat.persistence.SafeChatHibernate
public final class SafeChatHibernate
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description SafeChatHibernate(@NotNull DatabaseConfig dbConfig, @NotNull SafeChat safeChat)
-
Method Summary
Modifier and Type Method Description @Nullable PlayerDataManager
getPlayerDataManager()
@NotNull SafeChat
getSafeChat()
@Nullable org.hibernate.SessionFactory
getSessionFactory()
void
setupHibernateSQLMapping()
Setups and determines the hibernate sql mapping.void
setupPlayerDataManager()
void
setupSessionFactory()
Setups a session factory if the hibernate mapping was valid.void
shutdown()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SafeChatHibernate
public SafeChatHibernate(@NotNull @NotNull DatabaseConfig dbConfig, @NotNull @NotNull SafeChat safeChat)
-
-
Method Details
-
setupHibernateSQLMapping
public void setupHibernateSQLMapping() throws java.lang.RuntimeExceptionSetups and determines the hibernate sql mapping. Must be called before anything else.- Throws:
java.lang.RuntimeException
-
shutdown
public void shutdown() -
setupSessionFactory
public void setupSessionFactory() throws java.lang.RuntimeExceptionSetups a session factory if the hibernate mapping was valid.- Throws:
java.lang.RuntimeException
-
setupPlayerDataManager
public void setupPlayerDataManager() -
getSessionFactory
@Nullable public @Nullable org.hibernate.SessionFactory getSessionFactory() -
getSafeChat
-
getPlayerDataManager
-