public class SQLDirectory extends AbstractDirectory
Modifier and Type | Class and Description |
---|---|
protected class |
SQLDirectory.TxSessionCleaner |
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
protected List<Column> |
readColumns |
protected List<Column> |
readColumnsAll |
protected String |
readColumnsAllSQL |
protected String |
readColumnsSQL |
static String |
TENANT_ID_FIELD |
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, types
Constructor and Description |
---|
SQLDirectory(SQLDirectoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSession(SQLSession session) |
protected void |
addTableReferences(TableReferenceDescriptor[] tableReferences) |
Connection |
getConnection() |
SQLDirectoryDescriptor |
getDescriptor()
Get descriptor
|
Dialect |
getDialect() |
Session |
getSession()
Creates a session for accessing entries in this directory.
|
Table |
getTable() |
protected boolean |
initConnection()
Initializes the table.
|
protected boolean |
initConnectionIfNeeded()
Lazily initializes the connection.
|
boolean |
isMultiTenant()
Returns
true if this directory is a multi tenant directory, false otherwise. |
protected void |
registerInTx(SQLSession session) |
String |
toString() |
boolean |
useNativeCase() |
addInverseReferences, addReference, addReferences, addReferences, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getReferences, getSchema, getSchemaFieldMap, getTypes, initSchemaFieldMap, invalidateCaches, invalidateDirectoryCache, isReadOnly, isReference, orderEntries, removeSession, setReadOnly, shutdown
public static final org.apache.commons.logging.Log log
public static final String TENANT_ID_FIELD
protected List<Column> readColumnsAll
protected List<Column> readColumns
protected String readColumnsAllSQL
protected String readColumnsSQL
public SQLDirectory(SQLDirectoryDescriptor descriptor)
public SQLDirectoryDescriptor getDescriptor()
Directory
protected boolean initConnectionIfNeeded()
true
if CSV data should be loadedprotected boolean initConnection()
true
if CSV data should be loadedpublic Connection getConnection() throws DirectoryException
DirectoryException
public Session getSession() throws DirectoryException
Directory
DirectoryException
- if a session cannot be createdprotected void addSession(SQLSession session) throws DirectoryException
DirectoryException
protected void registerInTx(SQLSession session) throws DirectoryException
DirectoryException
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
protected void addTableReferences(TableReferenceDescriptor[] tableReferences)
Copyright © 2018 Nuxeo. All rights reserved.