1 23 24 30 31 package com.sun.jdo.spi.persistence.support.sqlstore.sql.concurrency; 32 33 import com.sun.jdo.spi.persistence.support.sqlstore.Transaction; 34 import com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager; 35 import com.sun.jdo.spi.persistence.support.sqlstore.UpdateObjectDesc; 36 import com.sun.jdo.spi.persistence.support.sqlstore.model.ClassDesc; 37 import com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.UpdateQueryPlan; 38 import com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan; 39 40 42 public interface Concurrency { 43 public static final int CUSTOM = 16; 44 45 public static final int DB_EXPLICIT = 2; 46 47 public static final int DB_NATIVE = 1; 48 49 public static final int NONE = 0; 50 51 public static final int OPT_MASK = 1; 52 53 public static final int OPT_UNIQUE_ID = 4; 54 55 public static final int OPT_VERIFY = 3; 56 57 public Transaction suspend(); 58 59 public void resume(Transaction t); 60 61 public void commit(UpdateObjectDesc updateDesc, 62 SQLStateManager beforeImage, 63 SQLStateManager afterImage, 64 int logReason); 65 66 public void configPersistence(ClassDesc config); 67 68 public void select(SelectQueryPlan plan); 69 70 public void update(UpdateQueryPlan plan); 71 72 public Object clone(); 73 } 74 | Popular Tags |