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, shutdownpublic static final Log log
public static final String TENANT_ID_FIELD
public static final int MAX_CONNECTION_TRIES
public SQLDirectory(SQLDirectoryDescriptor config) throws ClientException
ClientExceptionpublic SQLDirectoryDescriptor getConfig()
public Connection getConnection() throws DirectoryException
DirectoryExceptionpublic String getName()
Directorypublic String getSchema()
Directorypublic String getParentDirectory()
Directorypublic String getIdField()
Directorypublic String getPasswordField()
Directorypublic Session getSession() throws DirectoryException
DirectoryDirectoryException - if a session cannot be createdpublic Table getTable()
public Dialect getDialect()
public boolean useNativeCase()
public boolean isMultiTenant()
Directorytrue if this directory is a multi tenant directory,
false otherwise.isMultiTenant in interface DirectoryisMultiTenant in class AbstractDirectoryCopyright © 2013 Nuxeo SA. All Rights Reserved.