org.apache.jackrabbit.core.fs.db
Class JNDIDatabaseFileSystem

java.lang.Object
  extended by org.apache.jackrabbit.core.fs.db.DatabaseFileSystem
      extended by org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem
All Implemented Interfaces:
FileSystem

Deprecated. This class should not be used because it is not database vendor specific. Each DatabaseFileSystem now supports getting the connection via JNDI by setting the driver to javax.naming.InitialContext and the URL to the JNDI name.

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


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.fs.db.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
 
Fields inherited from interface org.apache.jackrabbit.core.fs.FileSystem
SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
JNDIDatabaseFileSystem()
          Deprecated.  
 
Method Summary
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.
 
Methods inherited from class org.apache.jackrabbit.core.fs.db.DatabaseFileSystem
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIDatabaseFileSystem

public JNDIDatabaseFileSystem()
Deprecated. 
Method Detail

getDataSourceLocation

public String getDataSourceLocation()
Deprecated. 
Returns the JNDI location of the data source.

Returns:
data source location

setDataSourceLocation

public void setDataSourceLocation(String dataSourceLocation)
Deprecated. 
Sets the JNDI location of the data source.

Parameters:
dataSourceLocation - data source location

getDataSource

protected DataSource getDataSource()
                            throws Exception
Deprecated. 

Specified by:
getDataSource in class DatabaseFileSystem
Returns:
Throws:
Exception


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.