1 25 26 package org.snipsnap.snip.storage; 27 28 import org.snipsnap.snip.Snip; 29 30 import java.sql.Timestamp ; 31 import java.util.List ; 32 33 39 40 public interface SnipStorage { 41 public Snip[] match(String pattern); 43 44 public Snip[] match(String start, String end); 45 46 public Snip storageLoad(String name); 47 48 public void storageStore(Snip snip); 49 50 public Snip storageCreate(String name, String content); 51 52 public void storageRemove(Snip snip); 53 54 public int storageCount(); 56 57 public List storageAll(); 58 59 public List storageAll(String applicationOid); 60 61 public List storageByHotness(int size); 62 63 public List storageByUser(String login); 65 66 public List storageByDateSince(Timestamp date); 67 68 public List storageByRecent(String applicationOid, int size); 69 70 public List storageByComments(Snip parent); 71 72 public List storageByParent(Snip parent); 74 75 public List storageByParentNameOrder(Snip parent, int count); 76 77 public List storageByParentModifiedOrder(Snip parent, int count); 78 79 public List storageByDateInName(String nameSpace, String start, String end); 80 81 } 82 | Popular Tags |