org.dellroad.stuff.pobj.SpringPersistentObjectSchemaUpdate Maven / Gradle / Ivy
/*
* Copyright (C) 2012 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.stuff.pobj;
import java.util.Collections;
import java.util.List;
import org.dellroad.stuff.schema.DatabaseAction;
import org.dellroad.stuff.spring.AbstractSpringSchemaUpdate;
/**
* Support superclass for Spring-enabled {@link org.dellroad.stuff.schema.SchemaUpdate}s for use with
* a {@link PersistentObjectSchemaUpdater}. Instances include a single {@link DatabaseAction} (namely, themselves).
*
* @param type of the persistent object
*/
public abstract class SpringPersistentObjectSchemaUpdate extends AbstractSpringSchemaUpdate
implements DatabaseAction {
/**
* Apply this update to the given transaction.
*/
@Override
public abstract void apply(PersistentFileTransaction transaction);
@Override
public final List> getDatabaseActions() {
return Collections.singletonList(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy