use of org.whole.lang.sql.builders.SQLGenericBuilderAdapter in project whole by wholeplatform.
the class SQLLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new SQLLanguageKit());
platform.addOperationFactory(SQLLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SQLGenericBuilderAdapter((ISQLBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SQLSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new SQLPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new SQLInterpreterVisitor();
else
return null;
}
});
}
Aggregations