1 10 package org.mmbase.storage; 11 12 import org.mmbase.module.core.*; 13 import org.mmbase.core.CoreField; 14 import java.io.InputStream ; 15 16 25 public interface StorageManager { 26 27 33 public double getVersion(); 34 35 41 public void init(StorageManagerFactory factory) throws StorageException; 42 43 49 public void beginTransaction() throws StorageException; 50 51 56 public void commit() throws StorageException; 57 58 66 public boolean rollback() throws StorageException; 67 68 73 public int createKey() throws StorageException; 74 75 83 public String getStringValue(MMObjectNode node, CoreField field) throws StorageException; 84 85 93 public byte[] getBinaryValue(MMObjectNode node, CoreField field) throws StorageException; 94 95 96 99 public InputStream getInputStreamValue(MMObjectNode node, CoreField field) throws StorageException; 100 101 108 public int create(MMObjectNode node) throws StorageException; 109 110 115 public void change(MMObjectNode node) throws StorageException; 116 117 122 public void delete(MMObjectNode node) throws StorageException; 123 124 131 public MMObjectNode getNode(MMObjectBuilder builder, int number) throws StorageException; 132 133 139 public int getNodeType(int number) throws StorageException; 140 141 146 public void create(MMObjectBuilder builder) throws StorageException; 147 148 152 public void create() throws StorageException; 153 154 158 public void change(MMObjectBuilder builder) throws StorageException; 159 160 164 public void delete(MMObjectBuilder builder) throws StorageException; 165 166 172 public boolean exists(MMObjectBuilder builder) throws StorageException; 173 174 180 public boolean exists() throws StorageException; 181 182 188 public int size(MMObjectBuilder builder) throws StorageException; 189 190 195 public int size() throws StorageException; 196 197 201 public void create(CoreField field) throws StorageException; 202 203 207 public void change(CoreField field) throws StorageException; 208 209 213 public void delete(CoreField field) throws StorageException; 214 215 } 216 217
| Popular Tags
|