org.hibernate.testing.orm.JournalingGenerationTarget Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of hibernate-testing Show documentation
                Show all versions of hibernate-testing Show documentation
Support for testing Hibernate ORM functionality
                
             The newest version!
        
        /*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.testing.orm;
import java.util.ArrayList;
import org.hibernate.tool.schema.spi.GenerationTarget;
/**
 * @author Steve Ebersole
 */
public class JournalingGenerationTarget implements GenerationTarget {
	private final ArrayList commands = new ArrayList<>();
	@Override
	public void prepare() {
	}
	@Override
	public void accept(String command) {
		commands.add( command );
	}
	public ArrayList getCommands() {
		return commands;
	}
	@Override
	public void release() {
	}
	public void clear() {
		commands.clear();
	}
}
      © 2015 - 2025 Weber Informatics LLC | Privacy Policy