public class DbContainer extends Object implements IContainer
Provides a container for database.
Constructor and Description |
---|
DbContainer(Connection connection)
Initializes a new instance of the
DbContainer class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the unmanaged resources used by the extractor.
|
List<Container.Entity> |
getEntities()
Gets a collection of container's entities.
|
DbTableReader |
getTableReader(String tableName)
Creates a table reader for the database table.
|
InputStream |
openEntityStream(Container.Entity entity)
Opens a stream with the content of the container's entity.
|
public DbContainer(Connection connection)
Initializes a new instance of the DbContainer
class.
connection
- An instance of database connection.public List<Container.Entity> getEntities()
Gets a collection of container's entities.
getEntities
in interface IContainer
public void dispose()
Releases the unmanaged resources used by the extractor.
public DbTableReader getTableReader(String tableName)
Creates a table reader for the database table.
tableName
- A name of the database table.DbTableReader
class.public InputStream openEntityStream(Container.Entity entity)
Opens a stream with the content of the container's entity.
openEntityStream
in interface IContainer
entity
- A container's entity.
Copyright © 2018. All rights reserved.