com.genexus.db.dynamodb.DynamoDBConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxdynamodb Show documentation
Show all versions of gxdynamodb Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
The newest version!
package com.genexus.db.dynamodb;
import com.genexus.db.service.ServiceConnection;
import org.apache.commons.lang.StringUtils;
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
import software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder;
import java.net.URI;
import java.sql.ResultSet;
import java.util.Enumeration;
import java.util.Properties;
import java.util.concurrent.Executor;
public class DynamoDBConnection extends ServiceConnection
{
private static final String GXDYNAMODB_VERSION = "1.0";
private static final String GXDYNAMODB_PRODUCT_NAME = "DynamoDB";
private static final String CLIENT_ID = "user";
private static final String CLIENT_SECRET = "password";
private static final String REGION = "region";
private static final String LOCAL_URL = "localurl";
DynamoDbClient mDynamoDB;
Region mRegion = Region.US_EAST_1;
public DynamoDBConnection(String connUrl, Properties initialConnProps)
{
super(connUrl, initialConnProps); // After initialization use props variable from super class to manage properties
initializeDBConnection(connUrl);
}
private void initializeDBConnection(String connUrl)
{
String mLocalUrl = null, mClientId = null, mClientSecret = null;
for(Enumeration
© 2015 - 2024 Weber Informatics LLC | Privacy Policy