Package org.apache.torque.generator.source.jdbc

# Klasse JdbcMetadataSource

java.lang.Object
org.apache.torque.generator.source.SourceImpl
org.apache.torque.generator.source.jdbc.JdbcMetadataSource

Alle implementierten Schnittstellen:
  `Source`

public class JdbcMetadataSource extends SourceImpl
A source which reads the data from JDBC Metadata.

Version:
  $Id: JdbcMetadataSource.java 1896195 2021-12-20 17:41:20Z gk $

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `JdbcMetadataSource(String driver, String url, String username, String password, String schema)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `protected SourceElement`
  `createRootElement()`
  Reads the root element and the whole untransformed source tree.
  `byte[]`
  `getContentChecksum()`
  Returns the checksum of the content.
  `String`
  `getDescription()`
  Gets a description of this source for debugging purposes.
  `Date`
  `getLastModified()`
  Returns the last modification date of the source files.
  `File`
  `getSourceFile()`
  Returns the source file, if it exists.

  ### Von Klasse geerbte Methoden org.apache.torque.generator.source.SourceImpl

  `getRootElement`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### JdbcMetadataSource

    public JdbcMetadataSource(String driver, String url, String username, String password, String schema)
    Constructor.
    Parameter:
      `driver` - the database driver class, not null.
      `url` - the connection url, not null.
      `username` - the username of the database user.
      `password` - the password of the database user.
      `schema` - the schema to read.

- ## Methodendetails

  - ### createRootElement

    protected SourceElement createRootElement() throws SourceException
    Beschreibung aus Klasse kopiert: `SourceImpl`
    Reads the root element and the whole untransformed source tree.
    Angegeben von:
      `createRootElement` in Klasse `SourceImpl`
    Gibt zurück:
      the root element, not null.
    Löst aus:
      `SourceException` - if the SourceElement cannot be created.

  - ### getDescription

    public String getDescription()
    Beschreibung aus Schnittstelle kopiert: `Source`
    Gets a description of this source for debugging purposes.
    Gibt zurück:
      the description, which should make it possible to identify the currently processed output.

  - ### getSourceFile

    public File getSourceFile()
    Beschreibung aus Schnittstelle kopiert: `Source`
    Returns the source file, if it exists.
    Gibt zurück:
      the source file, or null if the source is not read from a file.

  - ### getLastModified

    public Date getLastModified()
    Returns the last modification date of the source files.
    Gibt zurück:
      always null because no source file exist.

  - ### getContentChecksum

    public byte[] getContentChecksum()
    Returns the checksum of the content.
    Gibt zurück:
      always null.