Class SafeChatHibernate

java.lang.Object
studio.thevipershow.safechat.persistence.SafeChatHibernate

public final class SafeChatHibernate
extends java.lang.Object
  • Constructor Details

    • SafeChatHibernate

      public SafeChatHibernate​(@NotNull @NotNull DatabaseConfig dbConfig, @NotNull @NotNull SafeChat safeChat)
  • Method Details

    • setupHibernateSQLMapping

      public void setupHibernateSQLMapping() throws java.lang.RuntimeException
      Setups 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.RuntimeException
      Setups 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

      @NotNull public @NotNull SafeChat getSafeChat()
    • getPlayerDataManager

      @Nullable public @Nullable PlayerDataManager getPlayerDataManager()