59 lines
1.5 KiB
Java
59 lines
1.5 KiB
Java
package org.hsqldb;
|
|
|
|
import org.hsqldb.lib.DoubleIntIndex;
|
|
import org.hsqldb.persist.CachedObject;
|
|
import org.hsqldb.persist.PersistentStore;
|
|
|
|
public interface TransactionManager {
|
|
public static final int ACTION_DUP = 1;
|
|
public static final int ACTION_READ = 0;
|
|
public static final int ACTION_REF = 2;
|
|
public static final int LOCKS = 0;
|
|
public static final int MVCC = 2;
|
|
public static final int MVLOCKS = 1;
|
|
|
|
RowAction addDeleteAction(Session session, Table table, Row row, int[] iArr);
|
|
|
|
void addInsertAction(Session session, Table table, PersistentStore persistentStore, Row row, int[] iArr);
|
|
|
|
void beginAction(Session session, Statement statement);
|
|
|
|
void beginActionResume(Session session);
|
|
|
|
void beginTransaction(Session session);
|
|
|
|
boolean canRead(Session session, int i, int i2);
|
|
|
|
boolean canRead(Session session, Row row, int i, int[] iArr);
|
|
|
|
boolean commitTransaction(Session session);
|
|
|
|
void completeActions(Session session);
|
|
|
|
void convertTransactionIDs(DoubleIntIndex doubleIntIndex);
|
|
|
|
long getGlobalChangeTimestamp();
|
|
|
|
int getTransactionControl();
|
|
|
|
DoubleIntIndex getTransactionIDList();
|
|
|
|
boolean isMVCC();
|
|
|
|
boolean isMVRows();
|
|
|
|
boolean prepareCommitActions(Session session);
|
|
|
|
void removeTransactionInfo(CachedObject cachedObject);
|
|
|
|
void rollback(Session session);
|
|
|
|
void rollbackAction(Session session);
|
|
|
|
void rollbackSavepoint(Session session, int i);
|
|
|
|
void setTransactionControl(Session session, int i);
|
|
|
|
void setTransactionInfo(CachedObject cachedObject);
|
|
}
|