Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | 1x 1x 1x 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs");
// cl_sql_connection.clas.abap
class cl_sql_connection {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CL_SQL_CONNECTION';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {"MV_CON_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "I", "is_constant": " ", "is_class": " "}};
static METHODS = {"GET_CONNECTION": {"visibility": "U", "parameters": {"CONNECTION": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SQL_CONNECTION", RTTIName: "\\CLASS=CL_SQL_CONNECTION"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "CON_NAME": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "SHARABLE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
"GET_ABAP_CONNECTION": {"visibility": "U", "parameters": {"CONNECTION": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SQL_CONNECTION", RTTIName: "\\CLASS=CL_SQL_CONNECTION"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "CON_NAME": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
"CREATE_STATEMENT": {"visibility": "U", "parameters": {"STATEMENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SQL_STATEMENT", RTTIName: "\\CLASS=CL_SQL_STATEMENT"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}}},
"GET_CON_NAME": {"visibility": "U", "parameters": {"CON_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "R", "type_name": "StringType"}}},
"CLOSE": {"visibility": "U", "parameters": {}}};
#mv_con_name;
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"create_statement": this.create_statement.bind(this),
"get_con_name": this.get_con_name.bind(this),
"close": this.close.bind(this),
};
this.#mv_con_name = new abap.types.String({qualifiedName: "STRING"});
this.FRIENDS_ACCESS_INSTANCE["mv_con_name"] = this.#mv_con_name;
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async close() {
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async get_con_name() {
let con_name = new abap.types.String({qualifiedName: "STRING"});
con_name.set(this.#mv_con_name);
return con_name;
}
async create_statement() {
let statement = new abap.types.ABAPObject({qualifiedName: "CL_SQL_STATEMENT", RTTIName: "\\CLASS=CL_SQL_STATEMENT"});
statement.set(await (new abap.Classes['CL_SQL_STATEMENT']()).constructor_({con_ref: this.me}));
return statement;
}
async get_connection(INPUT) {
return cl_sql_connection.get_connection(INPUT);
}
static async get_connection(INPUT) {
let connection = new abap.types.ABAPObject({qualifiedName: "CL_SQL_CONNECTION", RTTIName: "\\CLASS=CL_SQL_CONNECTION"});
let con_name = INPUT?.con_name;
let sharable = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
if (INPUT && INPUT.sharable) {sharable.set(INPUT.sharable);}
if (INPUT === undefined || INPUT.sharable === undefined) {sharable = abap.builtin.abap_false;}
abap.statements.assert(abap.compare.eq(sharable, abap.builtin.abap_true));
connection.set(await (new abap.Classes['CL_SQL_CONNECTION']()).constructor_());
connection.get().FRIENDS_ACCESS_INSTANCE["mv_con_name"].set(con_name);
return connection;
}
async get_abap_connection(INPUT) {
return cl_sql_connection.get_abap_connection(INPUT);
}
static async get_abap_connection(INPUT) {
let connection = new abap.types.ABAPObject({qualifiedName: "CL_SQL_CONNECTION", RTTIName: "\\CLASS=CL_SQL_CONNECTION"});
let con_name = INPUT?.con_name;
connection.set((await this.get_connection({con_name: con_name, sharable: abap.builtin.abap_true})));
return connection;
}
}
abap.Classes['CL_SQL_CONNECTION'] = cl_sql_connection;
export {cl_sql_connection}; |