Package org.dellroad.stuff.pobj
Class SpringPersistentObjectSchemaUpdate<T>
java.lang.Object
org.dellroad.stuff.schema.AbstractSchemaUpdate<T>
org.dellroad.stuff.spring.AbstractSpringSchemaUpdate<PersistentFileTransaction>
org.dellroad.stuff.pobj.SpringPersistentObjectSchemaUpdate<T>
- Type Parameters:
T
- type of the persistent object
- All Implemented Interfaces:
DatabaseAction<PersistentFileTransaction>
,SchemaUpdate<PersistentFileTransaction>
,Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
- Direct Known Subclasses:
SpringXSLPersistentObjectSchemaUpdate
public abstract class SpringPersistentObjectSchemaUpdate<T>
extends AbstractSpringSchemaUpdate<PersistentFileTransaction>
implements DatabaseAction<PersistentFileTransaction>
Support superclass for Spring-enabled
SchemaUpdate
s for use with
a PersistentObjectSchemaUpdater
. Instances include a single DatabaseAction
(namely, themselves).-
Field Summary
Fields inherited from class org.dellroad.stuff.spring.AbstractSpringSchemaUpdate
beanFactory, beanName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
apply
(PersistentFileTransaction transaction) Apply this update to the given transaction.final List<SpringPersistentObjectSchemaUpdate<T>>
Get the action(s) that comprise this update.Methods inherited from class org.dellroad.stuff.spring.AbstractSpringSchemaUpdate
afterPropertiesSet, setBeanFactory, setBeanName, setRequiredPredecessorsFromDependencies
Methods inherited from class org.dellroad.stuff.schema.AbstractSchemaUpdate
getName, getRequiredPredecessors, isSingleAction, setName, setRequiredPredecessors, setSingleAction, toString
-
Constructor Details
-
SpringPersistentObjectSchemaUpdate
public SpringPersistentObjectSchemaUpdate()
-
-
Method Details
-
apply
Apply this update to the given transaction.- Specified by:
apply
in interfaceDatabaseAction<T>
- Parameters:
transaction
- open transaction
-
getDatabaseActions
Description copied from interface:SchemaUpdate
Get the action(s) that comprise this update. Ideally, individual actions should be atomic database operations, i.e., each one should either finish completely, or else leave the database in a state where it can be tried again. In any case, each action will be applied within its own transaction when transactions are supported by the database unlessSchemaUpdate.isSingleAction()
returns true.- Specified by:
getDatabaseActions
in interfaceSchemaUpdate<T>
- Returns:
- a list of zero or more actions to apply
- See Also:
-