public class DocumentMapperServiceImpl extends Object implements DocumentMapperService, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
DocumentMapperServiceImpl.AnnoFSAttribute
holder for FeatureStruct attributes
|
static class |
DocumentMapperServiceImpl.AnnoLink |
static interface |
DocumentMapperServiceImpl.ChunkPreparedStatementSetter<T> |
Constructor and Description |
---|
DocumentMapperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
load the map of uima annotation class name to mapper class name from the
database.
|
Set<AnnoMappingInfo> |
getAnnoMappingInfos() |
int |
getBatchSize() |
DataSource |
getDataSource() |
String |
getDbSchema() |
String |
getDbType() |
String |
getDialectClassName() |
Map<String,AnnoMappingInfo> |
getMapAnnoMappingInfo() |
org.hibernate.SessionFactory |
getSessionFactory() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
Properties |
getYtexProperties() |
void |
initDocKeyMapping() |
Integer |
saveDocument(org.apache.uima.jcas.JCas jcas,
String analysisBatch,
boolean bStoreDocText,
boolean bStoreCAS,
boolean bInsertAnnotationContainmentLinks,
Set<String> setTypesToIgnore)
Save Document and all mapped annotations.
|
void |
setAnnoMappingInfos(Set<AnnoMappingInfo> annoMappingInfos)
initialize mapAnnoMappingInfo from the set
|
void |
setBatchSize(int batchSize) |
void |
setDataSource(DataSource dataSource) |
void |
setDbSchema(String dbSchema) |
void |
setDbType(String dbType) |
void |
setDialectClassName(String dialectClassName) |
void |
setMapAnnoMappingInfo(Map<String,AnnoMappingInfo> mapAnnoMappingInfo) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setYtexProperties(Properties ytexProperties) |
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public Set<AnnoMappingInfo> getAnnoMappingInfos()
public int getBatchSize()
public DataSource getDataSource()
public String getDbSchema()
public String getDbType()
public String getDialectClassName()
public Map<String,AnnoMappingInfo> getMapAnnoMappingInfo()
public org.hibernate.SessionFactory getSessionFactory()
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public Properties getYtexProperties()
public void initDocKeyMapping()
public Integer saveDocument(org.apache.uima.jcas.JCas jcas, String analysisBatch, boolean bStoreDocText, boolean bStoreCAS, boolean bInsertAnnotationContainmentLinks, Set<String> setTypesToIgnore)
DocumentMapperService
saveDocument
in interface DocumentMapperService
analysisBatch
- optionalpublic void setAnnoMappingInfos(Set<AnnoMappingInfo> annoMappingInfos)
annoMappingInfos
- public void setBatchSize(int batchSize)
public void setDataSource(DataSource dataSource)
public void setDbSchema(String dbSchema)
public void setDbType(String dbType)
public void setDialectClassName(String dialectClassName)
public void setMapAnnoMappingInfo(Map<String,AnnoMappingInfo> mapAnnoMappingInfo)
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setYtexProperties(Properties ytexProperties)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.