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
public class TableReference
- extends AbstractReference
|
Method Summary |
void |
addLink(String sourceId,
String targetId,
SQLSession session,
boolean checkExisting)
|
void |
addLinks(List<String> sourceIds,
String targetId)
|
void |
addLinks(List<String> sourceIds,
String targetId,
SQLSession session)
|
void |
addLinks(String sourceId,
List<String> targetIds)
|
void |
addLinks(String sourceId,
List<String> targetIds,
SQLSession session)
|
boolean |
exists(String sourceId,
String targetId,
SQLSession session)
|
String |
getDataFileName()
|
protected List<String> |
getIdsFor(String valueColumn,
String filterColumn,
String filterValue)
|
String |
getSchemaName()
|
String |
getSourceColumn()
|
List<String> |
getSourceIdsForTarget(String targetId)
|
protected SQLSession |
getSQLSession()
|
Table |
getTable()
|
String |
getTableName()
|
String |
getTargetColumn()
|
String |
getTargetDirectoryName()
|
List<String> |
getTargetIdsForSource(String sourceId)
|
protected void |
maybeInitialize(SQLSession sqlSession)
Initialize if needed, using an existing session. |
void |
removeLinksFor(String column,
String entryId,
SQLSession session)
|
void |
removeLinksForSource(String sourceId)
|
void |
removeLinksForSource(String sourceId,
SQLSession session)
|
void |
removeLinksForTarget(String targetId)
|
void |
removeLinksForTarget(String targetId,
SQLSession session)
|
void |
setFieldName(String fieldName)
|
void |
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,
SQLSession session)
|
void |
setTargetDirectoryName(String targetDirectoryName)
|
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds)
|
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds,
SQLSession session)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableName
protected String tableName
sourceColumn
protected String sourceColumn
targetColumn
protected String targetColumn
schemaName
protected String schemaName
dataFileName
protected String dataFileName
TableReference
public TableReference()
setFieldName
public void setFieldName(String fieldName)
setTargetDirectoryName
public void setTargetDirectoryName(String targetDirectoryName)
- Specified by:
setTargetDirectoryName in interface Reference- Overrides:
setTargetDirectoryName in class AbstractReference
addLinks
public void addLinks(String sourceId,
List<String> targetIds)
throws DirectoryException
- Throws:
DirectoryException
addLinks
public void addLinks(List<String> sourceIds,
String targetId)
throws DirectoryException
- Throws:
DirectoryException
addLinks
public void addLinks(String sourceId,
List<String> targetIds,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
addLinks
public void addLinks(List<String> sourceIds,
String targetId,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
exists
public boolean exists(String sourceId,
String targetId,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
addLink
public void addLink(String sourceId,
String targetId,
SQLSession session,
boolean checkExisting)
throws DirectoryException
- Throws:
DirectoryException
getIdsFor
protected List<String> getIdsFor(String valueColumn,
String filterColumn,
String filterValue)
throws DirectoryException
- Throws:
DirectoryException
getSourceIdsForTarget
public List<String> getSourceIdsForTarget(String targetId)
throws DirectoryException
- Throws:
DirectoryException
getTargetIdsForSource
public List<String> getTargetIdsForSource(String sourceId)
throws DirectoryException
- Throws:
DirectoryException
removeLinksFor
public void removeLinksFor(String column,
String entryId,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
removeLinksForSource
public void removeLinksForSource(String sourceId,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
removeLinksForTarget
public void removeLinksForTarget(String targetId,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
removeLinksForSource
public void removeLinksForSource(String sourceId)
throws DirectoryException
- Throws:
DirectoryException
removeLinksForTarget
public void removeLinksForTarget(String targetId)
throws DirectoryException
- Throws:
DirectoryException
setIdsFor
public void setIdsFor(String idsColumn,
List<String> ids,
String filterColumn,
String filterValue,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
setSourceIdsForTarget
public void setSourceIdsForTarget(String targetId,
List<String> sourceIds,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
setTargetIdsForSource
public void setTargetIdsForSource(String sourceId,
List<String> targetIds,
SQLSession session)
throws DirectoryException
- Throws:
DirectoryException
setSourceIdsForTarget
public void setSourceIdsForTarget(String targetId,
List<String> sourceIds)
throws DirectoryException
- Throws:
DirectoryException
setTargetIdsForSource
public void setTargetIdsForSource(String sourceId,
List<String> targetIds)
throws DirectoryException
- Throws:
DirectoryException
getSQLSession
protected SQLSession getSQLSession()
throws DirectoryException
- Throws:
DirectoryException
maybeInitialize
protected void maybeInitialize(SQLSession sqlSession)
throws DirectoryException
- Initialize if needed, using an existing session.
- Parameters:
sqlSession -
- Throws:
DirectoryException
getTable
public Table getTable()
throws DirectoryException
- Throws:
DirectoryException
getSourceColumn
public String getSourceColumn()
getTargetColumn
public String getTargetColumn()
getTargetDirectoryName
public String getTargetDirectoryName()
getTableName
public String getTableName()
getSchemaName
public String getSchemaName()
getDataFileName
public String getDataFileName()
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.