All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.dynamodbv2.AbstractAmazonDynamoDB Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.dynamodbv2;

import com.amazonaws.services.dynamodbv2.model.*;
import com.amazonaws.*;

/**
 * Abstract implementation of {@code AmazonDynamoDB}. Convenient method forms
 * pass through to the corresponding overload that takes a request object, which
 * throws an {@code UnsupportedOperationException}.
 */
public class AbstractAmazonDynamoDB implements AmazonDynamoDB {

    protected AbstractAmazonDynamoDB() {
    }

    @Override
    public void setEndpoint(String endpoint) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public void setRegion(com.amazonaws.regions.Region region) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public BatchGetItemResult batchGetItem(BatchGetItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public BatchGetItemResult batchGetItem(
            java.util.Map requestItems,
            String returnConsumedCapacity) {
        return batchGetItem(new BatchGetItemRequest().withRequestItems(
                requestItems)
                .withReturnConsumedCapacity(returnConsumedCapacity));
    }

    @Override
    public BatchGetItemResult batchGetItem(
            java.util.Map requestItems) {
        return batchGetItem(new BatchGetItemRequest()
                .withRequestItems(requestItems));
    }

    @Override
    public BatchWriteItemResult batchWriteItem(BatchWriteItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public BatchWriteItemResult batchWriteItem(
            java.util.Map> requestItems) {
        return batchWriteItem(new BatchWriteItemRequest()
                .withRequestItems(requestItems));
    }

    @Override
    public CreateTableResult createTable(CreateTableRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public CreateTableResult createTable(
            java.util.List attributeDefinitions,
            String tableName, java.util.List keySchema,
            ProvisionedThroughput provisionedThroughput) {
        return createTable(new CreateTableRequest()
                .withAttributeDefinitions(attributeDefinitions)
                .withTableName(tableName).withKeySchema(keySchema)
                .withProvisionedThroughput(provisionedThroughput));
    }

    @Override
    public DeleteItemResult deleteItem(DeleteItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public DeleteItemResult deleteItem(String tableName,
            java.util.Map key) {
        return deleteItem(new DeleteItemRequest().withTableName(tableName)
                .withKey(key));
    }

    @Override
    public DeleteItemResult deleteItem(String tableName,
            java.util.Map key, String returnValues) {
        return deleteItem(new DeleteItemRequest().withTableName(tableName)
                .withKey(key).withReturnValues(returnValues));
    }

    @Override
    public DeleteTableResult deleteTable(DeleteTableRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public DeleteTableResult deleteTable(String tableName) {
        return deleteTable(new DeleteTableRequest().withTableName(tableName));
    }

    @Override
    public DescribeLimitsResult describeLimits(DescribeLimitsRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public DescribeTableResult describeTable(DescribeTableRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public DescribeTableResult describeTable(String tableName) {
        return describeTable(new DescribeTableRequest()
                .withTableName(tableName));
    }

    @Override
    public GetItemResult getItem(GetItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public GetItemResult getItem(String tableName,
            java.util.Map key) {
        return getItem(new GetItemRequest().withTableName(tableName).withKey(
                key));
    }

    @Override
    public GetItemResult getItem(String tableName,
            java.util.Map key, Boolean consistentRead) {
        return getItem(new GetItemRequest().withTableName(tableName)
                .withKey(key).withConsistentRead(consistentRead));
    }

    @Override
    public ListTablesResult listTables(ListTablesRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public ListTablesResult listTables() {
        return listTables(new ListTablesRequest());
    }

    @Override
    public ListTablesResult listTables(String exclusiveStartTableName) {
        return listTables(new ListTablesRequest()
                .withExclusiveStartTableName(exclusiveStartTableName));
    }

    @Override
    public ListTablesResult listTables(String exclusiveStartTableName,
            Integer limit) {
        return listTables(new ListTablesRequest().withExclusiveStartTableName(
                exclusiveStartTableName).withLimit(limit));
    }

    @Override
    public ListTablesResult listTables(Integer limit) {
        return listTables(new ListTablesRequest().withLimit(limit));
    }

    @Override
    public PutItemResult putItem(PutItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public PutItemResult putItem(String tableName,
            java.util.Map item) {
        return putItem(new PutItemRequest().withTableName(tableName).withItem(
                item));
    }

    @Override
    public PutItemResult putItem(String tableName,
            java.util.Map item, String returnValues) {
        return putItem(new PutItemRequest().withTableName(tableName)
                .withItem(item).withReturnValues(returnValues));
    }

    @Override
    public QueryResult query(QueryRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public ScanResult scan(ScanRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public ScanResult scan(String tableName,
            java.util.List attributesToGet) {
        return scan(new ScanRequest().withTableName(tableName)
                .withAttributesToGet(attributesToGet));
    }

    @Override
    public ScanResult scan(String tableName,
            java.util.Map scanFilter) {
        return scan(new ScanRequest().withTableName(tableName).withScanFilter(
                scanFilter));
    }

    @Override
    public ScanResult scan(String tableName,
            java.util.List attributesToGet,
            java.util.Map scanFilter) {
        return scan(new ScanRequest().withTableName(tableName)
                .withAttributesToGet(attributesToGet)
                .withScanFilter(scanFilter));
    }

    @Override
    public UpdateItemResult updateItem(UpdateItemRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public UpdateItemResult updateItem(String tableName,
            java.util.Map key,
            java.util.Map attributeUpdates) {
        return updateItem(new UpdateItemRequest().withTableName(tableName)
                .withKey(key).withAttributeUpdates(attributeUpdates));
    }

    @Override
    public UpdateItemResult updateItem(String tableName,
            java.util.Map key,
            java.util.Map attributeUpdates,
            String returnValues) {
        return updateItem(new UpdateItemRequest().withTableName(tableName)
                .withKey(key).withAttributeUpdates(attributeUpdates)
                .withReturnValues(returnValues));
    }

    @Override
    public UpdateTableResult updateTable(UpdateTableRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public UpdateTableResult updateTable(String tableName,
            ProvisionedThroughput provisionedThroughput) {
        return updateTable(new UpdateTableRequest().withTableName(tableName)
                .withProvisionedThroughput(provisionedThroughput));
    }

    @Override
    public void shutdown() {
        throw new java.lang.UnsupportedOperationException();
    }

    @Override
    public com.amazonaws.ResponseMetadata getCachedResponseMetadata(
            com.amazonaws.AmazonWebServiceRequest request) {
        throw new java.lang.UnsupportedOperationException();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy