Package org.qdl_lang.extensions.dynamodb
Class DynamoDB
- java.lang.Object
-
- org.qdl_lang.extensions.dynamodb.DynamoDB
-
- All Implemented Interfaces:
Serializable
,QDLMetaModule
public class DynamoDB extends Object implements QDLMetaModule
Created by Jeff Gaynor
on 6/20/24 at 9:54 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DynamoDB.Close
class
DynamoDB.Get
class
DynamoDB.Open
class
DynamoDB.PartitionKeyFunction
class
DynamoDB.RegionFunction
class
DynamoDB.Regions
class
DynamoDB.TableNameFunction
-
Field Summary
Fields Modifier and Type Field Description static String
ACCESS_KEY_ID
static String
CLOSE
static software.amazon.awssdk.regions.Region
DEFAULT_REGION
static String
GET_ITEM
static String
OPEN
static String
PARTITION_KEY
static String
PARTITION_KEY_FUNCTION
static String
partitionKey
static software.amazon.awssdk.regions.Region
region
static String
REGION_FUNCTION
static String
REGION_KEY
static String
REGIONS
static String
SECRET_ACCESS_KEY
static String
TABLE_NAME_FUNCTION
static String
TABLE_NAME_KEY
static String
tableName
-
Constructor Summary
Constructors Constructor Description DynamoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkInit()
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(Boolean bValue)
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(Long lValue)
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(String sValue)
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(BigDecimal bigDecimal)
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(QDLList qdlList)
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue
convertToAV(QDLNull bValue)
protected Object
convertToQDL(software.amazon.awssdk.services.dynamodb.model.AttributeValue attributeValue)
void
deserializeFromJSON(net.sf.json.JSONObject json)
protected QDLStem
mapToStem(Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> items)
net.sf.json.JSONObject
serializeToJSON()
Send back a serialization of internal state for this object.protected Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue>
stemToMap(QDLStem stem)
-
-
-
Field Detail
-
OPEN
public static final String OPEN
- See Also:
- Constant Field Values
-
GET_ITEM
public static final String GET_ITEM
- See Also:
- Constant Field Values
-
ACCESS_KEY_ID
public static final String ACCESS_KEY_ID
- See Also:
- Constant Field Values
-
SECRET_ACCESS_KEY
public static final String SECRET_ACCESS_KEY
- See Also:
- Constant Field Values
-
REGION_KEY
public static final String REGION_KEY
- See Also:
- Constant Field Values
-
DEFAULT_REGION
public static final software.amazon.awssdk.regions.Region DEFAULT_REGION
-
CLOSE
public static final String CLOSE
- See Also:
- Constant Field Values
-
TABLE_NAME_KEY
public static final String TABLE_NAME_KEY
- See Also:
- Constant Field Values
-
PARTITION_KEY
public static final String PARTITION_KEY
- See Also:
- Constant Field Values
-
region
public static software.amazon.awssdk.regions.Region region
-
tableName
public static String tableName
-
partitionKey
public static String partitionKey
-
REGIONS
public static String REGIONS
-
REGION_FUNCTION
public static final String REGION_FUNCTION
- See Also:
- Constant Field Values
-
PARTITION_KEY_FUNCTION
public static final String PARTITION_KEY_FUNCTION
- See Also:
- Constant Field Values
-
TABLE_NAME_FUNCTION
public static final String TABLE_NAME_FUNCTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
serializeToJSON
public net.sf.json.JSONObject serializeToJSON()
Description copied from interface:QDLMetaModule
Send back a serialization of internal state for this object. This allows for the state you choose to be serialized and then reloaded.NOTE
There is no canonical form for this. Set it how you will and deserialize it accordingly.- Specified by:
serializeToJSON
in interfaceQDLMetaModule
- Returns:
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject json)
- Specified by:
deserializeFromJSON
in interfaceQDLMetaModule
-
stemToMap
protected Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> stemToMap(QDLStem stem)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(Long lValue)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(String sValue)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(BigDecimal bigDecimal)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(Boolean bValue)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(QDLNull bValue)
-
convertToAV
protected software.amazon.awssdk.services.dynamodb.model.AttributeValue convertToAV(QDLList qdlList)
-
mapToStem
protected QDLStem mapToStem(Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> items)
-
convertToQDL
protected Object convertToQDL(software.amazon.awssdk.services.dynamodb.model.AttributeValue attributeValue)
-
checkInit
protected void checkInit()
-
-