public class MSSqlFileSystem extends DbFileSystem
MSSqlFileSystem is a JDBC-based FileSystem
implementation for Jackrabbit that persists file system entries in an
MS SQL database.
It is configured through the following properties:
driver: the FQN name of the JDBC driver class
(default: "com.microsoft.sqlserver.jdbc.SQLServerDriver")schema: type of schema to be used
(default: "mssql")url: the database url (e.g.
"jdbc:sqlserver://[host]:[port];<params>")user: the database userpassword: the user's passwordschemaObjectPrefix: prefix to be prepended to schema objectstableSpace: the tablespace to useDbFileSystem.
The following is a fragment from a sample configuration:
<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
<param name="url" value="jdbc:sqlserver://localhost:1433"/>
<param name="user" value="padv25"/>
<param name="password" value="padv25"/>
<param name="schemaObjectPrefix" value="rep_"/>
<param name="tableSpace" value="default"/>
</FileSystem>
| Modifier and Type | Field and Description |
|---|---|
static String |
TABLE_SPACE_VARIABLE
the variable for the MS SQL table space
|
protected String |
tableSpace
the MS SQL table space to use
|
dataSourceName, driver, password, url, userconHelper, 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 |
|---|
MSSqlFileSystem()
Creates a new
MSSqlFileSystem instance. |
| Modifier and Type | Method and Description |
|---|---|
protected CheckSchemaOperation |
createCheckSchemaOperation()
This method is called from
DatabaseFileSystem.init() after the
DatabaseFileSystem.createConnectionHelper(DataSource) method, and returns a default CheckSchemaOperation. |
String |
getTableSpace()
Returns the configured MS SQL table space.
|
void |
setTableSpace(String tableSpace)
Sets the MS SQL table space.
|
equals, getDataSource, getDataSourceName, getDriver, getPassword, getUrl, getUser, hashCode, setConnectionFactory, setDataSourceName, setDriver, setPassword, setUrl, setUserbuildSQLStatements, close, createConnectionHelper, createDeepFolder, createFolder, deleteFile, deleteFolder, exists, getInputStream, getOutputStream, getSchema, getSchemaObjectPrefix, hasChildren, init, isFile, isFolder, isSchemaCheckEnabled, lastModified, length, list, listFiles, listFolders, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, verifyRootExistspublic static final String TABLE_SPACE_VARIABLE
protected String tableSpace
public String getTableSpace()
public void setTableSpace(String tableSpace)
tableSpace - the MS SQL table space.protected CheckSchemaOperation createCheckSchemaOperation()
DatabaseFileSystem.init() after the
DatabaseFileSystem.createConnectionHelper(DataSource) method, and returns a default CheckSchemaOperation.
Subclasses can overrride this implementation to get a customized implementation.createCheckSchemaOperation in class DatabaseFileSystemCheckSchemaOperation instanceCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.