1 9 package org.ozoneDB.core; 10 11 import org.ozoneDB.*; 12 import org.ozoneDB.core.dr.Lockable; 13 14 15 29 public interface ObjectContainer extends Lockable { 30 31 public final static String PROXYNAME_POSTFIX = "_Proxy"; 32 public final static String IMPLNAME_POSTFIX = "_Impl"; 33 34 public final static int STATE_CLEAN = 0; 36 public final static int STATE_READ = 1; 37 public final static int STATE_MODIFIED = 2; 38 public final static int STATE_CREATED = 4; 39 public final static int STATE_DELETED = 8; 40 41 51 public int state(); 52 53 54 59 public long modTime(); 60 61 62 public Lock lock(); 63 64 65 public void touch(); 66 67 68 public void setName( String _name ); 69 70 71 public String name(); 72 73 74 public void setTarget( OzoneCompatible _target ); 75 76 77 public OzoneCompatible target(); 78 79 80 public Class targetClass(); 81 82 83 public void createTarget( Env env, Class cl, String sig, Object [] args ) throws Exception ; 84 85 86 public Object invokeTarget( Env env, String methodName, String sig, Object [] args ) throws Exception ; 87 88 89 public Object invokeTarget( Env env, int methodIndex, Object [] args ) throws Exception ; 90 91 92 public void deleteTarget(); 93 94 95 public void nameTarget( String _name ); 96 97 98 public OzoneCompatible targetClone() throws Exception ; 99 100 101 104 public boolean equals( Object obj ); 105 106 107 111 public OzoneProxy ozoneProxy(); 112 113 114 public ObjectID id(); 115 116 117 public OzoneInterface database(); 118 119 120 public Permissions permissions(); 121 122 123 128 public void pin(); 129 130 134 public void unpin(); 135 136 139 public boolean isPinned(); 140 141 154 public int ensureGarbageCollectionLevel(int newGarbageCollectionLevel); 155 156 159 public int getGarbageCollectionLevel(); 160 161 public boolean shouldOnActivateBeCalled(); 162 163 public void invokeOnActivate(); 164 165 public void invokeOnPassivate(); 166 167 boolean shouldOnPassivateBeCalled(); 168 169 public void requireWriteLocking(); 170 171 void setShouldCallOnPassivate(boolean shouldOnPassivateBeCalled); 172 173 void setShouldCallOnActivate(boolean shouldOnActivateBeCalled); 174 175 } 176 177 | Popular Tags |