1 21 22 package org.apache.derby.impl.store.raw.xact; 23 24 import org.apache.derby.iapi.store.raw.log.LogInstant; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 class SavePoint 29 { 30 33 34 private LogInstant savePoint; 35 private final String name; 36 private Object kindOfSavepoint; 42 43 46 47 SavePoint(String name, Object kindOfSavepoint) { 48 super(); 49 this.name = name; 50 this.kindOfSavepoint = kindOfSavepoint; 51 } 52 53 54 void setSavePoint(LogInstant savePoint) { 55 if (SanityManager.DEBUG) 56 { 57 SanityManager.ASSERT((savePoint == null) || (this.savePoint == null)); 58 } 59 60 this.savePoint = savePoint; 61 } 62 63 LogInstant getSavePoint() { 64 return savePoint; 65 } 66 67 String getName() { 68 return name; 69 } 70 71 boolean isThisUserDefinedsavepoint() { 72 return (kindOfSavepoint != null ? true : false); 73 } 74 75 Object getKindOfSavepoint() { 76 return kindOfSavepoint; 77 } 78 79 } 80 | Popular Tags |