Module io.ebean.api

Interface SpiServer

All Superinterfaces:
Database

public interface SpiServer extends Database
Extensions to Database API made available to plugins.
  • Method Details

    • config

      DatabaseConfig config()
      Return the DatabaseConfig.
    • databasePlatform

      DatabasePlatform databasePlatform()
      Return the DatabasePlatform for this database.
    • beanTypes

      List<? extends BeanType<?>> beanTypes()
      Return all the bean types registered on this server instance.
    • beanType

      <T> BeanType<T> beanType(Class<T> beanClass)
      Return the bean type for a given entity bean class.
    • beanTypes

      List<? extends BeanType<?>> beanTypes(String baseTableName)
      Return the bean types mapped to the given base table.
    • beanTypeForQueueId

      BeanType<?> beanTypeForQueueId(String queueId)
      Return the bean type for a given doc store queueId.
    • beanLoader

      BeanLoader beanLoader()
      Return a BeanLoader.
    • loadBeanRef

      void loadBeanRef(EntityBeanIntercept ebi)
      Invoke lazy loading on this single bean (reference bean).
    • loadBeanL2

      void loadBeanL2(EntityBeanIntercept ebi)
      Invoke lazy loading on this single bean (L2 cache bean).
    • loadBean

      void loadBean(EntityBeanIntercept ebi)
      Invoke lazy loading on this single bean when no BeanLoader is set. Typically due to serialisation or multiple stateless updates.