Database file system that uses JNDI to acquire the database connection.
The JNDI location of the DataSource to be used in given as
the dataSourceLocation configuration property. See the
DbFileSystem for more configuration details.
WARNING: The acquired database connection is kept for the entire lifetime of the file system instance. The configured data source should be prepared for this.
public class JNDIDatabaseFileSystem extends DatabaseFileSystem
conHelper, copyFileSQL, copyFilesSQL, deleteFileSQL, deleteFolderSQL, INITIAL_BUFFER_SIZE, initialized, insertFileSQL, insertFolderSQL, schema, schemaObjectPrefix, selectChildCountSQL, selectDataSQL, selectExistSQL, selectFileAndFolderNamesSQL, selectFileExistSQL, selectFileNamesSQL, selectFolderExistSQL, selectFolderNamesSQL, selectLastModifiedSQL, selectLengthSQL, updateDataSQL, updateLastModifiedSQLSEPARATOR, SEPARATOR_CHAR| Constructor and Description |
|---|
JNDIDatabaseFileSystem()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected DataSource |
getDataSource()
Deprecated.
|
String |
getDataSourceLocation()
Deprecated.
Returns the JNDI location of the data source.
|
void |
setDataSourceLocation(String dataSourceLocation)
Deprecated.
Sets the JNDI location of the data source.
|
buildSQLStatements, close, createCheckSchemaOperation, createConnectionHelper, createDeepFolder, createFolder, deleteFile, deleteFolder, equals, exists, getInputStream, getOutputStream, getSchema, getSchemaObjectPrefix, hasChildren, hashCode, init, isFile, isFolder, isSchemaCheckEnabled, lastModified, length, list, listFiles, listFolders, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, verifyRootExistspublic String getDataSourceLocation()
public void setDataSourceLocation(String dataSourceLocation)
dataSourceLocation - data source locationprotected DataSource getDataSource() throws Exception
getDataSource in class DatabaseFileSystemExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.