org.teiid.resource.adapter.file
Class FileConnectionImpl

java.lang.Object
  extended by org.teiid.resource.spi.BasicConnection
      extended by org.teiid.resource.adapter.file.FileConnectionImpl
All Implemented Interfaces:
javax.resource.cci.Connection, FileConnection

public class FileConnectionImpl
extends BasicConnection
implements FileConnection

TODO: consider using VFS


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.translator.FileConnection
FileConnection.Util
 
Constructor Summary
FileConnectionImpl(java.lang.String parentDirectory)
           
 
Method Summary
 void close()
           
 java.io.File getFile(java.lang.String path)
          Gets the file at the given path.
 
Methods inherited from class org.teiid.resource.spi.BasicConnection
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResource, isAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Connection
createInteraction, getLocalTransaction, getMetaData, getResultSetInfo
 

Constructor Detail

FileConnectionImpl

public FileConnectionImpl(java.lang.String parentDirectory)
Method Detail

getFile

public java.io.File getFile(java.lang.String path)
Description copied from interface: FileConnection
Gets the file at the given path. This file may not exist, but can be used to create/save a new file.

Specified by:
getFile in interface FileConnection
Returns:

close

public void close()
           throws javax.resource.ResourceException
Specified by:
close in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException


Copyright © 2010. All Rights Reserved.