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

net.anotheria.asg.generator.GeneratedSQLFile Maven / Gradle / Ivy

The newest version!
package net.anotheria.asg.generator;

/**
 * Represents a generated SQL script.
 *
 * @author lrosenberg
 * @version $Id: $Id
 */
public class GeneratedSQLFile extends GeneratedArtefact{

	/**
	 * Body of the file.
	 */
	private StringBuilder body;
	/**
	 * Path to the generated artefact storage.
	 */
	private String path = "sql";
	
	
	/**
	 * 

Constructor for GeneratedSQLFile.

*/ public GeneratedSQLFile() { body = new StringBuilder(); } /** *

Constructor for GeneratedSQLFile.

* * @param aName a {@link java.lang.String} object. */ public GeneratedSQLFile(String aName){ this(); setName(aName); } /** {@inheritDoc} */ @Override public String createFileContent() { StringBuilder ret = new StringBuilder(body.length()); ret.append(getBody()); return ret.toString(); } /** {@inheritDoc} */ @Override public String getFileType() { return ".sql"; } /** {@inheritDoc} */ @Override public String getPath() { return path; } /** *

Setter for the field path.

* * @param path a {@link java.lang.String} object. */ public void setPath(String path) { this.path = path; } /** *

Getter for the field body.

* * @return a {@link java.lang.StringBuilder} object. */ public StringBuilder getBody() { return body; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy