- All Implemented Interfaces:
BeanCollectionLoader,Database,ExtendedServer,SpiServer,SpiEbeanServer
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultServer(InternalConfiguration config, ServerCacheManager cache) Create the DefaultServer. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) Add to JDBC batch for later execution.autoTune()<T> BeanType<T> Return the SPI bean types for the given bean class.Return all the SPI BeanTypes.Return the SPI bean types mapped to the given table.Begin a managed transaction (Uses scope manager / ThreadLocal).beginTransaction(io.ebean.annotation.TxIsolation isolation) beginTransaction(TxScope txScope) checkUniqueness(Object bean) checkUniqueness(Object bean, Transaction transaction) voidClear the query execution statistics.voidClear an implicit transaction from the scope.longclockNow()Return the NOW time from the Clock.<T> CQuery<T> compileQuery(SpiQuery.Type type, SpiQuery<T> query, Transaction transaction) Compile a query.config()createCallableSql(String sql) Create a CallStack object.<T> TcreateEntityBean(Class<T> type) Create a new EntityBean bean.<T> DefaultOrmQuery<T> createQuery(Class<T> beanType) Override in order to return SpiQueryCreate a query bind capture for the given query plan.createReadOnlyTransaction(Object tenantId, boolean useMaster) Create a ServerTransaction for query purposes.Creates a new Transaction that is NOT stored in TransactionThreadLocal.createTransaction(io.ebean.annotation.TxIsolation isolation) Create a transaction additionally specify the Isolation level.<T> Update<T> createUpdate(Class<T> beanType, String ormUpdate) Return the current transaction or null if there is no current transaction.Return the current Tenant Id.Return the DataTimeZone to use when reading/writing timestamps via JDBC.<T> intintintdelete(Class<?> beanType, Object id, Transaction transaction) booleanDelete the bean.booleandelete(Object bean, Transaction transaction) Delete the bean with the explicit transaction.intdeleteAll(Class<?> beanType, Collection<?> ids) intdeleteAll(Class<?> beanType, Collection<?> ids, Transaction transaction) intdeleteAll(Collection<?> beans) Delete all the beans in the collection.intdeleteAll(Collection<?> beans, Transaction transaction) Delete all the beans in the collection.intdeleteAllPermanent(Class<?> beanType, Collection<?> ids) intdeleteAllPermanent(Class<?> beanType, Collection<?> ids, Transaction transaction) intdeleteAllPermanent(Collection<?> beans) intdeleteAllPermanent(Collection<?> beans, Transaction transaction) intdeletePermanent(Class<?> beanType, Object id) intdeletePermanent(Class<?> beanType, Object id, Transaction transaction) booleandeletePermanent(Object bean) booleandeletePermanent(Object bean, Transaction transaction) voidderegister(BeanPersistController controller) <T> BeanDescriptor<T> descriptor(Class<T> beanClass) Return the BeanDescriptor for a given type of bean.descriptorById(String beanClassName) Return the BeanDescriptor using its class name.List<BeanDescriptor<?>> Return all the BeanDescriptors.List<BeanDescriptor<?>> descriptors(String tableName) Return the BeanDescriptor's for a given table name.voidEnd the current transaction if it is active.intexecute(CallableSql callSql) Execute the CallableSql.intexecute(CallableSql callSql, Transaction transaction) Execute the CallableSql with an explicit transaction.intExecute the updateSql.intexecute(SqlUpdate updSql, Transaction transaction) Execute the updateSql with an explicit transaction.voidintExecute the orm update.intexecute(Update<?> update, Transaction transaction) Execute the updateSql with an explicit transaction.voidint[]executeBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) Execute the batched statement.<T> TexecuteCall(TxScope scope, Callable<T> callable) <T> TexecuteCall(Callable<T> callable) intexecuteNow(SpiSqlUpdate sqlUpdate) Execute the sql update regardless of transaction batch mode.voidexecutePlugins(boolean online) Execute all the plugins with an online flag indicating the DB is up or not.<T> booleanbooleanexists(Class<?> beanType, Object beanId, Transaction transaction) Return true if a row for the bean type and id exists.extended()voidexternalModification(TransactionEventTable tableEvent) Process committed beans from another framework or server in another cluster.voidexternalModification(String tableName, boolean inserts, boolean updates, boolean deletes) Developer informing eBean that tables where modified outside of eBean.<T> Filter<T> <T> Query<T> <T> T<T> Tfind(Class<T> beanType, Object id, Transaction transaction) Find a bean using its unique id.<T> int<T> intfindCountWithCopy(SpiQuery<T> query) Execute the findCount query but without copying the query.<T> DtoQuery<T> Return / wrap the ORM query as a DTO query.<T> DtoQuery<T> <T> voidfindDtoEach(SpiDtoQuery<T> query, int batch, Consumer<List<T>> consumer) DTO findEach batch query.<T> voidfindDtoEach(SpiDtoQuery<T> query, Consumer<T> consumer) DTO findEach query.<T> voidfindDtoEachWhile(SpiDtoQuery<T> query, Predicate<T> consumer) DTO findEachWhile query.<T> QueryIterator<T> findDtoIterate(SpiDtoQuery<T> query) DTO findIterate query.<T> List<T> findDtoList(SpiDtoQuery<T> query) DTO findList query.<T> TfindDtoOne(SpiDtoQuery<T> query) DTO findOne query.<T> Stream<T> findDtoStream(SpiDtoQuery<T> query) DTO findStream query.<T> void<T> voidvoidfindEach(SpiSqlQuery query, Consumer<SqlRow> consumer) voidfindEachRow(SpiSqlQuery query, RowConsumer consumer) SqlQuery find each with consumer.<T> voidfindEachWhile(SpiQuery<T> query, Predicate<T> consumer) voidfindEachWhile(SpiSqlQuery query, Predicate<SqlRow> consumer) <T> FutureRowCount<T> findFutureCount(SpiQuery<T> query) <T> FutureIds<T> findFutureIds(SpiQuery<T> query) <T> FutureList<T> findFutureList(SpiQuery<T> query) <A,T> List <A> <A,T> List <A> findIdsWithCopy(SpiQuery<T> query) Execute the findId's query but without copying the query.<T> QueryIterator<T> findIterate(SpiQuery<T> query) <T> List<T> findList(SpiSqlQuery query) <T> List<T> findListMapper(SpiSqlQuery query, RowMapper<T> mapper) SqlQuery find list with mapper.<K,T> Map <K, T> <T> Query<T> findNative(Class<T> beanType, String nativeSql) <T> TfindOne(SpiSqlQuery query) <T> TfindOneMapper(SpiSqlQuery query, RowMapper<T> mapper) SqlQuery find one with mapper.<T> Optional<T> findOneOrEmpty(SpiQuery<T> query) <T> PagedList<T> findPagedList(SpiQuery<T> query) findResultSet(SpiQuery<?> ormQuery) Execute the underlying ORM query returning as a JDBC ResultSet to map to DTO beans.<T> Set<T> <T> TfindSingleAttribute(SpiSqlQuery query, Class<T> cls) SqlQuery find single attribute.<T> voidfindSingleAttributeEach(SpiSqlQuery query, Class<T> cls, Consumer<T> consumer) SqlQuery find single attribute streaming the result to a consumer.<A,T> List <A> findSingleAttributeList(SpiQuery<T> query) <T> List<T> findSingleAttributeList(SpiSqlQuery query, Class<T> cls) SqlQuery find single attribute list.<A,T> Set <A> findSingleAttributeSet(SpiQuery<T> query) <T> Stream<T> findStream(SpiQuery<T> query) findVersions(SpiQuery<T> query) voidflush()voidRun any initialisation required before registering with the ClusterManager.voidvoidinsert(Object bean, InsertOptions insertOptions) voidinsert(Object bean, InsertOptions insertOptions, Transaction transaction) voidinsert(Object bean, Transaction transaction) voidinsertAll(Collection<?> beans) voidinsertAll(Collection<?> beans, InsertOptions options) voidinsertAll(Collection<?> beans, InsertOptions options, Transaction transaction) voidinsertAll(Collection<?> beans, Transaction transaction) booleanReturn true if the L2 cache has been disabled.booleanisSupportedType(Type genericType) Return true if the type is known as an Entity or Xml type or a List Set or Map of known bean types.booleanReturn true if updates in JDBC batch should include all columns if unspecified on the transaction.json()Return the server extended Json context.intReturn the default batch size for lazy loading.voidvoidloadBean(LoadBeanRequest loadRequest) Load a batch of Associated One Beans.voidvoidvoidloadMany(BeanCollection<?> bc, boolean onlyIds) voidloadMany(LoadManyRequest loadRequest) Lazy load a batch of Many's.voidlog()Return the log manager.voidmarkAsDirty(Object bean) voidvoidmerge(Object bean, MergeOptions options) voidmerge(Object bean, MergeOptions options, Transaction transaction) metaInfo()name()Return the server name.persistenceContextScope(SpiQuery<?> query) Return the PersistenceContextScope to use defined at query or server level.io.ebean.annotation.Platformplatform()<T> TReturn a Reference bean.voidvoidrefreshMany(Object parentBean, String propertyName) voidregister(BeanPersistController controller) voidregister(TransactionCallback transactionCallback) voidAnother server in the cluster sent this event so that we can inform local BeanListeners of inserts updates and deletes that occurred remotely (on another server in the cluster).voidPersist the bean by either performing an insert or update.voidsave(Object bean, Transaction transaction) Save the bean with an explicit transaction.intintsaveAll(Collection<?> beans) intsaveAll(Collection<?> beans, Transaction transaction) voidscopedTransactionEnter(TxScope txScope) Start an enhanced transactional method.voidscopedTransactionExit(Object returnOrThrowable, int opCode) Handle the end of an enhanced Transactional method.script()voidvoidshutdown()voidshutdown(boolean shutdownDataSource, boolean deregisterDriver) voidslowQueryCheck(long timeMicros, int rowCount, SpiQuery<?> query) Check for slow query event.<T> voidvoidstart()Start any services after registering with the ClusterManager.toString()Return the transaction manager.voidvoid<T> int<T> UpdateQuery<T> voidvoidupdate(Object bean, Transaction transaction) voidupdateAll(Collection<?> beans) voidupdateAll(Collection<?> beans, Transaction transaction) Update all beans in the collection with an explicit transaction.validateQuery(Query<T> query) voidvisitMetrics(MetricVisitor visitor) Visit all the metrics (typically reporting them).
-
Constructor Details
-
DefaultServer
Create the DefaultServer.
-
-
Method Details
-
executePlugins
public void executePlugins(boolean online) Execute all the plugins with an online flag indicating the DB is up or not. -
isDisableL2Cache
public boolean isDisableL2Cache()Description copied from interface:SpiEbeanServerReturn true if the L2 cache has been disabled.- Specified by:
isDisableL2Cachein interfaceSpiEbeanServer
-
log
Description copied from interface:SpiEbeanServerReturn the log manager.- Specified by:
login interfaceSpiEbeanServer
-
isUpdateAllPropertiesInBatch
public boolean isUpdateAllPropertiesInBatch()Description copied from interface:SpiEbeanServerReturn true if updates in JDBC batch should include all columns if unspecified on the transaction.- Specified by:
isUpdateAllPropertiesInBatchin interfaceSpiEbeanServer
-
lazyLoadBatchSize
public int lazyLoadBatchSize()Description copied from interface:SpiEbeanServerReturn the default batch size for lazy loading.- Specified by:
lazyLoadBatchSizein interfaceSpiEbeanServer
-
currentTenantId
Description copied from interface:SpiEbeanServerReturn the current Tenant Id.- Specified by:
currentTenantIdin interfaceSpiEbeanServer
-
config
-
databasePlatform
- Specified by:
databasePlatformin interfaceSpiServer
-
script
-
dataTimeZone
Description copied from interface:SpiEbeanServerReturn the DataTimeZone to use when reading/writing timestamps via JDBC.- Specified by:
dataTimeZonein interfaceSpiEbeanServer
-
metaInfo
-
platform
public io.ebean.annotation.Platform platform() -
pluginApi
-
backgroundExecutor
- Specified by:
backgroundExecutorin interfaceDatabase
-
expressionFactory
- Specified by:
expressionFactoryin interfaceDatabase
-
autoTune
-
dataSource
- Specified by:
dataSourcein interfaceDatabase
-
readOnlyDataSource
- Specified by:
readOnlyDataSourcein interfaceDatabase
-
initialise
public void initialise()Run any initialisation required before registering with the ClusterManager. -
start
public void start()Start any services after registering with the ClusterManager. -
shutdown
public void shutdown() -
shutdown
public void shutdown(boolean shutdownDataSource, boolean deregisterDriver) -
toString
-
name
Return the server name.- Specified by:
namein interfaceBeanCollectionLoader- Specified by:
namein interfaceDatabase
-
extended
-
clockNow
public long clockNow()Description copied from interface:SpiEbeanServerReturn the NOW time from the Clock.- Specified by:
clockNowin interfaceSpiEbeanServer
-
setClock
- Specified by:
setClockin interfaceExtendedServer
-
beanState
-
compileQuery
Compile a query. Only valid for ORM queries.- Specified by:
compileQueryin interfaceSpiEbeanServer
-
cacheManager
- Specified by:
cacheManagerin interfaceDatabase
-
refreshMany
- Specified by:
refreshManyin interfaceDatabase
-
loadMany
Description copied from interface:SpiEbeanServerLazy load a batch of Many's.- Specified by:
loadManyin interfaceSpiEbeanServer
-
loadMany
- Specified by:
loadManyin interfaceBeanCollectionLoader
-
refresh
-
loadBean
Description copied from interface:SpiEbeanServerLoad a batch of Associated One Beans.- Specified by:
loadBeanin interfaceSpiEbeanServer
-
beanLoader
- Specified by:
beanLoaderin interfaceSpiServer
-
loadBean
-
loadBeanRef
- Specified by:
loadBeanRefin interfaceSpiServer
-
loadBeanL2
- Specified by:
loadBeanL2in interfaceSpiServer
-
diff
-
externalModification
Process committed beans from another framework or server in another cluster.This notifies this instance of the framework that beans have been committed externally to it. Either by another framework or clustered server. It needs to maintain its cache and text indexes appropriately.
- Specified by:
externalModificationin interfaceSpiEbeanServer
-
externalModification
public void externalModification(String tableName, boolean inserts, boolean updates, boolean deletes) Developer informing eBean that tables where modified outside of eBean. Invalidate the cache etc as required.- Specified by:
externalModificationin interfaceDatabase
-
truncate
-
truncate
-
clearQueryStatistics
public void clearQueryStatistics()Clear the query execution statistics.- Specified by:
clearQueryStatisticsin interfaceSpiEbeanServer
-
createEntityBean
Create a new EntityBean bean.This will generally return a subclass of the parameter 'type' which additionally implements the EntityBean interface. That is, the returned bean is typically an instance of a dynamically generated class.
- Specified by:
createEntityBeanin interfaceDatabase
-
reference
Return a Reference bean.If a current transaction is active then this will check the Context of that transaction to see if the bean is already loaded. If it is already loaded then it will returned that object.
-
register
-
createTransaction
Creates a new Transaction that is NOT stored in TransactionThreadLocal. Use this when you want a thread to have a second independent transaction.- Specified by:
createTransactionin interfaceDatabase
-
createTransaction
Create a transaction additionally specify the Isolation level.Note that this transaction is not stored in a thread local.
- Specified by:
createTransactionin interfaceDatabase
-
executeCall
- Specified by:
executeCallin interfaceDatabase
-
executeCall
- Specified by:
executeCallin interfaceDatabase
-
execute
-
execute
-
scopedTransactionEnter
Description copied from interface:SpiEbeanServerStart an enhanced transactional method.- Specified by:
scopedTransactionEnterin interfaceSpiEbeanServer
-
scopedTransactionExit
Description copied from interface:SpiEbeanServerHandle the end of an enhanced Transactional method.- Specified by:
scopedTransactionExitin interfaceSpiEbeanServer
-
currentServerTransaction
Description copied from interface:SpiEbeanServerReturn the current transaction or null if there is no current transaction.- Specified by:
currentServerTransactionin interfaceSpiEbeanServer
-
beginTransaction
- Specified by:
beginTransactionin interfaceDatabase
-
beginTransaction
- Specified by:
beginTransactionin interfaceDatabase
-
beginTransaction
- Specified by:
beginTransactionin interfaceDatabase
-
currentTransaction
- Specified by:
currentTransactionin interfaceDatabase
-
flush
public void flush() -
endTransaction
public void endTransaction()Description copied from interface:SpiEbeanServerEnd the current transaction if it is active.- Specified by:
endTransactionin interfaceSpiEbeanServer
-
nextId
-
sort
-
validateQuery
- Specified by:
validateQueryin interfaceDatabase
-
filter
-
update
-
merge
-
merge
-
merge
-
lock
-
find
-
findNative
- Specified by:
findNativein interfaceDatabase
-
createQuery
Description copied from interface:SpiEbeanServerOverride in order to return SpiQuery- Specified by:
createQueryin interfaceDatabase- Specified by:
createQueryin interfaceSpiEbeanServer
-
createUpdate
- Specified by:
createUpdatein interfaceDatabase
-
findDto
-
findDto
Description copied from interface:SpiEbeanServerReturn / wrap the ORM query as a DTO query.- Specified by:
findDtoin interfaceSpiEbeanServer
-
findResultSet
Description copied from interface:SpiEbeanServerExecute the underlying ORM query returning as a JDBC ResultSet to map to DTO beans.- Specified by:
findResultSetin interfaceSpiEbeanServer
-
sqlQuery
-
sqlUpdate
-
createCallableSql
- Specified by:
createCallableSqlin interfaceDatabase
-
find
-
find
Find a bean using its unique id. -
persistenceContextScope
Return the PersistenceContextScope to use defined at query or server level.- Specified by:
persistenceContextScopein interfaceSpiEbeanServer
-
findOneOrEmpty
- Specified by:
findOneOrEmptyin interfaceSpiEbeanServer
-
findOne
- Specified by:
findOnein interfaceSpiEbeanServer
-
findSet
- Specified by:
findSetin interfaceSpiEbeanServer
-
findMap
- Specified by:
findMapin interfaceSpiEbeanServer
-
findSingleAttributeList
- Specified by:
findSingleAttributeListin interfaceSpiEbeanServer
-
findSingleAttributeSet
- Specified by:
findSingleAttributeSetin interfaceSpiEbeanServer
-
findCount
- Specified by:
findCountin interfaceSpiEbeanServer
-
findCountWithCopy
Description copied from interface:SpiEbeanServerExecute the findCount query but without copying the query.- Specified by:
findCountWithCopyin interfaceSpiEbeanServer
-
exists
Description copied from interface:SpiEbeanServerReturn true if a row for the bean type and id exists.- Specified by:
existsin interfaceSpiEbeanServer
-
exists
- Specified by:
existsin interfaceSpiEbeanServer
-
findIds
- Specified by:
findIdsin interfaceSpiEbeanServer
-
findIdsWithCopy
Description copied from interface:SpiEbeanServerExecute the findId's query but without copying the query.Used so that the list of Id's can be made accessible to client code before the query has finished (if executing in a background thread).
- Specified by:
findIdsWithCopyin interfaceSpiEbeanServer
-
delete
- Specified by:
deletein interfaceSpiEbeanServer
-
update
- Specified by:
updatein interfaceSpiEbeanServer
-
findFutureCount
- Specified by:
findFutureCountin interfaceSpiEbeanServer
-
findFutureIds
- Specified by:
findFutureIdsin interfaceSpiEbeanServer
-
findFutureList
- Specified by:
findFutureListin interfaceSpiEbeanServer
-
findPagedList
- Specified by:
findPagedListin interfaceSpiEbeanServer
-
findIterate
- Specified by:
findIteratein interfaceSpiEbeanServer
-
findStream
- Specified by:
findStreamin interfaceSpiEbeanServer
-
findEach
- Specified by:
findEachin interfaceSpiEbeanServer
-
findEach
- Specified by:
findEachin interfaceSpiEbeanServer
-
findEachWhile
- Specified by:
findEachWhilein interfaceSpiEbeanServer
-
findVersions
- Specified by:
findVersionsin interfaceSpiEbeanServer
-
findList
- Specified by:
findListin interfaceSpiEbeanServer
-
findOne
- Specified by:
findOnein interfaceSpiEbeanServer
-
findEach
- Specified by:
findEachin interfaceSpiEbeanServer
-
findEachWhile
- Specified by:
findEachWhilein interfaceSpiEbeanServer
-
findList
- Specified by:
findListin interfaceSpiEbeanServer
-
findEachRow
Description copied from interface:SpiEbeanServerSqlQuery find each with consumer.- Specified by:
findEachRowin interfaceSpiEbeanServer
-
findListMapper
Description copied from interface:SpiEbeanServerSqlQuery find list with mapper.- Specified by:
findListMapperin interfaceSpiEbeanServer
-
findOneMapper
Description copied from interface:SpiEbeanServerSqlQuery find one with mapper.- Specified by:
findOneMapperin interfaceSpiEbeanServer
-
findSingleAttributeEach
Description copied from interface:SpiEbeanServerSqlQuery find single attribute streaming the result to a consumer.- Specified by:
findSingleAttributeEachin interfaceSpiEbeanServer
-
findSingleAttributeList
Description copied from interface:SpiEbeanServerSqlQuery find single attribute list.- Specified by:
findSingleAttributeListin interfaceSpiEbeanServer
-
findSingleAttribute
Description copied from interface:SpiEbeanServerSqlQuery find single attribute.- Specified by:
findSingleAttributein interfaceSpiEbeanServer
-
findDtoEach
Description copied from interface:SpiEbeanServerDTO findEach query.- Specified by:
findDtoEachin interfaceSpiEbeanServer
-
findDtoEach
Description copied from interface:SpiEbeanServerDTO findEach batch query.- Specified by:
findDtoEachin interfaceSpiEbeanServer
-
findDtoEachWhile
Description copied from interface:SpiEbeanServerDTO findEachWhile query.- Specified by:
findDtoEachWhilein interfaceSpiEbeanServer
-
findDtoIterate
Description copied from interface:SpiEbeanServerDTO findIterate query.- Specified by:
findDtoIteratein interfaceSpiEbeanServer
-
findDtoStream
Description copied from interface:SpiEbeanServerDTO findStream query.- Specified by:
findDtoStreamin interfaceSpiEbeanServer
-
findDtoList
Description copied from interface:SpiEbeanServerDTO findList query.- Specified by:
findDtoListin interfaceSpiEbeanServer
-
findDtoOne
Description copied from interface:SpiEbeanServerDTO findOne query.- Specified by:
findDtoOnein interfaceSpiEbeanServer
-
save
Persist the bean by either performing an insert or update. -
save
Save the bean with an explicit transaction. -
markAsDirty
- Specified by:
markAsDirtyin interfaceDatabase
-
update
-
update
-
updateAll
-
updateAll
Update all beans in the collection with an explicit transaction. -
insert
-
insert
-
insert
-
insert
-
insertAll
-
insertAll
-
insertAll
-
insertAll
public void insertAll(@Nullable Collection<?> beans, InsertOptions options, @Nullable Transaction transaction) -
saveAll
public int saveAll(Collection<?> beans, Transaction transaction) throws jakarta.persistence.OptimisticLockException -
saveAll
-
saveAll
-
delete
-
delete
-
deletePermanent
- Specified by:
deletePermanentin interfaceDatabase
-
deletePermanent
- Specified by:
deletePermanentin interfaceDatabase
-
deleteAll
-
deleteAll
-
deleteAllPermanent
- Specified by:
deleteAllPermanentin interfaceDatabase
-
deleteAllPermanent
public int deleteAllPermanent(Class<?> beanType, Collection<?> ids, @Nullable Transaction transaction) - Specified by:
deleteAllPermanentin interfaceDatabase
-
delete
Delete the bean. -
delete
public boolean delete(Object bean, @Nullable Transaction transaction) throws jakarta.persistence.OptimisticLockException Delete the bean with the explicit transaction. -
deletePermanent
- Specified by:
deletePermanentin interfaceDatabase- Throws:
jakarta.persistence.OptimisticLockException
-
deletePermanent
public boolean deletePermanent(Object bean, @Nullable Transaction transaction) throws jakarta.persistence.OptimisticLockException - Specified by:
deletePermanentin interfaceDatabase- Throws:
jakarta.persistence.OptimisticLockException
-
deleteAllPermanent
- Specified by:
deleteAllPermanentin interfaceDatabase
-
deleteAllPermanent
- Specified by:
deleteAllPermanentin interfaceDatabase
-
deleteAll
Delete all the beans in the collection. -
deleteAll
Delete all the beans in the collection. -
execute
Execute the CallableSql with an explicit transaction. -
execute
Execute the CallableSql. -
execute
Execute the updateSql with an explicit transaction. -
executeNow
Description copied from interface:SpiEbeanServerExecute the sql update regardless of transaction batch mode.- Specified by:
executeNowin interfaceSpiEbeanServer
-
addBatch
Description copied from interface:SpiEbeanServerAdd to JDBC batch for later execution.- Specified by:
addBatchin interfaceSpiEbeanServer
-
executeBatch
Description copied from interface:SpiEbeanServerExecute the batched statement.- Specified by:
executeBatchin interfaceSpiEbeanServer
-
execute
Execute the updateSql. -
execute
Execute the updateSql with an explicit transaction. -
execute
Execute the orm update. -
descriptors
Return all the BeanDescriptors.- Specified by:
descriptorsin interfaceSpiEbeanServer
-
transactionManager
Return the transaction manager.- Specified by:
transactionManagerin interfaceSpiEbeanServer
-
register
-
deregister
-
isSupportedType
Description copied from interface:SpiEbeanServerReturn true if the type is known as an Entity or Xml type or a List Set or Map of known bean types.- Specified by:
isSupportedTypein interfaceSpiEbeanServer
-
beanId
-
beanId
-
descriptor
Return the BeanDescriptor for a given type of bean.- Specified by:
descriptorin interfaceSpiEbeanServer
-
descriptors
Return the BeanDescriptor's for a given table name.- Specified by:
descriptorsin interfaceSpiEbeanServer
-
beanTypes
Return all the SPI BeanTypes. -
beanTypes
Return the SPI bean types mapped to the given table. -
beanType
Return the SPI bean types for the given bean class. -
descriptorById
Return the BeanDescriptor using its class name.- Specified by:
descriptorByIdin interfaceSpiEbeanServer
-
remoteTransactionEvent
Another server in the cluster sent this event so that we can inform local BeanListeners of inserts updates and deletes that occurred remotely (on another server in the cluster).- Specified by:
remoteTransactionEventin interfaceSpiEbeanServer
-
clearServerTransaction
public void clearServerTransaction()Description copied from interface:SpiEbeanServerClear an implicit transaction from the scope.- Specified by:
clearServerTransactionin interfaceSpiEbeanServer
-
beginServerTransaction
Description copied from interface:SpiEbeanServerBegin a managed transaction (Uses scope manager / ThreadLocal).- Specified by:
beginServerTransactionin interfaceSpiEbeanServer
-
createReadOnlyTransaction
Description copied from interface:SpiEbeanServerCreate a ServerTransaction for query purposes.- Specified by:
createReadOnlyTransactionin interfaceSpiEbeanServer- Parameters:
tenantId- For multi-tenant lazy loading provide the tenantId to use.useMaster- Set to true when the query should use the master data source.
-
createCallOrigin
Create a CallStack object.This trims off the avaje ebean part of the stack trace so that the first element in the CallStack should be application code.
- Specified by:
createCallOriginin interfaceSpiEbeanServer
-
json
-
jsonExtended
Description copied from interface:SpiEbeanServerReturn the server extended Json context.- Specified by:
jsonExtendedin interfaceSpiEbeanServer
-
slowQueryCheck
Description copied from interface:SpiEbeanServerCheck for slow query event.- Specified by:
slowQueryCheckin interfaceSpiEbeanServer
-
checkUniqueness
- Specified by:
checkUniquenessin interfaceDatabase
-
checkUniqueness
- Specified by:
checkUniquenessin interfaceDatabase
-
visitMetrics
Description copied from interface:SpiEbeanServerVisit all the metrics (typically reporting them).- Specified by:
visitMetricsin interfaceSpiEbeanServer
-
createQueryBindCapture
Description copied from interface:SpiEbeanServerCreate a query bind capture for the given query plan.- Specified by:
createQueryBindCapturein interfaceSpiEbeanServer
-