Package org.nuxeo.ecm.directory.sql
Class SQLDirectory
- java.lang.Object
-
- org.nuxeo.ecm.directory.AbstractDirectory
-
- org.nuxeo.ecm.directory.sql.SQLDirectory
-
- All Implemented Interfaces:
Directory
public class SQLDirectory extends AbstractDirectory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
SQLDirectory.TxSessionCleaner
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.directory.AbstractDirectory
AbstractDirectory.CSVLoaderConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected Column
idColumn
static Log
log
protected List<Column>
readColumns
protected List<Column>
readColumnsAll
protected String
readColumnsAllSQL
protected String
readColumnsSQL
-
Fields inherited from class org.nuxeo.ecm.directory.AbstractDirectory
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types
-
-
Constructor Summary
Constructors Constructor Description SQLDirectory(SQLDirectoryDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addReferences()
protected void
addSession(SQLSession session)
Connection
getConnection()
SQLDirectoryDescriptor
getDescriptor()
Get descriptorDialect
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()
Returnstrue
if this directory is a multi tenant directory,false
otherwise.protected void
registerInTx(SQLSession session)
String
toString()
boolean
useNativeCase()
-
Methods inherited from class org.nuxeo.ecm.directory.AbstractDirectory
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, loadDataOnInit, loadFromCSV, makeOrderBy, newReference, orderEntries, removeSession, setReadOnly, shutdown
-
-
-
-
Field Detail
-
readColumnsAll
protected List<Column> readColumnsAll
-
readColumns
protected List<Column> readColumns
-
readColumnsAllSQL
protected String readColumnsAllSQL
-
readColumnsSQL
protected String readColumnsSQL
-
-
Constructor Detail
-
SQLDirectory
public SQLDirectory(SQLDirectoryDescriptor descriptor)
-
-
Method Detail
-
getDescriptor
public SQLDirectoryDescriptor getDescriptor()
Description copied from interface:Directory
Get descriptor
-
addReferences
protected void addReferences()
- Overrides:
addReferences
in classAbstractDirectory
-
initialize
public void initialize()
Description copied from interface:Directory
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Specified by:
initialize
in interfaceDirectory
- Overrides:
initialize
in classAbstractDirectory
-
initializeReferences
public void initializeReferences()
Description copied from interface:Directory
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Specified by:
initializeReferences
in interfaceDirectory
- Overrides:
initializeReferences
in classAbstractDirectory
-
getConnection
public Connection getConnection()
-
getSession
public SQLSession getSession()
Description copied from interface:Directory
Creates a session for accessing entries in this directory.- Returns:
- a Session object
-
addSession
protected void addSession(SQLSession session)
-
registerInTx
protected void registerInTx(SQLSession session)
-
getDialect
public Dialect getDialect()
-
useNativeCase
public boolean useNativeCase()
-
isMultiTenant
public boolean isMultiTenant()
Description copied from interface:Directory
Returnstrue
if this directory is a multi tenant directory,false
otherwise.- Specified by:
isMultiTenant
in interfaceDirectory
- Overrides:
isMultiTenant
in classAbstractDirectory
-
-