Class GeneratedSQLFile


  • public class GeneratedSQLFile
    extends GeneratedArtefact
    Represents a generated SQL script.
    Version:
    $Id: $Id
    Author:
    lrosenberg
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneratedSQLFile()
      Constructor for GeneratedSQLFile.
      GeneratedSQLFile​(java.lang.String aName)
      Constructor for GeneratedSQLFile.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String createFileContent()
      Creates the content of the file.
      java.lang.StringBuilder getBody()
      Getter for the field body.
      java.lang.String getFileType()
      Returns the file type (i.e.
      java.lang.String getPath()
      Returns the relative path where the artefact must be stored on the filesystem.
      void setPath​(java.lang.String path)
      Setter for the field path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratedSQLFile

        public GeneratedSQLFile()

        Constructor for GeneratedSQLFile.

      • GeneratedSQLFile

        public GeneratedSQLFile​(java.lang.String aName)

        Constructor for GeneratedSQLFile.

        Parameters:
        aName - a String object.
    • Method Detail

      • createFileContent

        public java.lang.String createFileContent()
        Creates the content of the file.
        Specified by:
        createFileContent in class GeneratedArtefact
        Returns:
        a String object.
      • getFileType

        public java.lang.String getFileType()
        Returns the file type (i.e. .java or .jsp).
        Specified by:
        getFileType in class GeneratedArtefact
        Returns:
        a String object.
      • getPath

        public java.lang.String getPath()
        Returns the relative path where the artefact must be stored on the filesystem.
        Specified by:
        getPath in class GeneratedArtefact
        Returns:
        a String object.
      • setPath

        public void setPath​(java.lang.String path)

        Setter for the field path.

        Parameters:
        path - a String object.
      • getBody

        public java.lang.StringBuilder getBody()

        Getter for the field body.

        Specified by:
        getBody in class GeneratedArtefact
        Returns:
        a StringBuilder object.