Package org.teiid.spring.data.file
Class FileConnectionFactory
- java.lang.Object
-
- org.teiid.spring.data.file.FileConnectionFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.teiid.resource.api.ConnectionFactory<FileConnection>
,BaseConnectionFactory<FileConnection>
public class FileConnectionFactory extends Object implements BaseConnectionFactory<FileConnection>
-
-
Constructor Summary
Constructors Constructor Description FileConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
FileConnection
getConnection()
String
getFileMapping()
String
getParentDirectory()
Boolean
isAllowParentPaths()
void
setAllowParentPaths(Boolean allowParentPaths)
void
setFileMapping(String fileMapping)
void
setParentDirectory(String parentDirectory)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.spring.data.BaseConnectionFactory
getAlias, getTranslatorName
-
-
-
-
Method Detail
-
getConnection
public FileConnection getConnection() throws Exception
- Specified by:
getConnection
in interfaceorg.teiid.resource.api.ConnectionFactory<FileConnection>
- Throws:
Exception
-
getParentDirectory
public String getParentDirectory()
-
setParentDirectory
public void setParentDirectory(String parentDirectory)
-
getFileMapping
public String getFileMapping()
-
setFileMapping
public void setFileMapping(String fileMapping)
-
isAllowParentPaths
public Boolean isAllowParentPaths()
-
setAllowParentPaths
public void setAllowParentPaths(Boolean allowParentPaths)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-