Class TableReference

    • Field Detail

      • tableName

        protected String tableName
      • sourceColumn

        protected String sourceColumn
      • targetColumn

        protected String targetColumn
      • dataFileName

        protected String dataFileName
    • Method Detail

      • initialize

        protected void initialize​(Connection connection)
      • addLinks

        public void addLinks​(String sourceId,
                             List<String> targetIds,
                             Session session)
        Description copied from interface: Reference
        Adds the links between the source id and the target ids
        Parameters:
        sourceId - the source id
        targetIds - the target ids
        session - the session
      • addLinks

        public void addLinks​(List<String> sourceIds,
                             String targetId,
                             Session session)
        Description copied from interface: Reference
        Adds the links between the source ids and the target id
        Parameters:
        sourceIds - the source ids
        targetId - the target id
        session - the session
      • addLink

        public void addLink​(String sourceId,
                            String targetId,
                            SQLSession session,
                            boolean checkExisting)
      • getSourceIdsForTarget

        public List<String> getSourceIdsForTarget​(String targetId)
      • getTargetIdsForSource

        public List<String> getTargetIdsForSource​(String sourceId)
      • removeLinksForSource

        public void removeLinksForSource​(String sourceId,
                                         Session session)
        Description copied from interface: Reference
        Removes all the links for a given source id
        Parameters:
        sourceId - the source id
        session - the session
      • removeLinksForTarget

        public void removeLinksForTarget​(String targetId,
                                         Session session)
        Description copied from interface: Reference
        Removes all the links for a given target id
        Parameters:
        targetId - the target id
        session - the session
      • removeLinksForSource

        public void removeLinksForSource​(String sourceId)
      • removeLinksForTarget

        public void removeLinksForTarget​(String targetId)
      • setSourceIdsForTarget

        public void setSourceIdsForTarget​(String targetId,
                                          List<String> sourceIds)
      • setSourceIdsForTarget

        public void setSourceIdsForTarget​(String targetId,
                                          List<String> sourceIds,
                                          Session session)
        Description copied from interface: Reference
        Sets all source ids to be associated to the given target id
        Parameters:
        targetId - the target id
        sourceIds - the source ids
        session - the session
      • setTargetIdsForSource

        public void setTargetIdsForSource​(String sourceId,
                                          List<String> targetIds)
      • setTargetIdsForSource

        public void setTargetIdsForSource​(String sourceId,
                                          List<String> targetIds,
                                          Session session)
        Description copied from interface: Reference
        Sets all target ids to be associated to the given source id
        Parameters:
        sourceId - the source id
        targetIds - the target ids
        session - the session
      • getSQLSession

        protected SQLSession getSQLSession()
      • getSourceColumn

        public String getSourceColumn()
      • getTargetColumn

        public String getTargetColumn()
      • getTargetDirectoryName

        public String getTargetDirectoryName()
      • getTableName

        public String getTableName()
      • getDataFileName

        public String getDataFileName()