Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.sql
Class TableReference

java.lang.Object
  extended by org.nuxeo.ecm.directory.AbstractReference
      extended by org.nuxeo.ecm.directory.sql.TableReference
All Implemented Interfaces:
Reference

public class TableReference
extends AbstractReference


Constructor Summary
TableReference()
           
 
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()
           
 String getSchemaName()
           
 String getSourceColumn()
           
 List<String> getSourceIdsForTarget(String targetId)
           
 Table getTable()
           
 String getTableName()
           
 String getTargetColumn()
           
 String getTargetDirectoryName()
           
 List<String> getTargetIdsForSource(String sourceId)
           
 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 org.nuxeo.ecm.directory.AbstractReference
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableReference

public TableReference()
Method Detail

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

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

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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.