summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/backend/dynamo/DynamoKey.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-04-09 14:22:20 -0700
committerJesse Morgan <jesse@jesterpm.net>2016-04-09 15:48:01 -0700
commit3102d8bce3426d9cf41aeaf201c360d342677770 (patch)
tree38c4f1e8828f9af9c4b77a173bee0d312b321698 /src/com/p4square/grow/backend/dynamo/DynamoKey.java
parentbbf907e51dfcf157bdee24dead1d531122aa25db (diff)
Switching from Ivy+Ant to Maven.
Diffstat (limited to 'src/com/p4square/grow/backend/dynamo/DynamoKey.java')
-rw-r--r--src/com/p4square/grow/backend/dynamo/DynamoKey.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/com/p4square/grow/backend/dynamo/DynamoKey.java b/src/com/p4square/grow/backend/dynamo/DynamoKey.java
deleted file mode 100644
index 5cdbacd..0000000
--- a/src/com/p4square/grow/backend/dynamo/DynamoKey.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2014 Jesse Morgan
- */
-
-package com.p4square.grow.backend.dynamo;
-
-/**
- * DynamoKey represents a table, hash key, and range key tupl.
- */
-public class DynamoKey {
- private final String mTable;
- private final String mHashKey;
- private final String mRangeKey;
- private final String mAttribute;
-
- public static DynamoKey newKey(final String table, final String hashKey) {
- return new DynamoKey(table, hashKey, null, null);
- }
-
- public static DynamoKey newRangeKey(final String table, final String hashKey,
- final String rangeKey) {
-
- return new DynamoKey(table, hashKey, rangeKey, null);
- }
-
- public static DynamoKey newAttributeKey(final String table, final String hashKey,
- final String attribute) {
-
- return new DynamoKey(table, hashKey, null, attribute);
- }
-
- public DynamoKey(final String table, final String hashKey, final String rangeKey,
- final String attribute) {
-
- mTable = table;
- mHashKey = hashKey;
- mRangeKey = rangeKey;
- mAttribute = attribute;
- }
-
- public String getTable() {
- return mTable;
- }
-
- public String getHashKey() {
- return mHashKey;
- }
-
- public String getRangeKey() {
- return mRangeKey;
- }
-
- public String getAttribute() {
- return mAttribute;
- }
-}