Package | Description |
---|---|
com.playsql.utils.activeobjects.cache |
All sorts of caches: the AOPreloader, the AbstractAOCache, and most famously, the DAOCache.
|
com.playsql.utils.migration.v60 |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAOCache<T extends LongEntity>
Cache for a few specific AO queries, to avoid too many queries for 1 record.
|
class |
AOListPreloader<T extends LongEntity,U extends LongEntity>
Preloader when a list needs to be preloaded for a given requirement.
|
class |
AOListPreloader<T extends LongEntity,U extends LongEntity>
Preloader when a list needs to be preloaded for a given requirement.
|
private static class |
AOListPreloader.Page<U extends LongEntity> |
class |
AOPreloader<T extends LongEntity>
Class which loads a bunch of ActiveObjects entities and all their fields, in 1 SQL request.
|
Modifier and Type | Method and Description |
---|---|
static <T extends LongEntity,U extends LongEntity> |
AOListPreloader.create(com.atlassian.activeobjects.external.ActiveObjects ao,
AOContext aoContext,
Set<Long> dbRequirementIds,
Class<U> clazz,
SuperfastRecordTemplate<Long,U> superfastRecordTemplate,
Function<List<Long>,net.java.ao.Query> queryProvider,
Function<Long,Consumer<U>> setPrimaryKey) |
static <T extends LongEntity,U extends LongEntity> |
AOListPreloader.create(com.atlassian.activeobjects.external.ActiveObjects ao,
AOContext aoContext,
Set<Long> dbRequirementIds,
Class<U> clazz,
SuperfastRecordTemplate<Long,U> superfastRecordTemplate,
Function<List<Long>,net.java.ao.Query> queryProvider,
Function<Long,Consumer<U>> setPrimaryKey) |
<U extends LongEntity> |
AOPreloader.preloadAll(Collection<U> entities,
Function<U,T> getter,
BiConsumer<U,T> setter)
Preloads all entities which are inside the records of the list passed in parameter.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends LongEntity> |
AbstractV60MigrationEntitiesTask.generateId(String spaceKey,
Class<T> referenceClass)
Generic method to be able to generate an id
|
protected <T extends AOMigratedEntity,U extends LongEntity> |
AbstractV60MigrationEntitiesTask.migrateEntity(Class<T> aoEntityToMigrate,
Class<U> dbEntityToCreate,
BiFunction<DAOCache<Long,U>,T,Boolean> migrateFunction)
Migrate all records of an AO entity.
|
Copyright © 2022 Requirement Yogi. All rights reserved.