@aerokit/sdk 12.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +277 -0
- package/README.md +170 -0
- package/dist/cjs/bpm/deployer.js +57 -0
- package/dist/cjs/bpm/index.js +35 -0
- package/dist/cjs/bpm/process.js +636 -0
- package/dist/cjs/bpm/tasks.js +973 -0
- package/dist/cjs/bpm/values.js +82 -0
- package/dist/cjs/cache/cache.js +64 -0
- package/dist/cjs/cache/index.js +26 -0
- package/dist/cjs/cms/cmis.js +689 -0
- package/dist/cjs/cms/index.js +26 -0
- package/dist/cjs/component/decorators.js +126 -0
- package/dist/cjs/component/index.js +36 -0
- package/dist/cjs/core/configurations.js +110 -0
- package/dist/cjs/core/context.js +47 -0
- package/dist/cjs/core/env.js +45 -0
- package/dist/cjs/core/globals.js +54 -0
- package/dist/cjs/core/index.js +35 -0
- package/dist/cjs/db/dao.js +795 -0
- package/dist/cjs/db/database.js +904 -0
- package/dist/cjs/db/decorators.js +167 -0
- package/dist/cjs/db/index.js +72 -0
- package/dist/cjs/db/insert.js +51 -0
- package/dist/cjs/db/orm.js +245 -0
- package/dist/cjs/db/ormstatements.js +243 -0
- package/dist/cjs/db/procedure.js +112 -0
- package/dist/cjs/db/query.js +57 -0
- package/dist/cjs/db/repository.js +148 -0
- package/dist/cjs/db/sequence.js +59 -0
- package/dist/cjs/db/sql.js +516 -0
- package/dist/cjs/db/store.js +172 -0
- package/dist/cjs/db/translator.js +100 -0
- package/dist/cjs/db/update.js +43 -0
- package/dist/cjs/etcd/client.js +174 -0
- package/dist/cjs/etcd/index.js +26 -0
- package/dist/cjs/extensions/decorators.js +40 -0
- package/dist/cjs/extensions/extensions.js +108 -0
- package/dist/cjs/extensions/index.js +39 -0
- package/dist/cjs/git/client.js +277 -0
- package/dist/cjs/git/index.js +26 -0
- package/dist/cjs/http/client-async.js +224 -0
- package/dist/cjs/http/client.js +145 -0
- package/dist/cjs/http/decorators.js +76 -0
- package/dist/cjs/http/errors/ForbiddenError.js +41 -0
- package/dist/cjs/http/errors/ValidationError.js +41 -0
- package/dist/cjs/http/errors.js +26 -0
- package/dist/cjs/http/index.js +59 -0
- package/dist/cjs/http/request.js +281 -0
- package/dist/cjs/http/response.js +452 -0
- package/dist/cjs/http/rs/resource-common.js +32 -0
- package/dist/cjs/http/rs/resource-http-controller.js +306 -0
- package/dist/cjs/http/rs/resource-mappings.js +130 -0
- package/dist/cjs/http/rs/resource-method.js +218 -0
- package/dist/cjs/http/rs/resource.js +232 -0
- package/dist/cjs/http/rs.js +31 -0
- package/dist/cjs/http/session.js +124 -0
- package/dist/cjs/http/upload.js +144 -0
- package/dist/cjs/http/utils.js +106 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/indexing/index.js +29 -0
- package/dist/cjs/indexing/searcher.js +70 -0
- package/dist/cjs/indexing/writer.js +45 -0
- package/dist/cjs/integrations/index.js +26 -0
- package/dist/cjs/integrations/integrations.js +55 -0
- package/dist/cjs/io/bytes.js +101 -0
- package/dist/cjs/io/files.js +344 -0
- package/dist/cjs/io/image.js +43 -0
- package/dist/cjs/io/index.js +38 -0
- package/dist/cjs/io/streams.js +243 -0
- package/dist/cjs/io/zip.js +251 -0
- package/dist/cjs/job/decorators.js +40 -0
- package/dist/cjs/job/index.js +39 -0
- package/dist/cjs/job/scheduler.js +347 -0
- package/dist/cjs/junit/index.js +18 -0
- package/dist/cjs/junit/junit.js +67 -0
- package/dist/cjs/kafka/consumer.js +70 -0
- package/dist/cjs/kafka/index.js +29 -0
- package/dist/cjs/kafka/producer.js +70 -0
- package/dist/cjs/log/index.js +26 -0
- package/dist/cjs/log/logging.js +174 -0
- package/dist/cjs/mail/client.js +153 -0
- package/dist/cjs/mail/index.js +26 -0
- package/dist/cjs/messaging/consumer.js +83 -0
- package/dist/cjs/messaging/decorators.js +40 -0
- package/dist/cjs/messaging/index.js +42 -0
- package/dist/cjs/messaging/producer.js +81 -0
- package/dist/cjs/mongodb/client.js +627 -0
- package/dist/cjs/mongodb/dao.js +390 -0
- package/dist/cjs/mongodb/index.js +36 -0
- package/dist/cjs/net/decorators.js +40 -0
- package/dist/cjs/net/index.js +42 -0
- package/dist/cjs/net/soap.js +228 -0
- package/dist/cjs/net/websockets.js +151 -0
- package/dist/cjs/net/wrappers/onClose.js +2 -0
- package/dist/cjs/net/wrappers/onError.js +2 -0
- package/dist/cjs/net/wrappers/onMessage.js +2 -0
- package/dist/cjs/net/wrappers/onOpen.js +2 -0
- package/dist/cjs/pdf/index.js +26 -0
- package/dist/cjs/pdf/pdf.js +160 -0
- package/dist/cjs/platform/command.js +47 -0
- package/dist/cjs/platform/engines.js +70 -0
- package/dist/cjs/platform/index.js +47 -0
- package/dist/cjs/platform/lifecycle.js +49 -0
- package/dist/cjs/platform/os.js +51 -0
- package/dist/cjs/platform/problems.js +127 -0
- package/dist/cjs/platform/registry.js +319 -0
- package/dist/cjs/platform/repository.js +498 -0
- package/dist/cjs/platform/workspace.js +574 -0
- package/dist/cjs/qldb/index.js +26 -0
- package/dist/cjs/qldb/qldb.js +24 -0
- package/dist/cjs/rabbitmq/consumer.js +50 -0
- package/dist/cjs/rabbitmq/index.js +29 -0
- package/dist/cjs/rabbitmq/producer.js +38 -0
- package/dist/cjs/redis/client.js +190 -0
- package/dist/cjs/redis/index.js +26 -0
- package/dist/cjs/security/decorators.js +48 -0
- package/dist/cjs/security/index.js +40 -0
- package/dist/cjs/security/oauth.js +75 -0
- package/dist/cjs/security/user.js +88 -0
- package/dist/cjs/template/engines.js +139 -0
- package/dist/cjs/template/index.js +26 -0
- package/dist/cjs/utils/alphanumeric.js +107 -0
- package/dist/cjs/utils/base64.js +104 -0
- package/dist/cjs/utils/converter.js +78 -0
- package/dist/cjs/utils/digest.js +167 -0
- package/dist/cjs/utils/escape.js +160 -0
- package/dist/cjs/utils/hex.js +104 -0
- package/dist/cjs/utils/index.js +68 -0
- package/dist/cjs/utils/jsonpath.js +489 -0
- package/dist/cjs/utils/qrcode.js +41 -0
- package/dist/cjs/utils/url.js +82 -0
- package/dist/cjs/utils/utf8.js +61 -0
- package/dist/cjs/utils/uuid.js +48 -0
- package/dist/cjs/utils/xml.js +57 -0
- package/dist/dts/bpm/deployer.d.ts +29 -0
- package/dist/dts/bpm/index.d.ts +8 -0
- package/dist/dts/bpm/process.d.ts +433 -0
- package/dist/dts/bpm/tasks.d.ts +2022 -0
- package/dist/dts/bpm/values.d.ts +38 -0
- package/dist/dts/cache/cache.d.ts +30 -0
- package/dist/dts/cache/index.d.ts +2 -0
- package/dist/dts/cms/cmis.d.ts +413 -0
- package/dist/dts/cms/index.d.ts +2 -0
- package/dist/dts/component/decorators.d.ts +52 -0
- package/dist/dts/component/index.d.ts +2 -0
- package/dist/dts/core/configurations.d.ts +65 -0
- package/dist/dts/core/context.d.ts +19 -0
- package/dist/dts/core/env.d.ts +23 -0
- package/dist/dts/core/globals.d.ts +30 -0
- package/dist/dts/core/index.d.ts +8 -0
- package/dist/dts/db/dao.d.ts +8 -0
- package/dist/dts/db/database.d.ts +507 -0
- package/dist/dts/db/decorators.d.ts +89 -0
- package/dist/dts/db/index.d.ts +25 -0
- package/dist/dts/db/insert.d.ts +32 -0
- package/dist/dts/db/orm.d.ts +44 -0
- package/dist/dts/db/ormstatements.d.ts +4 -0
- package/dist/dts/db/procedure.d.ts +25 -0
- package/dist/dts/db/query.d.ts +48 -0
- package/dist/dts/db/repository.d.ts +64 -0
- package/dist/dts/db/sequence.d.ts +34 -0
- package/dist/dts/db/sql.d.ts +267 -0
- package/dist/dts/db/store.d.ts +138 -0
- package/dist/dts/db/translator.d.ts +26 -0
- package/dist/dts/db/update.d.ts +21 -0
- package/dist/dts/etcd/client.d.ts +92 -0
- package/dist/dts/etcd/index.d.ts +2 -0
- package/dist/dts/extensions/decorators.d.ts +11 -0
- package/dist/dts/extensions/extensions.d.ts +41 -0
- package/dist/dts/extensions/index.d.ts +4 -0
- package/dist/dts/git/client.d.ts +478 -0
- package/dist/dts/git/index.d.ts +2 -0
- package/dist/dts/http/client-async.d.ts +158 -0
- package/dist/dts/http/client.d.ts +180 -0
- package/dist/dts/http/decorators.d.ts +11 -0
- package/dist/dts/http/errors/ForbiddenError.d.ts +20 -0
- package/dist/dts/http/errors/ValidationError.d.ts +20 -0
- package/dist/dts/http/errors.d.ts +2 -0
- package/dist/dts/http/index.d.ts +16 -0
- package/dist/dts/http/request.d.ts +158 -0
- package/dist/dts/http/response.d.ts +281 -0
- package/dist/dts/http/rs/resource-common.d.ts +11 -0
- package/dist/dts/http/rs/resource-http-controller.d.ts +43 -0
- package/dist/dts/http/rs/resource-mappings.d.ts +70 -0
- package/dist/dts/http/rs/resource-method.d.ts +206 -0
- package/dist/dts/http/rs/resource.d.ts +126 -0
- package/dist/dts/http/rs.d.ts +4 -0
- package/dist/dts/http/session.d.ts +81 -0
- package/dist/dts/http/upload.d.ts +100 -0
- package/dist/dts/http/utils.d.ts +54 -0
- package/dist/dts/index.d.ts +0 -0
- package/dist/dts/indexing/index.d.ts +4 -0
- package/dist/dts/indexing/searcher.d.ts +47 -0
- package/dist/dts/indexing/writer.d.ts +22 -0
- package/dist/dts/integrations/index.d.ts +2 -0
- package/dist/dts/integrations/integrations.d.ts +118 -0
- package/dist/dts/io/bytes.d.ts +56 -0
- package/dist/dts/io/files.d.ts +261 -0
- package/dist/dts/io/image.d.ts +22 -0
- package/dist/dts/io/index.d.ts +10 -0
- package/dist/dts/io/streams.d.ts +172 -0
- package/dist/dts/io/zip.d.ts +178 -0
- package/dist/dts/job/decorators.d.ts +11 -0
- package/dist/dts/job/index.d.ts +4 -0
- package/dist/dts/job/scheduler.d.ts +250 -0
- package/dist/dts/junit/index.d.ts +1 -0
- package/dist/dts/junit/junit.d.ts +50 -0
- package/dist/dts/kafka/consumer.d.ts +48 -0
- package/dist/dts/kafka/index.d.ts +4 -0
- package/dist/dts/kafka/producer.d.ts +50 -0
- package/dist/dts/log/index.d.ts +2 -0
- package/dist/dts/log/logging.d.ts +102 -0
- package/dist/dts/mail/client.d.ts +90 -0
- package/dist/dts/mail/index.d.ts +2 -0
- package/dist/dts/messaging/consumer.d.ts +61 -0
- package/dist/dts/messaging/decorators.d.ts +11 -0
- package/dist/dts/messaging/index.d.ts +6 -0
- package/dist/dts/messaging/producer.d.ts +59 -0
- package/dist/dts/mongodb/client.d.ts +367 -0
- package/dist/dts/mongodb/dao.d.ts +24 -0
- package/dist/dts/mongodb/index.d.ts +2 -0
- package/dist/dts/net/decorators.d.ts +11 -0
- package/dist/dts/net/index.d.ts +6 -0
- package/dist/dts/net/soap.d.ts +115 -0
- package/dist/dts/net/websockets.d.ts +100 -0
- package/dist/dts/net/wrappers/onClose.d.ts +0 -0
- package/dist/dts/net/wrappers/onError.d.ts +0 -0
- package/dist/dts/net/wrappers/onMessage.d.ts +0 -0
- package/dist/dts/net/wrappers/onOpen.d.ts +0 -0
- package/dist/dts/pdf/index.d.ts +2 -0
- package/dist/dts/pdf/pdf.d.ts +72 -0
- package/dist/dts/platform/command.d.ts +41 -0
- package/dist/dts/platform/engines.d.ts +35 -0
- package/dist/dts/platform/index.d.ts +16 -0
- package/dist/dts/platform/lifecycle.d.ts +22 -0
- package/dist/dts/platform/os.d.ts +23 -0
- package/dist/dts/platform/problems.d.ts +114 -0
- package/dist/dts/platform/registry.d.ts +227 -0
- package/dist/dts/platform/repository.d.ts +354 -0
- package/dist/dts/platform/workspace.d.ts +421 -0
- package/dist/dts/qldb/index.d.ts +2 -0
- package/dist/dts/qldb/qldb.d.ts +1 -0
- package/dist/dts/rabbitmq/consumer.d.ts +25 -0
- package/dist/dts/rabbitmq/index.d.ts +4 -0
- package/dist/dts/rabbitmq/producer.d.ts +15 -0
- package/dist/dts/redis/client.d.ts +134 -0
- package/dist/dts/redis/index.d.ts +2 -0
- package/dist/dts/security/decorators.d.ts +4 -0
- package/dist/dts/security/index.d.ts +5 -0
- package/dist/dts/security/oauth.d.ts +39 -0
- package/dist/dts/security/user.d.ts +51 -0
- package/dist/dts/template/engines.d.ts +98 -0
- package/dist/dts/template/index.d.ts +2 -0
- package/dist/dts/utils/alphanumeric.d.ts +39 -0
- package/dist/dts/utils/base64.d.ts +48 -0
- package/dist/dts/utils/converter.d.ts +44 -0
- package/dist/dts/utils/digest.d.ts +50 -0
- package/dist/dts/utils/escape.d.ts +110 -0
- package/dist/dts/utils/hex.d.ts +48 -0
- package/dist/dts/utils/index.d.ts +23 -0
- package/dist/dts/utils/jsonpath.d.ts +22 -0
- package/dist/dts/utils/qrcode.d.ts +16 -0
- package/dist/dts/utils/url.d.ts +50 -0
- package/dist/dts/utils/utf8.d.ts +33 -0
- package/dist/dts/utils/uuid.d.ts +21 -0
- package/dist/dts/utils/xml.d.ts +22 -0
- package/dist/esm/bpm/deployer.mjs +38 -0
- package/dist/esm/bpm/index.mjs +15 -0
- package/dist/esm/bpm/process.mjs +617 -0
- package/dist/esm/bpm/tasks.mjs +954 -0
- package/dist/esm/bpm/values.mjs +63 -0
- package/dist/esm/cache/cache.mjs +45 -0
- package/dist/esm/cache/index.mjs +6 -0
- package/dist/esm/cms/cmis.mjs +660 -0
- package/dist/esm/cms/index.mjs +6 -0
- package/dist/esm/component/decorators.mjs +107 -0
- package/dist/esm/component/index.mjs +6 -0
- package/dist/esm/core/configurations.mjs +91 -0
- package/dist/esm/core/context.mjs +28 -0
- package/dist/esm/core/env.mjs +26 -0
- package/dist/esm/core/globals.mjs +35 -0
- package/dist/esm/core/index.mjs +15 -0
- package/dist/esm/db/dao.mjs +775 -0
- package/dist/esm/db/database.mjs +885 -0
- package/dist/esm/db/decorators.mjs +148 -0
- package/dist/esm/db/index.mjs +42 -0
- package/dist/esm/db/insert.mjs +32 -0
- package/dist/esm/db/orm.mjs +225 -0
- package/dist/esm/db/ormstatements.mjs +223 -0
- package/dist/esm/db/procedure.mjs +93 -0
- package/dist/esm/db/query.mjs +38 -0
- package/dist/esm/db/repository.mjs +129 -0
- package/dist/esm/db/sequence.mjs +40 -0
- package/dist/esm/db/sql.mjs +497 -0
- package/dist/esm/db/store.mjs +153 -0
- package/dist/esm/db/translator.mjs +81 -0
- package/dist/esm/db/update.mjs +24 -0
- package/dist/esm/etcd/client.mjs +155 -0
- package/dist/esm/etcd/index.mjs +6 -0
- package/dist/esm/extensions/decorators.mjs +21 -0
- package/dist/esm/extensions/extensions.mjs +89 -0
- package/dist/esm/extensions/index.mjs +9 -0
- package/dist/esm/git/client.mjs +258 -0
- package/dist/esm/git/index.mjs +6 -0
- package/dist/esm/http/client-async.mjs +205 -0
- package/dist/esm/http/client.mjs +126 -0
- package/dist/esm/http/decorators.mjs +47 -0
- package/dist/esm/http/errors/ForbiddenError.mjs +22 -0
- package/dist/esm/http/errors/ValidationError.mjs +22 -0
- package/dist/esm/http/errors.mjs +7 -0
- package/dist/esm/http/index.mjs +29 -0
- package/dist/esm/http/request.mjs +262 -0
- package/dist/esm/http/response.mjs +433 -0
- package/dist/esm/http/rs/resource-common.mjs +13 -0
- package/dist/esm/http/rs/resource-http-controller.mjs +287 -0
- package/dist/esm/http/rs/resource-mappings.mjs +111 -0
- package/dist/esm/http/rs/resource-method.mjs +199 -0
- package/dist/esm/http/rs/resource.mjs +213 -0
- package/dist/esm/http/rs.mjs +12 -0
- package/dist/esm/http/session.mjs +105 -0
- package/dist/esm/http/upload.mjs +125 -0
- package/dist/esm/http/utils.mjs +87 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/indexing/index.mjs +9 -0
- package/dist/esm/indexing/searcher.mjs +51 -0
- package/dist/esm/indexing/writer.mjs +26 -0
- package/dist/esm/integrations/index.mjs +6 -0
- package/dist/esm/integrations/integrations.mjs +36 -0
- package/dist/esm/io/bytes.mjs +82 -0
- package/dist/esm/io/files.mjs +325 -0
- package/dist/esm/io/image.mjs +24 -0
- package/dist/esm/io/index.mjs +18 -0
- package/dist/esm/io/streams.mjs +224 -0
- package/dist/esm/io/zip.mjs +232 -0
- package/dist/esm/job/decorators.mjs +21 -0
- package/dist/esm/job/index.mjs +9 -0
- package/dist/esm/job/scheduler.mjs +328 -0
- package/dist/esm/junit/index.mjs +2 -0
- package/dist/esm/junit/junit.mjs +48 -0
- package/dist/esm/kafka/consumer.mjs +51 -0
- package/dist/esm/kafka/index.mjs +9 -0
- package/dist/esm/kafka/producer.mjs +51 -0
- package/dist/esm/log/index.mjs +6 -0
- package/dist/esm/log/logging.mjs +155 -0
- package/dist/esm/mail/client.mjs +134 -0
- package/dist/esm/mail/index.mjs +6 -0
- package/dist/esm/messaging/consumer.mjs +64 -0
- package/dist/esm/messaging/decorators.mjs +21 -0
- package/dist/esm/messaging/index.mjs +12 -0
- package/dist/esm/messaging/producer.mjs +62 -0
- package/dist/esm/mongodb/client.mjs +608 -0
- package/dist/esm/mongodb/dao.mjs +360 -0
- package/dist/esm/mongodb/index.mjs +7 -0
- package/dist/esm/net/decorators.mjs +21 -0
- package/dist/esm/net/index.mjs +12 -0
- package/dist/esm/net/soap.mjs +209 -0
- package/dist/esm/net/websockets.mjs +132 -0
- package/dist/esm/net/wrappers/onClose.mjs +2 -0
- package/dist/esm/net/wrappers/onError.mjs +2 -0
- package/dist/esm/net/wrappers/onMessage.mjs +2 -0
- package/dist/esm/net/wrappers/onOpen.mjs +2 -0
- package/dist/esm/pdf/index.mjs +6 -0
- package/dist/esm/pdf/pdf.mjs +141 -0
- package/dist/esm/platform/command.mjs +28 -0
- package/dist/esm/platform/engines.mjs +51 -0
- package/dist/esm/platform/index.mjs +27 -0
- package/dist/esm/platform/lifecycle.mjs +30 -0
- package/dist/esm/platform/os.mjs +32 -0
- package/dist/esm/platform/problems.mjs +108 -0
- package/dist/esm/platform/registry.mjs +300 -0
- package/dist/esm/platform/repository.mjs +479 -0
- package/dist/esm/platform/workspace.mjs +555 -0
- package/dist/esm/qldb/index.mjs +6 -0
- package/dist/esm/qldb/qldb.mjs +5 -0
- package/dist/esm/rabbitmq/consumer.mjs +31 -0
- package/dist/esm/rabbitmq/index.mjs +9 -0
- package/dist/esm/rabbitmq/producer.mjs +19 -0
- package/dist/esm/redis/client.mjs +171 -0
- package/dist/esm/redis/index.mjs +6 -0
- package/dist/esm/security/decorators.mjs +29 -0
- package/dist/esm/security/index.mjs +10 -0
- package/dist/esm/security/oauth.mjs +56 -0
- package/dist/esm/security/user.mjs +69 -0
- package/dist/esm/template/engines.mjs +120 -0
- package/dist/esm/template/index.mjs +6 -0
- package/dist/esm/utils/alphanumeric.mjs +88 -0
- package/dist/esm/utils/base64.mjs +85 -0
- package/dist/esm/utils/converter.mjs +59 -0
- package/dist/esm/utils/digest.mjs +148 -0
- package/dist/esm/utils/escape.mjs +141 -0
- package/dist/esm/utils/hex.mjs +85 -0
- package/dist/esm/utils/index.mjs +38 -0
- package/dist/esm/utils/jsonpath.mjs +470 -0
- package/dist/esm/utils/qrcode.mjs +22 -0
- package/dist/esm/utils/url.mjs +63 -0
- package/dist/esm/utils/utf8.mjs +42 -0
- package/dist/esm/utils/uuid.mjs +29 -0
- package/dist/esm/utils/xml.mjs +38 -0
- package/package.json +58 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Globals
|
|
3
|
+
* * Provides a static interface for accessing and manipulating global application variables, typically backed by a central configuration or registry.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Interface representing a map of global variable names to their string values.
|
|
7
|
+
*/
|
|
8
|
+
export interface GlobalsValues {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class Globals {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the value of the global variable with the specified name.
|
|
14
|
+
* @param name The name of the global variable.
|
|
15
|
+
* @returns The variable's value as a string, or `undefined` if the variable is not set or its value is null.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the value of a global variable.
|
|
20
|
+
* If the variable already exists, its value is overwritten.
|
|
21
|
+
* @param name The name of the global variable.
|
|
22
|
+
* @param value The value to set (must be a string).
|
|
23
|
+
*/
|
|
24
|
+
static set(name: string, value: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a map of all global variables currently defined in the application.
|
|
27
|
+
* @returns A {@link GlobalsValues} object containing all global variables as key-value pairs.
|
|
28
|
+
*/
|
|
29
|
+
static list(): GlobalsValues;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./configurations";
|
|
2
|
+
export { Configurations as configurations } from "./configurations";
|
|
3
|
+
export * from "./context";
|
|
4
|
+
export { Context as context } from "./context";
|
|
5
|
+
export * from "./env";
|
|
6
|
+
export { Env as env } from "./env";
|
|
7
|
+
export * from "./globals";
|
|
8
|
+
export { Globals as globals } from "./globals";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ORMDefinition } from "./orm";
|
|
2
|
+
export declare function DAO(orm: ORMDefinition, logCtxName?: string, dataSourceName?: string): void;
|
|
3
|
+
/**
|
|
4
|
+
* oDefinition can be table definition or standard orm definition object. Or it can be a valid path to
|
|
5
|
+
* a .table file, or any other text file contianing a standard dao orm definition.
|
|
6
|
+
*/
|
|
7
|
+
export declare function create(oDefinition: any, logCtxName?: string, dataSourceName?: string): any;
|
|
8
|
+
export declare function dao(oDefinition: any, logCtxName?: string, dataSourceName?: string): any;
|
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { InputStream } from "@aerokit/sdk/io/streams";
|
|
2
|
+
/**
|
|
3
|
+
* Mapping of SQL type names to their java.sql.Types integer constants.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SQLTypes: Readonly<{
|
|
6
|
+
BOOLEAN: 16;
|
|
7
|
+
DATE: 91;
|
|
8
|
+
TIME: 92;
|
|
9
|
+
TIMESTAMP: 93;
|
|
10
|
+
DOUBLE: 8;
|
|
11
|
+
FLOAT: 6;
|
|
12
|
+
REAL: 7;
|
|
13
|
+
TINYINT: -6;
|
|
14
|
+
SMALLINT: 5;
|
|
15
|
+
INTEGER: 4;
|
|
16
|
+
BIGINT: -5;
|
|
17
|
+
VARCHAR: 12;
|
|
18
|
+
CHAR: 1;
|
|
19
|
+
CLOB: 2005;
|
|
20
|
+
BLOB: 2004;
|
|
21
|
+
VARBINARY: -3;
|
|
22
|
+
DECIMAL: 3;
|
|
23
|
+
ARRAY: 2003;
|
|
24
|
+
NVARCHAR: -9;
|
|
25
|
+
NCLOB: 2011;
|
|
26
|
+
BIT: -7;
|
|
27
|
+
}>;
|
|
28
|
+
export declare enum DatabaseSystem {
|
|
29
|
+
UNKNOWN = 0,
|
|
30
|
+
DERBY = 1,
|
|
31
|
+
POSTGRESQL = 2,
|
|
32
|
+
H2 = 3,
|
|
33
|
+
MARIADB = 4,
|
|
34
|
+
HANA = 5,
|
|
35
|
+
SNOWFLAKE = 6,
|
|
36
|
+
MYSQL = 7,
|
|
37
|
+
MONGODB = 8,
|
|
38
|
+
SYBASE = 9
|
|
39
|
+
}
|
|
40
|
+
export interface TableMetadata {
|
|
41
|
+
/** The name. */
|
|
42
|
+
readonly name: string;
|
|
43
|
+
/** The type. */
|
|
44
|
+
readonly type: string;
|
|
45
|
+
/** The remarks. */
|
|
46
|
+
readonly remarks: string;
|
|
47
|
+
/** The columns. */
|
|
48
|
+
readonly columns: ColumnMetadata[];
|
|
49
|
+
/** The indices. */
|
|
50
|
+
readonly indices: IndexMetadata[];
|
|
51
|
+
/** The indices. */
|
|
52
|
+
readonly foreignKeys: ForeignKeyMetadata[];
|
|
53
|
+
/** The kind. */
|
|
54
|
+
readonly kind: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ColumnMetadata {
|
|
57
|
+
/** The name. */
|
|
58
|
+
readonly name: string;
|
|
59
|
+
/** The type. */
|
|
60
|
+
readonly type: string;
|
|
61
|
+
/** The size. */
|
|
62
|
+
readonly size: number;
|
|
63
|
+
/** The nullable. */
|
|
64
|
+
readonly nullable: boolean;
|
|
65
|
+
/** The key. */
|
|
66
|
+
readonly key: boolean;
|
|
67
|
+
/** The kind. */
|
|
68
|
+
readonly kind: string;
|
|
69
|
+
/** The scale. */
|
|
70
|
+
readonly scale: number;
|
|
71
|
+
}
|
|
72
|
+
export interface IndexMetadata {
|
|
73
|
+
/** The name. */
|
|
74
|
+
readonly name: string;
|
|
75
|
+
/** The type. */
|
|
76
|
+
readonly type: string;
|
|
77
|
+
/** The column. */
|
|
78
|
+
readonly column: string;
|
|
79
|
+
/** The non unique. */
|
|
80
|
+
readonly nonUnique: boolean;
|
|
81
|
+
/** The qualifier. */
|
|
82
|
+
readonly qualifier: string;
|
|
83
|
+
/** The ordinal position. */
|
|
84
|
+
readonly ordinalPosition: string;
|
|
85
|
+
/** The sort order. */
|
|
86
|
+
readonly sortOrder: string;
|
|
87
|
+
/** The cardinality. */
|
|
88
|
+
readonly cardinality: number;
|
|
89
|
+
/** The pages. */
|
|
90
|
+
readonly pages: number;
|
|
91
|
+
/** The filter condition. */
|
|
92
|
+
readonly filterCondition: string;
|
|
93
|
+
/** The kind. */
|
|
94
|
+
readonly kind: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ForeignKeyMetadata {
|
|
97
|
+
/** The name. */
|
|
98
|
+
readonly name: string;
|
|
99
|
+
/** The kind. */
|
|
100
|
+
readonly kind: string;
|
|
101
|
+
}
|
|
102
|
+
export interface SchemaMetadata {
|
|
103
|
+
/** The name. */
|
|
104
|
+
readonly name: string;
|
|
105
|
+
/** The kind. */
|
|
106
|
+
readonly kind: string;
|
|
107
|
+
/** The tables. */
|
|
108
|
+
readonly tables: TableMetadata[];
|
|
109
|
+
/** The views. */
|
|
110
|
+
readonly views: TableMetadata[];
|
|
111
|
+
/** The procedures. */
|
|
112
|
+
readonly procedures: ProcedureMetadata[];
|
|
113
|
+
/** The functions. */
|
|
114
|
+
readonly functions: FunctionMetadata[];
|
|
115
|
+
/** The functions. */
|
|
116
|
+
readonly sequences: SequenceMetadata[];
|
|
117
|
+
}
|
|
118
|
+
export interface ProcedureMetadata {
|
|
119
|
+
/** The name. */
|
|
120
|
+
readonly name: string;
|
|
121
|
+
/** The type. */
|
|
122
|
+
readonly type: string;
|
|
123
|
+
/** The remarks. */
|
|
124
|
+
readonly remarks: string;
|
|
125
|
+
/** The columns. */
|
|
126
|
+
readonly columns: ParameterColumnMetadata[];
|
|
127
|
+
/** The kind. */
|
|
128
|
+
readonly kind: string;
|
|
129
|
+
}
|
|
130
|
+
export interface FunctionMetadata {
|
|
131
|
+
/** The name. */
|
|
132
|
+
readonly name: string;
|
|
133
|
+
/** The type. */
|
|
134
|
+
readonly type: string;
|
|
135
|
+
/** The remarks. */
|
|
136
|
+
readonly remarks: string;
|
|
137
|
+
/** The columns. */
|
|
138
|
+
readonly columns: ParameterColumnMetadata[];
|
|
139
|
+
/** The kind. */
|
|
140
|
+
readonly kind: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ParameterColumnMetadata {
|
|
143
|
+
/** The name. */
|
|
144
|
+
readonly name: string;
|
|
145
|
+
/** The kind. */
|
|
146
|
+
readonly kind: number;
|
|
147
|
+
/** The type. */
|
|
148
|
+
readonly type: string;
|
|
149
|
+
/** The precision. */
|
|
150
|
+
readonly precision: number;
|
|
151
|
+
/** The length. */
|
|
152
|
+
readonly length: number;
|
|
153
|
+
/** The scale. */
|
|
154
|
+
readonly scale: number;
|
|
155
|
+
/** The radix. */
|
|
156
|
+
readonly radix: number;
|
|
157
|
+
/** The nullable. */
|
|
158
|
+
readonly nullable: boolean;
|
|
159
|
+
/** The remarks. */
|
|
160
|
+
readonly remarks: string;
|
|
161
|
+
}
|
|
162
|
+
export interface SequenceMetadata {
|
|
163
|
+
/** The name. */
|
|
164
|
+
readonly name: string;
|
|
165
|
+
/** The kind. */
|
|
166
|
+
readonly kind: string;
|
|
167
|
+
}
|
|
168
|
+
export interface DatabaseMetadata {
|
|
169
|
+
readonly allProceduresAreCallable: boolean;
|
|
170
|
+
readonly allTablesAreSelectable: boolean;
|
|
171
|
+
readonly url: string;
|
|
172
|
+
readonly userName: string;
|
|
173
|
+
readonly isReadOnly: boolean;
|
|
174
|
+
readonly nullsAreSortedHigh: boolean;
|
|
175
|
+
readonly nullsAreSortedLow: boolean;
|
|
176
|
+
readonly nullsAreSortedAtStart: boolean;
|
|
177
|
+
readonly nullsAreSortedAtEnd: boolean;
|
|
178
|
+
readonly databaseProductName: string;
|
|
179
|
+
readonly databaseProductVersion: string;
|
|
180
|
+
readonly driverName: string;
|
|
181
|
+
readonly driverVersion: string;
|
|
182
|
+
readonly driverMajorVersion: number;
|
|
183
|
+
readonly driverMinorVersion: number;
|
|
184
|
+
readonly usesLocalFiles: boolean;
|
|
185
|
+
readonly usesLocalFilePerTable: boolean;
|
|
186
|
+
readonly supportsMixedCaseIdentifiers: boolean;
|
|
187
|
+
readonly storesUpperCaseIdentifiers: boolean;
|
|
188
|
+
readonly storesLowerCaseIdentifiers: boolean;
|
|
189
|
+
readonly storesMixedCaseIdentifiers: boolean;
|
|
190
|
+
readonly supportsMixedCaseQuotedIdentifiers: boolean;
|
|
191
|
+
readonly storesUpperCaseQuotedIdentifiers: boolean;
|
|
192
|
+
readonly storesLowerCaseQuotedIdentifiers: boolean;
|
|
193
|
+
readonly storesMixedCaseQuotedIdentifiers: boolean;
|
|
194
|
+
readonly identifierQuoteString: string;
|
|
195
|
+
readonly sqlKeywords: string;
|
|
196
|
+
readonly numericFunctions: string;
|
|
197
|
+
readonly stringFunctions: string;
|
|
198
|
+
readonly systemFunctions: string;
|
|
199
|
+
readonly timeDateFunctions: string;
|
|
200
|
+
readonly searchStringEscape: string;
|
|
201
|
+
readonly extraNameCharacters: string;
|
|
202
|
+
readonly supportsAlterTableWithAddColumn: boolean;
|
|
203
|
+
readonly supportsAlterTableWithDropColumn: boolean;
|
|
204
|
+
readonly supportsColumnAliasing: boolean;
|
|
205
|
+
readonly nullPlusNonNullIsNull: boolean;
|
|
206
|
+
readonly supportsConvert: boolean;
|
|
207
|
+
readonly supportsTableCorrelationNames: boolean;
|
|
208
|
+
readonly supportsDifferentTableCorrelationNames: boolean;
|
|
209
|
+
readonly supportsExpressionsInOrderBy: boolean;
|
|
210
|
+
readonly supportsOrderByUnrelated: boolean;
|
|
211
|
+
readonly supportsGroupBy: boolean;
|
|
212
|
+
readonly supportsGroupByUnrelated: boolean;
|
|
213
|
+
readonly supportsGroupByBeyondSelect: boolean;
|
|
214
|
+
readonly supportsLikeEscapeClause: boolean;
|
|
215
|
+
readonly supportsMultipleResultSets: boolean;
|
|
216
|
+
readonly supportsMultipleTransactions: boolean;
|
|
217
|
+
readonly supportsNonNullableColumns: boolean;
|
|
218
|
+
readonly supportsMinimumSQLGrammar: boolean;
|
|
219
|
+
readonly supportsCoreSQLGrammar: boolean;
|
|
220
|
+
readonly supportsExtendedSQLGrammar: boolean;
|
|
221
|
+
readonly supportsANSI92EntryLevelSQL: boolean;
|
|
222
|
+
readonly supportsANSI92IntermediateSQL: boolean;
|
|
223
|
+
readonly supportsANSI92FullSQL: boolean;
|
|
224
|
+
readonly supportsIntegrityEnhancementFacility: boolean;
|
|
225
|
+
readonly supportsOuterJoins: boolean;
|
|
226
|
+
readonly supportsFullOuterJoins: boolean;
|
|
227
|
+
readonly supportsLimitedOuterJoins: boolean;
|
|
228
|
+
readonly schemaTerm: string;
|
|
229
|
+
readonly procedureTerm: string;
|
|
230
|
+
readonly catalogTerm: string;
|
|
231
|
+
readonly isCatalogAtStart: boolean;
|
|
232
|
+
readonly catalogSeparator: string;
|
|
233
|
+
readonly supportsSchemasInDataManipulation: boolean;
|
|
234
|
+
readonly supportsSchemasInProcedureCalls: boolean;
|
|
235
|
+
readonly supportsSchemasInTableDefinitions: boolean;
|
|
236
|
+
readonly supportsSchemasInIndexDefinitions: boolean;
|
|
237
|
+
readonly supportsSchemasInPrivilegeDefinitions: boolean;
|
|
238
|
+
readonly supportsCatalogsInDataManipulation: boolean;
|
|
239
|
+
readonly supportsCatalogsInProcedureCalls: boolean;
|
|
240
|
+
readonly supportsCatalogsInTableDefinitions: boolean;
|
|
241
|
+
readonly supportsCatalogsInIndexDefinitions: boolean;
|
|
242
|
+
readonly supportsCatalogsInPrivilegeDefinitions: boolean;
|
|
243
|
+
readonly supportsPositionedDelete: boolean;
|
|
244
|
+
readonly supportsPositionedUpdate: boolean;
|
|
245
|
+
readonly supportsSelectForUpdate: boolean;
|
|
246
|
+
readonly supportsStoredProcedures: boolean;
|
|
247
|
+
readonly supportsSubqueriesInComparisons: boolean;
|
|
248
|
+
readonly supportsSubqueriesInExists: boolean;
|
|
249
|
+
readonly supportsSubqueriesInIns: boolean;
|
|
250
|
+
readonly supportsSubqueriesInQuantifieds: boolean;
|
|
251
|
+
readonly supportsCorrelatedSubqueries: boolean;
|
|
252
|
+
readonly supportsUnion: boolean;
|
|
253
|
+
readonly supportsUnionAll: boolean;
|
|
254
|
+
readonly supportsOpenCursorsAcrossCommit: boolean;
|
|
255
|
+
readonly supportsOpenCursorsAcrossRollback: boolean;
|
|
256
|
+
readonly supportsOpenStatementsAcrossCommit: boolean;
|
|
257
|
+
readonly supportsOpenStatementsAcrossRollback: boolean;
|
|
258
|
+
readonly maxBinaryLiteralLength: number;
|
|
259
|
+
readonly maxCharLiteralLength: number;
|
|
260
|
+
readonly maxColumnNameLength: number;
|
|
261
|
+
readonly maxColumnsInGroupBy: number;
|
|
262
|
+
readonly maxColumnsInIndex: number;
|
|
263
|
+
readonly maxColumnsInOrderBy: number;
|
|
264
|
+
readonly maxColumnsInSelect: number;
|
|
265
|
+
readonly maxColumnsInTable: number;
|
|
266
|
+
readonly maxConnections: number;
|
|
267
|
+
readonly maxCursorNameLength: number;
|
|
268
|
+
readonly maxIndexLength: number;
|
|
269
|
+
readonly maxSchemaNameLength: number;
|
|
270
|
+
readonly maxProcedureNameLength: number;
|
|
271
|
+
readonly maxCatalogNameLength: number;
|
|
272
|
+
readonly maxRowSize: number;
|
|
273
|
+
readonly maxRowSizeIncludeBlobs: boolean;
|
|
274
|
+
readonly maxStatementLength: number;
|
|
275
|
+
readonly maxStatements: number;
|
|
276
|
+
readonly maxTableNameLength: number;
|
|
277
|
+
readonly maxTablesInSelect: number;
|
|
278
|
+
readonly maxUserNameLength: number;
|
|
279
|
+
readonly defaultTransactionIsolation: number;
|
|
280
|
+
readonly supportsTransactions: boolean;
|
|
281
|
+
readonly supportsDataDefinitionAndDataManipulationTransactions: boolean;
|
|
282
|
+
readonly supportsDataManipulationTransactionsOnly: boolean;
|
|
283
|
+
readonly dataDefinitionCausesTransactionCommit: boolean;
|
|
284
|
+
readonly dataDefinitionIgnoredInTransactions: boolean;
|
|
285
|
+
readonly supportsBatchUpdates: boolean;
|
|
286
|
+
readonly supportsSavepoints: boolean;
|
|
287
|
+
readonly supportsNamedParameters: boolean;
|
|
288
|
+
readonly supportsMultipleOpenResults: boolean;
|
|
289
|
+
readonly supportsGetGeneratedKeys: boolean;
|
|
290
|
+
readonly resultSetHoldability: number;
|
|
291
|
+
readonly databaseMajorVersion: number;
|
|
292
|
+
readonly databaseMinorVersion: number;
|
|
293
|
+
readonly jdbcMajorVersion: number;
|
|
294
|
+
readonly jdbcMinorVersion: number;
|
|
295
|
+
readonly sqlStateType: number;
|
|
296
|
+
readonly locatorsUpdateCopy: boolean;
|
|
297
|
+
readonly supportsStatementPooling: boolean;
|
|
298
|
+
readonly supportsStoredFunctionsUsingCallSyntax: boolean;
|
|
299
|
+
readonly autoCommitFailureClosesAllResultSets: boolean;
|
|
300
|
+
readonly generatedKeyAlwaysReturned: boolean;
|
|
301
|
+
readonly maxLogicalLobSize: number;
|
|
302
|
+
readonly supportsRefCursors: boolean;
|
|
303
|
+
readonly schemas: SchemaMetadata[];
|
|
304
|
+
readonly kind: string;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Statement object
|
|
308
|
+
*/
|
|
309
|
+
export declare class PreparedStatement {
|
|
310
|
+
private readonly native;
|
|
311
|
+
constructor(native: any);
|
|
312
|
+
close(): void;
|
|
313
|
+
getResultSet(): ResultSet;
|
|
314
|
+
execute(): boolean;
|
|
315
|
+
executeQuery(): ResultSet;
|
|
316
|
+
executeUpdate(): number;
|
|
317
|
+
setNull(index: number, sqlType: number): void;
|
|
318
|
+
setBinaryStream(parameterIndex: number, inputStream: InputStream, length?: number): void;
|
|
319
|
+
setBoolean(index: number, value?: boolean): void;
|
|
320
|
+
setByte(index: number, value?: any): void;
|
|
321
|
+
setBlob(index: number, value?: any /**: Blob*/): void;
|
|
322
|
+
setClob(index: number, value?: any): void;
|
|
323
|
+
setNClob(index: number, value?: any): void;
|
|
324
|
+
setBytesNative(index: number, value?: any[]): void;
|
|
325
|
+
setBytes(index: number, value?: any[]): void;
|
|
326
|
+
setDate(index: number, value?: string | Date): void;
|
|
327
|
+
setDouble(index: number, value?: number): void;
|
|
328
|
+
setFloat(index: number, value?: number): void;
|
|
329
|
+
setInt(index: number, value?: number): void;
|
|
330
|
+
setLong(index: number, value?: number): void;
|
|
331
|
+
setShort(index: number, value?: number): void;
|
|
332
|
+
setString(index: number, value?: string): void;
|
|
333
|
+
setTime(index: number, value?: string | Date): void;
|
|
334
|
+
setTimestamp(index: number, value?: string | Date): void;
|
|
335
|
+
setBigDecimal(index: number, value?: number): void;
|
|
336
|
+
setNString(index: number, value?: string): void;
|
|
337
|
+
addBatch(): void;
|
|
338
|
+
executeBatch(): number[];
|
|
339
|
+
getMetaData(): any;
|
|
340
|
+
getMoreResults(): boolean;
|
|
341
|
+
getParameterMetaData(): any;
|
|
342
|
+
getSQLWarning(): any;
|
|
343
|
+
isClosed(): boolean;
|
|
344
|
+
}
|
|
345
|
+
export declare class CallableStatement {
|
|
346
|
+
private readonly native;
|
|
347
|
+
constructor(native: any);
|
|
348
|
+
getResultSet(): ResultSet;
|
|
349
|
+
executeQuery(): ResultSet;
|
|
350
|
+
executeUpdate(): number;
|
|
351
|
+
registerOutParameter(parameterIndex: number, sqlType: keyof typeof SQLTypes | number): void;
|
|
352
|
+
registerOutParameterByScale(parameterIndex: number, sqlType: keyof typeof SQLTypes | number, scale: number): void;
|
|
353
|
+
registerOutParameterByTypeName(parameterIndex: number, sqlType: keyof typeof SQLTypes | number, typeName: string): void;
|
|
354
|
+
wasNull(): boolean;
|
|
355
|
+
getString(parameterIndex: number): string;
|
|
356
|
+
getBoolean(parameterIndex: number): boolean;
|
|
357
|
+
getByte(parameterIndex: number): any;
|
|
358
|
+
getShort(parameterIndex: number): number;
|
|
359
|
+
getInt(parameterIndex: number): number;
|
|
360
|
+
getLong(parameterIndex: number): number;
|
|
361
|
+
getFloat(parameterIndex: number): number;
|
|
362
|
+
getDouble(parameterIndex: number): number;
|
|
363
|
+
getDate(parameterIndex: number): Date;
|
|
364
|
+
getTime(parameterIndex: number): Date;
|
|
365
|
+
getTimestamp(parameterIndex: number): Date;
|
|
366
|
+
getObject(parameterIndex: number): any;
|
|
367
|
+
getBigDecimal(parameterIndex: number): number;
|
|
368
|
+
getRef(parameterIndex: number): any;
|
|
369
|
+
getBytes(parameterIndex: number): any[];
|
|
370
|
+
getBytesNative(parameterIndex: number): any[];
|
|
371
|
+
getBlob(parameterIndex: number): any;
|
|
372
|
+
getBlobNative(parameterIndex: number): any;
|
|
373
|
+
getClob(parameterIndex: number): any;
|
|
374
|
+
getNClob(parameterIndex: string | number): any;
|
|
375
|
+
getNString(parameterIndex: string | number): string;
|
|
376
|
+
getArray(parameterIndex: string | number): any[];
|
|
377
|
+
getURL(parameterIndex: string | number): any;
|
|
378
|
+
getRowId(parameterIndex: string | number): any;
|
|
379
|
+
getSQLXML(parameterIndex: string | number): any;
|
|
380
|
+
setURL(parameterIndex: number, value: any): void;
|
|
381
|
+
setNull(parameterIndex: number, sqlTypeStr: keyof typeof SQLTypes | number, typeName?: string): void;
|
|
382
|
+
setBoolean(parameterIndex: number, value?: boolean): void;
|
|
383
|
+
setByte(parameterIndex: number, value?: any): void;
|
|
384
|
+
setShort(parameterIndex: number, value?: number): void;
|
|
385
|
+
setInt(parameterIndex: number, value?: number): void;
|
|
386
|
+
setLong(parameterIndex: number, value?: number): void;
|
|
387
|
+
setFloat(parameterIndex: number, value?: number): void;
|
|
388
|
+
setDouble(parameterIndex: number, value?: number): void;
|
|
389
|
+
setBigDecimal(parameterIndex: number, value?: number): void;
|
|
390
|
+
setString(parameterIndex: number, value?: string): void;
|
|
391
|
+
setBytes(parameterIndex: number, value?: any[]): void;
|
|
392
|
+
setDate(parameterIndex: number, value?: string | Date): void;
|
|
393
|
+
setTime(parameterIndex: number, value?: string | Date): void;
|
|
394
|
+
setTimestamp(parameterIndex: number, value?: string | Date): void;
|
|
395
|
+
setAsciiStream(parameterIndex: number, inputStream: InputStream, length?: number): void;
|
|
396
|
+
setBinaryStream(parameterIndex: number, inputStream: InputStream, length?: number): void;
|
|
397
|
+
setObject(parameterIndex: number, value: any, targetSqlType?: number, scale?: number): void;
|
|
398
|
+
setRowId(parameterIndex: number, value: number): void;
|
|
399
|
+
setNString(parameterIndex: number, value: string): void;
|
|
400
|
+
setSQLXML(parameterIndex: number, value: any): void;
|
|
401
|
+
setBlob(parameterIndex: number, value: any): void;
|
|
402
|
+
setClob(parameterIndex: number, value: any): void;
|
|
403
|
+
setNClob(parameterIndex: number, value: any): void;
|
|
404
|
+
execute(): boolean;
|
|
405
|
+
getMoreResults(): boolean;
|
|
406
|
+
getParameterMetaData(): any;
|
|
407
|
+
isClosed(): boolean;
|
|
408
|
+
close(): void;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* ResultSet object
|
|
412
|
+
*/
|
|
413
|
+
export declare class ResultSet {
|
|
414
|
+
private readonly native;
|
|
415
|
+
constructor(native: any);
|
|
416
|
+
/**
|
|
417
|
+
* Converts the ResultSet into a JSON array of objects.
|
|
418
|
+
* @param limited Whether to use limited JSON conversion (optimized).
|
|
419
|
+
* @param stringify Whether to return the JSON as a string or a parsed array.
|
|
420
|
+
* @returns A JavaScript array of objects representing the result set, or a string if stringify is true.
|
|
421
|
+
*/
|
|
422
|
+
toJson(limited?: boolean, stringify?: boolean): any[];
|
|
423
|
+
close(): void;
|
|
424
|
+
getBigDecimal(identifier: number | string): any;
|
|
425
|
+
getBoolean(identifier: number | string): boolean;
|
|
426
|
+
getByte(identifier: number | string): any;
|
|
427
|
+
getBytes(identifier: number | string): any[];
|
|
428
|
+
getBytesNative(identifier: number | string): any[];
|
|
429
|
+
getBlob(identifier: number | string): any;
|
|
430
|
+
getBlobNative(identifier: number | string): any;
|
|
431
|
+
getClob(identifier: number | string): any;
|
|
432
|
+
getNClob(identifier: number | string): any;
|
|
433
|
+
getDate(identifier: number | string): Date | undefined;
|
|
434
|
+
getDouble(identifier: number | string): number;
|
|
435
|
+
getFloat(identifier: number | string): number;
|
|
436
|
+
getInt(identifier: number | string): number;
|
|
437
|
+
getLong(identifier: number | string): number;
|
|
438
|
+
getShort(identifier: number | string): number;
|
|
439
|
+
getString(identifier: number | string): string;
|
|
440
|
+
getTime(identifier: number | string): Date | undefined;
|
|
441
|
+
getTimestamp(identifier: number | string): Date | undefined;
|
|
442
|
+
isAfterLast(): boolean;
|
|
443
|
+
isBeforeFirst(): boolean;
|
|
444
|
+
isClosed(): boolean;
|
|
445
|
+
isFirst(): boolean;
|
|
446
|
+
isLast(): boolean;
|
|
447
|
+
next(): boolean;
|
|
448
|
+
getMetaData(): any;
|
|
449
|
+
getNString(columnIndex: number): string;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Connection object wrapper around a native Java `Connection`.
|
|
453
|
+
*/
|
|
454
|
+
export declare class Connection {
|
|
455
|
+
readonly native: any;
|
|
456
|
+
constructor(datasourceName?: string);
|
|
457
|
+
/**
|
|
458
|
+
* Checks if the connection is for a specific database system.
|
|
459
|
+
*/
|
|
460
|
+
isOfType(databaseSystem: DatabaseSystem): boolean;
|
|
461
|
+
/**
|
|
462
|
+
* Returns the type of the underlying database system as a {@link DatabaseSystem} enum.
|
|
463
|
+
*/
|
|
464
|
+
getDatabaseSystem(): DatabaseSystem;
|
|
465
|
+
/**
|
|
466
|
+
* Creates a new {@link PreparedStatement} object for sending parameterized SQL statements to the database.
|
|
467
|
+
*/
|
|
468
|
+
prepareStatement(sql: string): PreparedStatement;
|
|
469
|
+
/**
|
|
470
|
+
* Creates a {@link CallableStatement} object for calling database stored procedures or functions.
|
|
471
|
+
*/
|
|
472
|
+
prepareCall(sql: string): CallableStatement;
|
|
473
|
+
close(): void;
|
|
474
|
+
commit(): void;
|
|
475
|
+
getAutoCommit(): boolean;
|
|
476
|
+
getCatalog(): string;
|
|
477
|
+
getSchema(): string;
|
|
478
|
+
getTransactionIsolation(): number;
|
|
479
|
+
isClosed(): boolean;
|
|
480
|
+
isReadOnly(): boolean;
|
|
481
|
+
isValid(): boolean;
|
|
482
|
+
rollback(): void;
|
|
483
|
+
setAutoCommit(autoCommit: boolean): void;
|
|
484
|
+
setCatalog(catalog: string): void;
|
|
485
|
+
setReadOnly(readOnly: boolean): void;
|
|
486
|
+
setSchema(schema: string): void;
|
|
487
|
+
setTransactionIsolation(transactionIsolation: number): void;
|
|
488
|
+
getMetaData(): any;
|
|
489
|
+
}
|
|
490
|
+
export declare class Database {
|
|
491
|
+
/**
|
|
492
|
+
* Returns a list of available data source names.
|
|
493
|
+
*/
|
|
494
|
+
static getDataSources(): string[];
|
|
495
|
+
/**
|
|
496
|
+
* Returns database metadata for the specified data source.
|
|
497
|
+
*/
|
|
498
|
+
static getMetadata(datasourceName?: string): DatabaseMetadata | undefined;
|
|
499
|
+
/**
|
|
500
|
+
* Returns the product name of the underlying database system.
|
|
501
|
+
*/
|
|
502
|
+
static getProductName(datasourceName?: string): string;
|
|
503
|
+
/**
|
|
504
|
+
* Gets a new database connection object.
|
|
505
|
+
*/
|
|
506
|
+
static getConnection(datasourceName?: string): Connection;
|
|
507
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* * ECMAScript 2025-compliant ORM decorator implementation
|
|
3
|
+
* Compatible with GraalJS runtime.
|
|
4
|
+
* * Features:
|
|
5
|
+
* - Uses context.addInitializer for stable decorator timing
|
|
6
|
+
* - Stores metadata in a global WeakMap cache
|
|
7
|
+
* - Finalizes entity metadata once per class
|
|
8
|
+
* - Defers finalization via microtask (Promise.resolve().then)
|
|
9
|
+
*/
|
|
10
|
+
type ClassFieldDecoratorContext = {
|
|
11
|
+
kind: "field";
|
|
12
|
+
name: string | symbol;
|
|
13
|
+
static: boolean;
|
|
14
|
+
private: boolean;
|
|
15
|
+
addInitializer(fn: () => void): void;
|
|
16
|
+
};
|
|
17
|
+
type ClassDecoratorContext = {
|
|
18
|
+
kind: "class";
|
|
19
|
+
name?: string | symbol;
|
|
20
|
+
addInitializer(fn: () => void): void;
|
|
21
|
+
};
|
|
22
|
+
export interface ColumnOptions {
|
|
23
|
+
name?: string;
|
|
24
|
+
type?: string;
|
|
25
|
+
length?: number;
|
|
26
|
+
nullable?: boolean;
|
|
27
|
+
defaultValue?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface OneToManyOptions {
|
|
30
|
+
table?: string;
|
|
31
|
+
joinColumn: string;
|
|
32
|
+
cascade?: "all" | "none" | "persist" | "merge" | "remove";
|
|
33
|
+
inverse?: boolean;
|
|
34
|
+
lazy?: boolean;
|
|
35
|
+
fetch?: "select" | "join";
|
|
36
|
+
joinColumnNotNull?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ManyToOneOptions {
|
|
39
|
+
joinColumn?: string;
|
|
40
|
+
cascade?: "all" | "none" | "persist" | "merge" | "remove";
|
|
41
|
+
nullable?: boolean;
|
|
42
|
+
lazy?: boolean;
|
|
43
|
+
fetch?: "select" | "join";
|
|
44
|
+
}
|
|
45
|
+
export interface EntityConstructor extends Function {
|
|
46
|
+
new (...args: any[]): any;
|
|
47
|
+
$entity_name: string;
|
|
48
|
+
$table_name: string;
|
|
49
|
+
$id_name: string;
|
|
50
|
+
$id_column: string;
|
|
51
|
+
$initialized?: boolean;
|
|
52
|
+
$documentation?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Adds documentation metadata to a class or a field.
|
|
56
|
+
*/
|
|
57
|
+
export declare function Documentation(description: string): (value: Function | any, context: ClassDecoratorContext | ClassFieldDecoratorContext) => any;
|
|
58
|
+
/**
|
|
59
|
+
* Marks a class as an entity and initiates metadata finalization.
|
|
60
|
+
* @param entityName The name of the entity (defaults to class name).
|
|
61
|
+
*/
|
|
62
|
+
export declare function Entity(entityName?: string): (value: Function, context: ClassDecoratorContext) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies the database table name for the entity.
|
|
65
|
+
* @param tableName The table name (defaults to uppercase class name).
|
|
66
|
+
*/
|
|
67
|
+
export declare function Table(tableName?: string): <T extends EntityConstructor>(value: T, context: ClassDecoratorContext) => T;
|
|
68
|
+
/**
|
|
69
|
+
* Marks a property as a standard database column.
|
|
70
|
+
*/
|
|
71
|
+
export declare const Column: (options?: ColumnOptions) => (_: any, context: ClassFieldDecoratorContext) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Marks a property as the entity's primary key.
|
|
74
|
+
*/
|
|
75
|
+
export declare const Id: () => (_: any, context: ClassFieldDecoratorContext) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Marks a property as a generated value (e.g., auto-increment).
|
|
78
|
+
* @param strategy The generation strategy (e.g., "IDENTITY"). Parameter is currently unused in logic.
|
|
79
|
+
*/
|
|
80
|
+
export declare const Generated: (strategy: string) => (_: any, context: ClassFieldDecoratorContext) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Defines a one-to-many relationship.
|
|
83
|
+
*/
|
|
84
|
+
export declare function OneToMany(typeFunction: () => Function, options: OneToManyOptions): (_: any, context: ClassFieldDecoratorContext) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Defines a many-to-one relationship.
|
|
87
|
+
*/
|
|
88
|
+
export declare function ManyToOne(typeFunction: () => Function, options?: ManyToOneOptions): (_: any, context: ClassFieldDecoratorContext) => void;
|
|
89
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * as dao from "./dao";
|
|
2
|
+
export * from "./database";
|
|
3
|
+
export { Database as database } from "./database";
|
|
4
|
+
export * as orm from "./orm";
|
|
5
|
+
export * as ormstatements from "./ormstatements";
|
|
6
|
+
export * from "./sql";
|
|
7
|
+
export { SQLBuilder as sql } from "./sql";
|
|
8
|
+
export * from "./procedure";
|
|
9
|
+
export { Procedure as procedure } from "./procedure";
|
|
10
|
+
export * from "./sequence";
|
|
11
|
+
export { Sequence as sequence } from "./sequence";
|
|
12
|
+
export * from "./query";
|
|
13
|
+
export { Query as query } from "./query";
|
|
14
|
+
export * from "./update";
|
|
15
|
+
export { Update as update } from "./update";
|
|
16
|
+
export * from "./insert";
|
|
17
|
+
export { Insert as insert } from "./insert";
|
|
18
|
+
export * from "./store";
|
|
19
|
+
export { Store as store } from "./store";
|
|
20
|
+
export * from "./repository";
|
|
21
|
+
export { Repository as repository } from "./repository";
|
|
22
|
+
export * from "./decorators";
|
|
23
|
+
export * as decorators from "./decorators";
|
|
24
|
+
export * from "./translator";
|
|
25
|
+
export { Translator as translator } from "./translator";
|