Package org.nuxeo.ecm.directory.sql
Class TableReference
java.lang.Object
org.nuxeo.ecm.directory.AbstractReference
org.nuxeo.ecm.directory.sql.TableReference
- All Implemented Interfaces:
Reference
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
Fields inherited from class org.nuxeo.ecm.directory.AbstractReference
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName
-
Constructor Summary
ConstructorDescriptionTableReference
(String fieldName, String directory, String tableName, String sourceColumn, String targetColumn, String dataFileName) TableReference
(ReferenceDescriptor descriptor) TableReference
(TableReferenceDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLink
(String sourceId, String targetId, SQLSession session, boolean checkExisting) void
void
Adds the links between the source id and the target idsvoid
void
Adds the links between the source ids and the target idboolean
exists
(String sourceId, String targetId, SQLSession session) getSourceIdsForTarget
(String targetId) protected SQLSession
getTargetIdsForSource
(String sourceId) protected void
initialize
(Connection connection) void
removeLinksFor
(String column, String entryId, SQLSession session) void
removeLinksForSource
(String sourceId) void
removeLinksForSource
(String sourceId, Session session) Removes all the links for a given source idvoid
removeLinksForTarget
(String targetId) void
removeLinksForTarget
(String targetId, Session session) Removes all the links for a given target idvoid
setIdsFor
(String idsColumn, List<String> ids, String filterColumn, String filterValue, SQLSession session) void
setSourceIdsForTarget
(String targetId, List<String> sourceIds) void
setSourceIdsForTarget
(String targetId, List<String> sourceIds, Session session) Sets all source ids to be associated to the given target idvoid
setSourceIdsForTarget
(String targetId, List<String> sourceIds, SQLSession session) void
setTargetIdsForSource
(String sourceId, List<String> targetIds) void
setTargetIdsForSource
(String sourceId, List<String> targetIds, Session session) Sets all target ids to be associated to the given source idvoid
setTargetIdsForSource
(String sourceId, List<String> targetIds, SQLSession session) Methods inherited from class org.nuxeo.ecm.directory.AbstractReference
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName, setTargetDirectoryName
-
Field Details
-
tableName
-
sourceColumn
-
targetColumn
-
dataFileName
-
-
Constructor Details
-
Method Details
-
initialize
-
addLinks
-
addLinks
-
addLinks
Description copied from interface:Reference
Adds the links between the source id and the target ids- Parameters:
sourceId
- the source idtargetIds
- the target idssession
- the session
-
addLinks
Description copied from interface:Reference
Adds the links between the source ids and the target id- Parameters:
sourceIds
- the source idstargetId
- the target idsession
- the session
-
exists
-
addLink
-
getIdsFor
-
getSourceIdsForTarget
-
getTargetIdsForSource
-
removeLinksFor
-
removeLinksForSource
Description copied from interface:Reference
Removes all the links for a given source id- Parameters:
sourceId
- the source idsession
- the session
-
removeLinksForTarget
Description copied from interface:Reference
Removes all the links for a given target id- Parameters:
targetId
- the target idsession
- the session
-
removeLinksForSource
-
removeLinksForTarget
-
setIdsFor
-
setSourceIdsForTarget
-
setTargetIdsForSource
-
setSourceIdsForTarget
-
setSourceIdsForTarget
Description copied from interface:Reference
Sets all source ids to be associated to the given target id- Parameters:
targetId
- the target idsourceIds
- the source idssession
- the session
-
setTargetIdsForSource
-
setTargetIdsForSource
Description copied from interface:Reference
Sets all target ids to be associated to the given source id- Parameters:
sourceId
- the source idtargetIds
- the target idssession
- the session
-
getSQLSession
-
getSourceColumn
-
getTargetColumn
-
getTargetDirectoryName
-
getTableName
-
getDataFileName
-