|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapper
A Mapper
maps Row
s to and from the database.
Nested Class Summary | |
---|---|
static class |
Mapper.Identification
Identifiers assigned by a server to identify a client mapper and its repository. |
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.storage.sql.RowMapper |
---|
RowMapper.CopyHierarchyResult, RowMapper.RowBatch, RowMapper.RowUpdate |
Field Summary | |
---|---|
static java.lang.String |
CLOSE
|
static java.lang.String |
GET_IDENTIFICATION
|
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Method Summary | |
---|---|
void |
close()
|
void |
createClusterNode()
Informs the cluster that this node exists. |
void |
createDatabase()
Creates the necessary structures in the database. |
Invalidations |
getClusterInvalidations()
Gets the invalidations from other cluster nodes. |
Mapper.Identification |
getIdentification()
Returns the repository id and mapper id assigned. |
java.io.Serializable |
getLastVersionId(java.io.Serializable versionSeriesId)
Gets the id of the last version given a version series id. |
java.io.Serializable |
getRootId(java.io.Serializable repositoryId)
Gets the root id for a given repository, if registered. |
int |
getTableSize(java.lang.String tableName)
|
java.io.Serializable |
getVersionIdByLabel(java.io.Serializable versionSeriesId,
java.lang.String label)
Gets the id of a version given a version series id and a label. |
void |
insertClusterInvalidations(Invalidations invalidations)
Inserts the invalidation rows for the other cluster nodes. |
PartialList<java.io.Serializable> |
query(java.lang.String query,
QueryFilter queryFilter,
boolean countTotal)
Makes a NXQL query to the database. |
IterableQueryResult |
queryAndFetch(java.lang.String query,
java.lang.String queryType,
QueryFilter queryFilter,
java.lang.Object... params)
Makes a query to the database and returns an iterable (which must be closed when done). |
void |
rebuildReadAcls()
|
void |
removeClusterNode()
Removes this node from the cluster. |
void |
setRootId(java.io.Serializable repositoryId,
java.io.Serializable id)
Records the newly generated root id for a given repository. |
void |
updateReadAcls()
|
Methods inherited from interface org.nuxeo.ecm.core.storage.sql.RowMapper |
---|
clearCache, copyHierarchy, getProxyRows, getVersionRows, read, readChildHierRow, readChildHierRows, readCollectionRowArray, readSimpleRow, receiveInvalidations, rollback, sendInvalidations, write |
Methods inherited from interface javax.transaction.xa.XAResource |
---|
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
Field Detail |
---|
static final java.lang.String GET_IDENTIFICATION
static final java.lang.String CLOSE
Method Detail |
---|
Mapper.Identification getIdentification() throws StorageException
This is used in remote stateless mode to be able to identify to which mapper an incoming connection is targeted, and from which repository instance.
StorageException
- when initial connection failed (for a NetMapper)void close() throws StorageException
StorageException
int getTableSize(java.lang.String tableName) throws StorageException
StorageException
void createDatabase() throws StorageException
StorageException
java.io.Serializable getRootId(java.io.Serializable repositoryId) throws StorageException
repositoryId
- the repository id, usually 0
StorageException
void setRootId(java.io.Serializable repositoryId, java.io.Serializable id) throws StorageException
repositoryId
- the repository id, usually 0id
- the root id
StorageException
java.io.Serializable getVersionIdByLabel(java.io.Serializable versionSeriesId, java.lang.String label) throws StorageException
versionSeriesId
- the version series idlabel
- the label
null
if not found
StorageException
java.io.Serializable getLastVersionId(java.io.Serializable versionSeriesId) throws StorageException
versionSeriesId
- the version series id
null
if not found
StorageException
PartialList<java.io.Serializable> query(java.lang.String query, QueryFilter queryFilter, boolean countTotal) throws StorageException
query
- the queryqueryFilter
- the query filtercountTotal
- if true
, count the total size without
limit/offset
StorageException
IterableQueryResult queryAndFetch(java.lang.String query, java.lang.String queryType, QueryFilter queryFilter, java.lang.Object... params) throws StorageException
query
- the queryqueryType
- the query typequeryFilter
- the query filterparams
- optional query-type-dependent parameters
StorageException
void updateReadAcls() throws StorageException
StorageException
void rebuildReadAcls() throws StorageException
StorageException
void createClusterNode() throws StorageException
StorageException
void removeClusterNode() throws StorageException
StorageException
void insertClusterInvalidations(Invalidations invalidations) throws StorageException
StorageException
Invalidations getClusterInvalidations() throws StorageException
StorageException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |