public class TableReference extends AbstractReference implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected String |
dataFileName |
protected String |
schemaName |
protected String |
sourceColumn |
protected String |
tableName |
protected String |
targetColumn |
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName| Constructor and Description |
|---|
TableReference() |
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryNameprotected String sourceColumn
protected String targetColumn
protected String schemaName
protected String dataFileName
public TableReference()
public void setFieldName(String fieldName)
public void setTargetDirectoryName(String targetDirectoryName)
setTargetDirectoryName in interface ReferencesetTargetDirectoryName in class AbstractReferencepublic void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
addLinks in interface ReferenceDirectoryExceptionpublic void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
addLinks in interface ReferenceDirectoryExceptionpublic void addLinks(String sourceId, List<String> targetIds, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void addLinks(List<String> sourceIds, String targetId, SQLSession session) throws DirectoryException
DirectoryExceptionpublic boolean exists(String sourceId, String targetId, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void addLink(String sourceId, String targetId, SQLSession session, boolean checkExisting) throws DirectoryException
DirectoryExceptionprotected List<String> getIdsFor(String valueColumn, String filterColumn, String filterValue) throws DirectoryException
DirectoryExceptionpublic List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
getSourceIdsForTarget in interface ReferenceDirectoryExceptionpublic List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
getTargetIdsForSource in interface ReferenceDirectoryExceptionpublic void removeLinksFor(String column, String entryId, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void removeLinksForSource(String sourceId, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void removeLinksForTarget(String targetId, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void removeLinksForSource(String sourceId) throws DirectoryException
removeLinksForSource in interface ReferenceDirectoryExceptionpublic void removeLinksForTarget(String targetId) throws DirectoryException
removeLinksForTarget in interface ReferenceDirectoryExceptionpublic void setIdsFor(String idsColumn, List<String> ids, String filterColumn, String filterValue, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void setSourceIdsForTarget(String targetId, List<String> sourceIds, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void setTargetIdsForSource(String sourceId, List<String> targetIds, SQLSession session) throws DirectoryException
DirectoryExceptionpublic void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
setSourceIdsForTarget in interface ReferenceDirectoryExceptionpublic void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
setTargetIdsForSource in interface ReferenceDirectoryExceptionprotected SQLSession getSQLSession() throws DirectoryException
DirectoryExceptionprotected void maybeInitialize(SQLSession sqlSession) throws DirectoryException
sqlSession - DirectoryExceptionpublic Table getTable() throws DirectoryException
DirectoryExceptionpublic String getSourceColumn()
public String getTargetColumn()
public String getTargetDirectoryName()
public String getTableName()
public String getSchemaName()
public String getDataFileName()
public TableReference clone()
Referenceclone in interface Referenceclone in class AbstractReferenceCopyright © 2016 Nuxeo SA. All rights reserved.