link start!
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.tridium.orion;
|
||||
|
||||
public interface ISchemaUpgrader {
|
||||
BSchemaVersion getFromVersion();
|
||||
|
||||
BSchemaVersion getToVersion();
|
||||
|
||||
void upgrade(BLocalOrionDatabase bLocalOrionDatabase, BIOrionApp bIOrionApp, OrionSession orionSession) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.tridium.orion;
|
||||
|
||||
import javax.baja.sys.Cursor;
|
||||
|
||||
public interface OrionCursor extends Cursor {
|
||||
void close();
|
||||
|
||||
OrionType getOrionType();
|
||||
|
||||
OrionSession getSession();
|
||||
|
||||
BIOrionObject[] toArray();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.tridium.orion;
|
||||
|
||||
public interface OrionModel {
|
||||
OrionType addType(OrionType orionType);
|
||||
|
||||
BTypeDependency[] getDependentTypes(OrionType orionType);
|
||||
|
||||
OrionType getType(BOrionTypeId bOrionTypeId);
|
||||
|
||||
OrionType getType(OrionType orionType, boolean z);
|
||||
|
||||
OrionType[] getTypes();
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
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);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.tridium.orion;
|
||||
|
||||
import javax.baja.sys.Property;
|
||||
import javax.baja.sys.Type;
|
||||
|
||||
public interface OrionType extends Type {
|
||||
void addRelationship(Relationship relationship);
|
||||
|
||||
Property[] getKey();
|
||||
|
||||
OrionType getOrionSuperType();
|
||||
|
||||
BOrionTypeId getOrionTypeId();
|
||||
|
||||
Property[] getPersistentProperties();
|
||||
|
||||
Property[] getProperties();
|
||||
|
||||
Property getProperty(String str);
|
||||
|
||||
BOrionSpace getSpace();
|
||||
|
||||
BOrionTypeId getSuperTypeId();
|
||||
|
||||
boolean isAssociation();
|
||||
|
||||
boolean isDynamic();
|
||||
|
||||
boolean isFinal();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.tridium.orion;
|
||||
|
||||
public interface Relationship {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.tridium.orion.priv.util;
|
||||
|
||||
import java.util.List;
|
||||
import javax.baja.sys.BValue;
|
||||
import javax.baja.util.IFilter;
|
||||
|
||||
public interface IPersistentQueue {
|
||||
void clear();
|
||||
|
||||
BValue dequeue();
|
||||
|
||||
BValue dequeue(long j) throws InterruptedException;
|
||||
|
||||
void enqueue(BValue bValue);
|
||||
|
||||
List filter(IFilter iFilter, boolean z);
|
||||
|
||||
String getQueueName();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
void load();
|
||||
|
||||
BValue peek();
|
||||
|
||||
BValue peek(long j) throws InterruptedException;
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.tridium.orion.sql;
|
||||
|
||||
import com.tridium.orion.BIOrionObject;
|
||||
import com.tridium.orion.OrionType;
|
||||
|
||||
public interface BatchStatement {
|
||||
void add(BIOrionObject bIOrionObject);
|
||||
|
||||
void clear();
|
||||
|
||||
void execute();
|
||||
|
||||
BIOrionObject get(int i);
|
||||
|
||||
int getChunkSize();
|
||||
|
||||
OrionType getOrionType();
|
||||
|
||||
void setChunkSize(int i);
|
||||
|
||||
int size();
|
||||
}
|
||||
Reference in New Issue
Block a user