public class SQLDirectory extends AbstractDirectory
Modifier and Type | Field and Description |
---|---|
static Log |
log |
static int |
MAX_CONNECTION_TRIES
Maximum number of times we retry a connection if the server says it's
overloaded.
|
static String |
TENANT_ID_FIELD |
name
Constructor and Description |
---|
SQLDirectory(SQLDirectoryDescriptor config) |
Modifier and Type | Method and Description |
---|---|
SQLDirectoryDescriptor |
getConfig() |
Connection |
getConnection() |
Dialect |
getDialect() |
String |
getIdField()
Gets the id field of the schema for this directory.
|
String |
getName()
Gets the unique name of the directory, used for registering.
|
String |
getParentDirectory()
Gets the name of the parent directory.
|
String |
getPasswordField()
Gets the password field of the schema for this directory.
|
String |
getSchema()
Gets the schema name used by this directory.
|
Map<String,Field> |
getSchemaFieldMap() |
Session |
getSession()
Creates a session for accessing entries in this directory.
|
List<String> |
getStoredFieldNames() |
Table |
getTable() |
boolean |
isMultiTenant()
Returns
true if this directory is a multi tenant directory,
false otherwise. |
String |
toString() |
boolean |
useNativeCase() |
addReference, addReferences, addSession, getCache, getFieldMapper, getReference, getReferences, invalidateCaches, invalidateDirectoryCache, isReference, orderEntries, removeSession, shutdown
public static final Log log
public static final String TENANT_ID_FIELD
public static final int MAX_CONNECTION_TRIES
public SQLDirectory(SQLDirectoryDescriptor config) throws ClientException
ClientException
public SQLDirectoryDescriptor getConfig()
public Connection getConnection() throws DirectoryException
DirectoryException
public String getName()
Directory
public String getSchema()
Directory
public String getParentDirectory()
Directory
public String getIdField()
Directory
public String getPasswordField()
Directory
public Session getSession() throws DirectoryException
Directory
DirectoryException
- if a session cannot be createdpublic Table getTable()
public Dialect getDialect()
public boolean useNativeCase()
public boolean isMultiTenant()
Directory
true
if this directory is a multi tenant directory,
false
otherwise.isMultiTenant
in interface Directory
isMultiTenant
in class AbstractDirectory
Copyright © 2013 Nuxeo SA. All Rights Reserved.