All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.testing.orm.JournalingGenerationTarget Maven / Gradle / Ivy

/*
 * SPDX-License-Identifier: LGPL-2.1-or-later
 * 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 - 2024 Weber Informatics LLC | Privacy Policy