Class ModelObjectSequencer


  • @Deprecated
    public class ModelObjectSequencer
    extends java.lang.Object
    Deprecated.
    no longer used internally, replaced by GraphTraversal.orderFileDeletion()
    OMERO model objects sometimes must be processed in a specific order. This class groups the utility methods for performing such ordering.
    Since:
    5.1.1
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.util.Collection<java.util.Collection<java.lang.Long>> sortOriginalFileIds​(org.hibernate.Session session, java.util.Collection<java.lang.Long> unorderedIds)
      Deprecated.
      Sort a list of original file IDs such that files precede containing directories.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelObjectSequencer

        public ModelObjectSequencer()
        Deprecated.
    • Method Detail

      • sortOriginalFileIds

        public static java.util.Collection<java.util.Collection<java.lang.Long>> sortOriginalFileIds​(org.hibernate.Session session,
                                                                                                     java.util.Collection<java.lang.Long> unorderedIds)
        Deprecated.
        Sort a list of original file IDs such that files precede containing directories.
        Parameters:
        session - the Hibernate session
        unorderedIds - the IDs of original files
        Returns:
        a batching of the given IDs such that a batch containing a file precedes a batch containing a containing directory