107 lines
2.7 KiB
Java
107 lines
2.7 KiB
Java
package com.tridium.orion;
|
|
|
|
import com.tridium.orion.sql.BSqlUpdate;
|
|
import com.tridium.orion.sql.BatchStatement;
|
|
import com.tridium.orion.sql.PropertyValue;
|
|
import javax.baja.query.BExpression;
|
|
import javax.baja.query.BQuery;
|
|
import javax.baja.rdb.RdbmsContext;
|
|
import javax.baja.rdb.ddl.DdlCommand;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.BSimple;
|
|
import javax.baja.sys.Context;
|
|
|
|
public interface OrionSession extends Context {
|
|
BatchStatement batchDelete(OrionType orionType);
|
|
|
|
BatchStatement batchInsert(OrionType orionType);
|
|
|
|
BatchStatement batchPersist(OrionType orionType);
|
|
|
|
BatchStatement batchUpdate(OrionType orionType);
|
|
|
|
void close();
|
|
|
|
void commit();
|
|
|
|
int delete(OrionType orionType, BExpression bExpression);
|
|
|
|
int delete(String str);
|
|
|
|
int delete(String str, BSimple[] bSimpleArr);
|
|
|
|
boolean delete(BIOrionObject bIOrionObject);
|
|
|
|
boolean exists(BIOrionObject bIOrionObject);
|
|
|
|
boolean exists(OrionType orionType, PropertyValue[] propertyValueArr);
|
|
|
|
boolean getAutoCommit();
|
|
|
|
BOrionDatabase getOrionDatabase();
|
|
|
|
RdbmsContext getRdbmsContext();
|
|
|
|
int insert(String str);
|
|
|
|
int insert(String str, BSimple[] bSimpleArr);
|
|
|
|
void insert(BIOrionObject bIOrionObject);
|
|
|
|
void invokeDdl(DdlCommand ddlCommand);
|
|
|
|
boolean isOpen();
|
|
|
|
OrionCursor linkedScan(BIOrionObject bIOrionObject, OrionType orionType, OrionType orionType2);
|
|
|
|
boolean mappedDelete(BObject bObject);
|
|
|
|
void mappedInsert(BObject bObject);
|
|
|
|
BIOrionObject mappedRead(BObject bObject);
|
|
|
|
void mappedUpdate(BObject bObject);
|
|
|
|
void persist(BIOrionObject bIOrionObject);
|
|
|
|
BIOrionObject read(BIOrionObject bIOrionObject);
|
|
|
|
BIOrionObject read(OrionType orionType, PropertyValue propertyValue);
|
|
|
|
BIOrionObject read(OrionType orionType, String str);
|
|
|
|
BIOrionObject read(OrionType orionType, String str, BSimple[] bSimpleArr);
|
|
|
|
BIOrionObject read(OrionType orionType, BSimple bSimple);
|
|
|
|
BIOrionObject read(OrionType orionType, PropertyValue[] propertyValueArr);
|
|
|
|
BIOrionObject read(BQuery bQuery);
|
|
|
|
void rollback();
|
|
|
|
OrionCursor scan(OrionType orionType);
|
|
|
|
OrionCursor select(OrionType orionType, PropertyValue propertyValue);
|
|
|
|
OrionCursor select(OrionType orionType, String str);
|
|
|
|
OrionCursor select(OrionType orionType, String str, BSimple[] bSimpleArr);
|
|
|
|
OrionCursor select(OrionType orionType, PropertyValue[] propertyValueArr);
|
|
|
|
OrionCursor select(BQuery bQuery);
|
|
|
|
void setAutoCommit(boolean z);
|
|
|
|
int update(BSqlUpdate bSqlUpdate);
|
|
|
|
int update(String str);
|
|
|
|
int update(String str, BSimple[] bSimpleArr);
|
|
|
|
void update(BIOrionObject bIOrionObject);
|
|
|
|
void update(BIOrionObject bIOrionObject, boolean z);
|
|
}
|