public class SQLDirectory extends AbstractDirectory
Modifier and Type | Class and Description |
---|---|
protected class |
SQLDirectory.TxSessionCleaner |
Modifier and Type | Field and Description |
---|---|
protected Column |
idColumn |
static org.apache.commons.logging.Log |
log |
protected List<Column> |
readColumns |
protected List<Column> |
readColumnsAll |
protected String |
readColumnsAllSQL |
protected String |
readColumnsSQL |
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types
Constructor and Description |
---|
SQLDirectory(SQLDirectoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
addReferences() |
protected void |
addSession(SQLSession session) |
Connection |
getConnection() |
SQLDirectoryDescriptor |
getDescriptor()
Get descriptor
|
Dialect |
getDialect() |
SQLSession |
getSession()
Creates a session for accessing entries in this directory.
|
Table |
getTable() |
void |
initialize()
INTERNAL, DO NOT CALL.
|
void |
initializeReferences()
INTERNAL, DO NOT CALL.
|
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, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getReferences, getSchema, getSchemaFieldMap, getTypes, initializeInverseReferences, initSchemaFieldMap, invalidateCaches, invalidateDirectoryCache, isReadOnly, isReference, loadData, makeOrderBy, newReference, orderEntries, removeSession, setReadOnly, shutdown
public static final org.apache.commons.logging.Log log
protected List<Column> readColumnsAll
protected List<Column> readColumns
protected String readColumnsAllSQL
protected String readColumnsSQL
public SQLDirectory(SQLDirectoryDescriptor descriptor)
public SQLDirectoryDescriptor getDescriptor()
Directory
protected void addReferences()
addReferences
in class AbstractDirectory
public void initialize()
Directory
initialize
in interface Directory
initialize
in class AbstractDirectory
public void initializeReferences()
Directory
initializeReferences
in interface Directory
initializeReferences
in class AbstractDirectory
public Connection getConnection()
public SQLSession getSession()
Directory
protected void addSession(SQLSession session)
protected void registerInTx(SQLSession session)
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 © 2019 Nuxeo. All rights reserved.