1 24 package org.objectweb.jalisto.se.api; 25 26 import org.objectweb.jalisto.se.api.internal.SessionInternal; 27 import org.objectweb.jalisto.se.api.query.QueryManager; 28 29 import java.util.Collection ; 30 31 35 public interface Session { 36 37 42 void defineClass(ClassDescription classDescription); 43 44 49 void removeClass(String fullClassName); 50 51 57 boolean isClassDefined(String fullQualifiedClassName); 58 59 65 String getClassNameFor(Object oid); 66 67 68 74 Object makeNewFileOid(Class objectClass); 75 76 82 Object makeNewFileOid(String objectClassName); 83 84 92 Object createObject(Object [] objectToCreate, Class objectClass); 93 94 102 Object createObject(Object [] objectToCreate, String objectClassName); 103 104 112 Object createObject(Object oid, Object [] objectToCreate); 113 114 120 Object [] readObjectByOid(Object oid); 121 122 Collection readObjectsByOids(Collection oids); 123 124 Object [] refreshObjectByOid(Object oid); 125 126 132 boolean contains(Object oid); 133 134 141 Object updateObjectByOid(Object oid, Object [] objectToUpdate); 142 143 148 void deleteObjectByOid(Object oid); 149 150 151 157 Extent getExtent(String fullClassName); 158 159 165 Extent getExtent(Class theClass); 166 167 168 173 boolean isNewBase(); 174 175 178 void reorganize(); 179 180 185 QueryManager getQueryManager(); 186 187 192 Transaction currentTransaction(); 193 194 199 MetaRepository getMetaRepository(); 200 201 207 SessionInternal getInternalSession(); 208 209 212 void openSession(); 213 214 217 void closeSession(); 218 219 boolean isOpen(); 220 221 void eraseStorage(); 222 } 223 | Popular Tags |