public class JdbcMetadataSource extends SourceImpl
Constructor and Description |
---|
JdbcMetadataSource(String driver,
String url,
String username,
String password,
String schema)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getRootElement
public JdbcMetadataSource(String driver, String url, String username, String password, String schema)
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.protected SourceElement createRootElement() throws SourceException
SourceImpl
createRootElement
in class SourceImpl
SourceException
- if the SourceElement cannot be created.public String getDescription()
Source
public File getSourceFile()
Source
public Date getLastModified()
public byte[] getContentChecksum()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.