Class DBAccessor

java.lang.Object
com.compomics.util.db.DBAccessor

public class DBAccessor
extends Object
This class represents an accessor class' sourcecode as generated by the DBAccessorGenerator class.
Author:
Lennart Martens
  • Constructor Details

    • DBAccessor

      public DBAccessor()
      Empty default constructor
    • DBAccessor

      public DBAccessor​(DBMetaData aMeta, String aPackage, boolean debug)
      This constructor creates all code for the accessor, based on the specified metadata.
      Parameters:
      aMeta - DBMetaData with the metadata to generate the accessor for.
      aPackage - String with the packagename for the class ('null' if none is desired).
      debug - boolean to indicate whether output to stdout is necessary (or desired).
  • Method Details

    • toString

      public String toString()
      This method returns the generated code as a String.
      Overrides:
      toString in class Object
      Returns:
      String with the generated code.