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, updateLastModifiedSQL
SEPARATOR, 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, verifyRootExists
public String getDataSourceLocation()
public void setDataSourceLocation(String dataSourceLocation)
dataSourceLocation
- data source locationprotected DataSource getDataSource() throws Exception
getDataSource
in class DatabaseFileSystem
Exception
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.