Package | Description |
---|---|
net.ontopia.topicmaps.db2tm |
The implementation of and public API to the DB2TM module for
converting relational data (in CSV files or RDBMSs) to Topic Maps.
|
Modifier and Type | Field and Description |
---|---|
protected RelationMapping |
JDBCDataSource.mapping |
protected RelationMapping |
CSVDataSource.mapping |
protected RelationMapping |
Relation.mapping |
protected RelationMapping |
Context.rmapping |
Modifier and Type | Method and Description |
---|---|
RelationMapping |
Context.getMapping()
INTERNAL: Gets the relation mapping currently in use.
|
RelationMapping |
Relation.getMapping()
INTERNAL: Returns the relation mapping to which the relation
belongs.
|
static RelationMapping |
Utils.getRelationMapping(javax.servlet.jsp.PageContext ctxt)
INTERNAL: Helper method for maintaining a relation mapping
instance throughout a page context.
|
static RelationMapping |
RelationMapping.read(File file) |
static RelationMapping |
RelationMapping.read(InputStream istream,
File basedir) |
static RelationMapping |
RelationMapping.readFromClasspath(String resource) |
Modifier and Type | Method and Description |
---|---|
static void |
Processor.addRelations(RelationMapping rmapping,
Collection<String> relnames,
TopicMapIF topicmap,
LocatorIF baseloc)
INTERNAL: Runs a DB2TM process by adding tuples to the topic map.
|
static void |
Processor.removeRelations(RelationMapping rmapping,
Collection<String> relnames,
TopicMapIF topicmap,
LocatorIF baseloc)
INTERNAL: Runs a DB2TM process by removing tuples from the topic map.
|
void |
Context.setMapping(RelationMapping rmapping)
INTERNAL: Sets the current relation mapping.
|
static void |
Processor.synchronizeRelations(RelationMapping rmapping,
Collection<String> relnames,
TopicMapIF topicmap,
LocatorIF baseloc)
INTERNAL: Runs a DB2TM process by synchronizing the relations.
|
static void |
Processor.synchronizeRelations(RelationMapping rmapping,
Collection<String> relnames,
TopicMapIF topicmap,
LocatorIF baseloc,
boolean forceRescan) |
static Map<DataSourceIF,Collection<Relation>> |
Utils.verifyRelationsForMapping(RelationMapping rmapping)
INTERNAL: Returns a map where the keys are data sources and each
entry is a collection of their individual relations.
|
Constructor and Description |
---|
JDBCDataSource(RelationMapping mapping) |
JDBCDataSource(RelationMapping mapping,
Connection conn) |