com.compomics.util.db
Class DBAccessor

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

public class DBAccessor
extends java.lang.Object

This class represents an accessor class' sourcecode as generated by the DBAccessorGenerator class.

Author:
Lennart Martens

Constructor Summary
DBAccessor(DBMetaData aMeta, java.lang.String aPackage, boolean debug)
          This constructor creates all code for the accessor, based on the specified metadata.
 
Method Summary
 java.lang.String toString()
          This method returns the generated code as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBAccessor

public DBAccessor(DBMetaData aMeta,
                  java.lang.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 Detail

toString

public java.lang.String toString()
This method returns the generated code as a String.

Overrides:
toString in class java.lang.Object
Returns:
String with the generated code.


Copyright © 2012. All Rights Reserved.