@Deprecated public class MSSqlPersistenceManager extends SimpleDbPersistenceManager
MSSqlPersistenceManager
is a JDBC-based
PersistenceManager
for Jackrabbit that persists
ItemState
and NodeReferences
objects in MS SQL
database using a simple custom serialization format and a
very basic non-normalized database schema (in essence tables with one 'key'
and one 'data' column).
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:microsoft:sqlserver://[host]:[port];databaseName=[dbname]"
)user
: the database userpassword
: the user's passwordschemaObjectPrefix
: prefix to be prepended to schema objectstableSpace
: the tablespace to useexternalBLOBs
: if true
(the default) BINARY
values (BLOBs) are stored in the local file system;
if false
BLOBs are stored in the databaseSimpleDbPersistenceManager
.
The following is a fragment from a sample configuration:
<PersistenceManager class="org.apache.jackrabbit.core.persistence.db.MSSqlPersistenceManager"> <param name="url" value="jdbc:microsoft:sqlserver://localhost:1433;mydb"/> <param name="user" value="mydba"/> <param name="password" value="mydba"/> <param name="schemaObjectPrefix" value="${wsp.name}_"/> <param name="tableSpace" value=""/> <param name="externalBLOBs" value="false"/> </PersistenceManager>
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_SPACE_VARIABLE
Deprecated.
the variable for the MSSql table space
|
protected String |
tableSpace
Deprecated.
the MSSql table space to use
|
driver, password, url, user
autoReconnect, blobDeleteSQL, blobFS, blobInsertSQL, blobSelectExistSQL, blobSelectSQL, blobStore, blobUpdateSQL, con, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectExistSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, nodeStateDeleteSQL, nodeStateInsertSQL, nodeStateSelectExistSQL, nodeStateSelectSQL, nodeStateUpdateSQL, propertyStateDeleteSQL, propertyStateInsertSQL, propertyStateSelectExistSQL, propertyStateSelectSQL, propertyStateUpdateSQL, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SLEEP_BEFORE_RECONNECT
Constructor and Description |
---|
MSSqlPersistenceManager()
Deprecated.
Creates a new
MSSqlPersistenceManager instance. |
Modifier and Type | Method and Description |
---|---|
protected String |
createSchemaSql(String sql)
Deprecated.
Replace wildcards and return the expanded SQL statement.
|
String |
getTableSpace()
Deprecated.
Returns the configured MSSql table space.
|
void |
setTableSpace(String tableSpace)
Deprecated.
Sets the MSSql table space.
|
getConnection, getDriver, getPassword, getUrl, getUser, setConnectionFactory, setDriver, setPassword, setUrl, setUser
buildSQLStatements, checkSchema, close, closeConnection, closeResultSet, closeStatement, destroy, destroy, destroy, executeStmt, exists, exists, existsReferencesTo, getSchema, getSchemaDDL, getSchemaObjectPrefix, init, initConnection, initPreparedStatements, isExternalBLOBs, isSchemaCheckEnabled, load, load, loadReferencesTo, logException, prepareSchemaObjectPrefix, reestablishConnection, resetStatement, setExternalBLOBs, setExternalBLOBs, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, store, store, store, store
checkConsistency, createNew, createNew
public static final String TABLE_SPACE_VARIABLE
protected String tableSpace
public MSSqlPersistenceManager()
MSSqlPersistenceManager
instance.public String getTableSpace()
public void setTableSpace(String tableSpace)
tableSpace
- the MSSql table space.protected String createSchemaSql(String sql)
DatabasePersistenceManager
createSchemaSql
in class DatabasePersistenceManager
sql
- The SQL with embedded wildcards.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.