public Layout previousGeneration ( ) throws FetchException { Cursor < StoredLayout > cursor = mLayoutFactory . mLayoutStorage . query ( "storableTypeName = ? & generation < ?" ) . with ( getStorableTypeName ( ) ) . with ( getGeneration ( ) ) . orderBy ( "-generation" ) . fetch ( ) ; try { if ( cursor . hasNext ( ) ) { return new Layout ( mLayoutFactory , cursor . next ( ) ) ; } } finally { cursor . close ( ) ; } return null ; }
Returns the previous known generation of the storable s layout or null if none .