101 lines
2.3 KiB
Java
101 lines
2.3 KiB
Java
package org.hsqldb;
|
|
|
|
import java.io.InputStream;
|
|
import java.util.Calendar;
|
|
import org.hsqldb.jdbc.JDBCConnection;
|
|
import org.hsqldb.navigator.RowSetNavigatorClient;
|
|
import org.hsqldb.persist.HsqlProperties;
|
|
import org.hsqldb.result.Result;
|
|
import org.hsqldb.result.ResultLob;
|
|
import org.hsqldb.types.BlobDataID;
|
|
import org.hsqldb.types.ClobDataID;
|
|
import org.hsqldb.types.TimestampData;
|
|
|
|
public interface SessionInterface {
|
|
public static final int INFO_AUTOCOMMIT = 1;
|
|
public static final int INFO_BOOLEAN = 2;
|
|
public static final int INFO_CATALOG = 3;
|
|
public static final int INFO_CONNECTION_READONLY = 2;
|
|
public static final int INFO_ID = 0;
|
|
public static final int INFO_INTEGER = 1;
|
|
public static final int INFO_ISOLATION = 0;
|
|
public static final int INFO_LIMIT = 4;
|
|
public static final int INFO_VARCHAR = 3;
|
|
public static final int TX_READ_COMMITTED = 2;
|
|
public static final int TX_READ_UNCOMMITTED = 1;
|
|
public static final int TX_REPEATABLE_READ = 4;
|
|
public static final int TX_SERIALIZABLE = 8;
|
|
|
|
void addWarning(HsqlException hsqlException);
|
|
|
|
void allocateResultLob(ResultLob resultLob, InputStream inputStream);
|
|
|
|
void close();
|
|
|
|
void closeNavigator(long j);
|
|
|
|
void commit(boolean z);
|
|
|
|
BlobDataID createBlob(long j);
|
|
|
|
ClobDataID createClob(long j);
|
|
|
|
Result execute(Result result);
|
|
|
|
Object getAttribute(int i);
|
|
|
|
Calendar getCalendar();
|
|
|
|
HsqlProperties getClientProperties();
|
|
|
|
TimestampData getCurrentDate();
|
|
|
|
String getDatabaseUniqueName();
|
|
|
|
long getId();
|
|
|
|
String getInternalConnectionURL();
|
|
|
|
int getIsolation();
|
|
|
|
JDBCConnection getJDBCConnection();
|
|
|
|
RowSetNavigatorClient getRows(long j, int i, int i2);
|
|
|
|
Scanner getScanner();
|
|
|
|
int getStreamBlockSize();
|
|
|
|
int getZoneSeconds();
|
|
|
|
boolean isAutoCommit();
|
|
|
|
boolean isClosed();
|
|
|
|
boolean isReadOnlyDefault();
|
|
|
|
void prepareCommit();
|
|
|
|
void releaseSavepoint(String str);
|
|
|
|
void resetSession();
|
|
|
|
void rollback(boolean z);
|
|
|
|
void rollbackToSavepoint(String str);
|
|
|
|
void savepoint(String str);
|
|
|
|
void setAttribute(int i, Object obj);
|
|
|
|
void setAutoCommit(boolean z);
|
|
|
|
void setIsolationDefault(int i);
|
|
|
|
void setJDBCConnection(JDBCConnection jDBCConnection);
|
|
|
|
void setReadOnlyDefault(boolean z);
|
|
|
|
void startPhasedTransaction();
|
|
}
|