Package org.tentackle.persist.wurblet
Class PdoCache
- java.lang.Object
-
- org.wurbelizer.wurblet.AbstractWurblet
-
- org.wurbelizer.wurblet.AbstractJavaWurblet
-
- org.tentackle.wurblet.ModelWurblet
-
- org.tentackle.persist.wurblet.DbModelWurblet
-
- org.tentackle.persist.wurblet.PdoCache
-
- All Implemented Interfaces:
org.wurbelizer.wurblet.Wurblet
public class PdoCache extends DbModelWurblet
(@wurblet) Generate code for setting up a PdoCache for an entity.usage:
@wurblet <tag> PdoCache [--cache=<classname>] [--secure] [--public] [--preload] [--mutable] [--noreg] [--udk] [--bounded] [--strategy=LRU|LFU|FORGET] [--maxsize=<n>] [--keepquota=<p>] [--configure=<method>] [index1] [index2] ...arguments:
- --cache=<classname>: sets the cache-class. Defaults to PdoCache.
- --secure: if cache must check read permission for each access (default is no check).
- --public: makes the cache and indexes public (default is private).
- --preload: the first access will load all entities at once.
- --mutable: generates a non-shared cache, i.e. mutable PDOs (by default a shared readonly cache is generated).
- --noreg: will not register the cache globally (default is to use the factory).
- --udk: add index for the unique domain key.
- --bounded: creates List<? extends T> for selectAllCached instead of List<T>.
- --strategy=LRU|LFU|FORGET: the caching strategy (default is FORGET).
- --maxsize=<n>: the cache size (if not preloaded).
- --keepquota=<p>: percentage of entries to keep when applying caching strategy. Default is 50.
- --configure=<method>: an optional method to further configure the cache.
- --index<n>: additional unique indexes. By default, only the ID-index will be created.
DbModelWurblet.
-
-
Constructor Summary
Constructors Constructor Description PdoCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class org.tentackle.persist.wurblet.DbModelWurblet
aas, acs, as, assertEntityIsPersistable, buildInvocationParameters, buildInvocationParameters, buildMethodParameters, buildMethodParameters, createJdbcGetterName, createJdbcSetterName, createJoins, createJoinSetPars, createOrderBy, createOrderBy, createRelationArgString, createRelationDeleteCode, createRelationLinkCode, createRelationSelectCode, createRelationSetFirstArgMethodName, createRelationUpdateReferenceCode, createRelationUpdateReferenceCode, createRelationWurbletArgString, createRelopCode, createStatementId, createWhereSetPars, createWhereSetPars, getContextAttribute, getDefaultSorting, getDefaultSortKeys, getEagerRelations, getExpression, getExpressionArguments, getExtraArguments, getJdbcCode, getJoinPaths, getMethodArguments, getModelCode, getSortingArguments, isArgumentGroupingEnabled, isAttracked, isClassIdRequiredInWhereClause, isClassIdRequiredInWhereClause, isEntityPersistable, isFullTracked, isPathAllowed, isPdoProvidingArguments, isRelationTransient, isTracked, isWithDefaultSorting, isWithJoins, isWithSorting, pcs
-
Methods inherited from class org.tentackle.wurblet.ModelWurblet
appendCommaSeparated, assertSupportedByBackends, createComponentInfo, createDeclaredArgsForSelectOrDeleteMethod, createListRelationDeleteMethodName, createRelationSelectMethodName, deriveClassNameForEntity, getArgs, getBackends, getColumnName, getColumnNameConstant, getEffectiveDataType, getEntity, getMethodName, getModelDefaults, getModelDirName, getModelName, getOption, getOptionArgs, getPdoClassName, getWurbletArgs, isAttributeDerived, isGenerified, isIdAttribute, isIdOrSerialAttribute, isInterface, isPartOfInheritanceHierarchy, isPdo, isRemote, isSerialAttribute, orderByInheritanceLevelAndClassId, prependCommaSeparated, setRemote
-
Methods inherited from class org.wurbelizer.wurblet.AbstractJavaWurblet
getClassName, getPackageName, getSuperClassName, isAbstract, isFinal, isPrivate, isProtected, isPublic, toString
-
-
-
-
Method Detail
-
run
public void run() throws org.wurbelizer.wurbel.WurbelException- Specified by:
runin interfaceorg.wurbelizer.wurblet.Wurblet- Overrides:
runin classDbModelWurblet- Throws:
org.wurbelizer.wurbel.WurbelException
-
-