27 #include "../../../../dataaccess/datasource/BatchExecutor.h" 28 #include "../../common/Utils.h" 33 return ::v8::Undefined();
41 return ::v8::ThrowException(::v8::String::New(
"Invalid batch executor in the execute method!"));
45 return ::v8::Undefined();
50 return ::v8::Undefined();
59 ::v8::Local<::v8::FunctionTemplate> result = ::v8::FunctionTemplate::New();
60 ::v8::Handle<::v8::ObjectTemplate> prototype = result->PrototypeTemplate();
62 prototype->Set(::v8::String::NewSymbol(
"add"), ::v8::FunctionTemplate::New(
BatchExecutor_Add));
63 prototype->Set(::v8::String::NewSymbol(
"execute"), ::v8::FunctionTemplate::New(
BatchExecutor_Execute));
::v8::Handle<::v8::Value > BatchExecutor_GetTransactor(const ::v8::Arguments &)
JavaScript exporting routine for the TerraLib Data Access module.
::v8::Handle<::v8::Value > BatchExecutor_Add(const ::v8::Arguments &)
::v8::Persistent<::v8::FunctionTemplate > & GetBatchExecutorTemplate()
It returns a reference to the persistent template of a BatchExecutor object.
::v8::Handle<::v8::Value > BatchExecutor_Execute(const ::v8::Arguments &args)
A class that models an object that submits commands in batch to the data source.
static::v8::Persistent<::v8::FunctionTemplate > sg_batchexecutor_template