Package io.ebean.plugin
Interface SpiServer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BeanLoader
beanLoader()
Return a BeanLoader.<T> BeanType<T>
getBeanType(Class<T> beanClass)
Return the bean type for a given entity bean class.BeanType<?>
getBeanTypeForQueueId(String queueId)
Return the bean type for a given doc store queueId.List<? extends BeanType<?>>
getBeanTypes()
Return all the bean types registered on this server instance.List<? extends BeanType<?>>
getBeanTypes(String baseTableName)
Return the bean types mapped to the given base table.DatabasePlatform
getDatabasePlatform()
Return the DatabasePlatform for this database.DatabaseConfig
getServerConfig()
Return the DatabaseConfig.void
loadBean(EntityBeanIntercept ebi)
Invoke lazy loading on this single bean when no BeanLoader is set.void
loadBeanL2(EntityBeanIntercept ebi)
Invoke lazy loading on this single bean (L2 cache bean).void
loadBeanRef(EntityBeanIntercept ebi)
Invoke lazy loading on this single bean (reference bean).-
Methods inherited from interface io.ebean.Database
beginTransaction, beginTransaction, beginTransaction, checkUniqueness, checkUniqueness, commitTransaction, createCallableSql, createCsvReader, createEntityBean, createNamedDtoQuery, createNamedQuery, createQuery, createQuery, createSqlQuery, createSqlUpdate, createTransaction, createTransaction, createUpdate, currentTransaction, delete, delete, delete, delete, deleteAll, deleteAll, deleteAll, deleteAll, deleteAllPermanent, deleteAllPermanent, deleteAllPermanent, deleteAllPermanent, deletePermanent, deletePermanent, deletePermanent, deletePermanent, diff, docStore, draftRestore, draftRestore, draftRestore, draftRestore, endTransaction, execute, execute, execute, execute, execute, execute, execute, execute, executeCall, executeCall, extended, externalModification, filter, find, find, find, findDto, findNative, flush, getAutoTune, getBackgroundExecutor, getBeanId, getBeanState, getDataSource, getExpressionFactory, getMetaInfoManager, getName, getPlatform, getPluginApi, getReadOnlyDataSource, getReference, getServerCacheManager, insert, insert, insertAll, insertAll, json, markAsDirty, merge, merge, merge, nextId, publish, publish, publish, publish, refresh, refreshMany, register, rollbackTransaction, save, save, saveAll, saveAll, saveAll, script, setBeanId, shutdown, shutdown, sort, sqlQuery, sqlUpdate, truncate, truncate, update, update, update, updateAll, updateAll, validateQuery
-
-
-
-
Method Detail
-
getServerConfig
DatabaseConfig getServerConfig()
Return the DatabaseConfig.
-
getDatabasePlatform
DatabasePlatform getDatabasePlatform()
Return the DatabasePlatform for this database.
-
getBeanTypes
List<? extends BeanType<?>> getBeanTypes()
Return all the bean types registered on this server instance.
-
getBeanType
<T> BeanType<T> getBeanType(Class<T> beanClass)
Return the bean type for a given entity bean class.
-
getBeanTypes
List<? extends BeanType<?>> getBeanTypes(String baseTableName)
Return the bean types mapped to the given base table.
-
getBeanTypeForQueueId
BeanType<?> getBeanTypeForQueueId(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.
-
-