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 classDynamoDB.CloseclassDynamoDB.GetclassDynamoDB.OpenclassDynamoDB.PartitionKeyFunctionclassDynamoDB.RegionFunctionclassDynamoDB.RegionsclassDynamoDB.TableNameFunction
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_KEY_IDstatic StringCLOSEstatic software.amazon.awssdk.regions.RegionDEFAULT_REGIONstatic StringGET_ITEMstatic StringOPENstatic StringPARTITION_KEYstatic StringPARTITION_KEY_FUNCTIONstatic StringpartitionKeystatic software.amazon.awssdk.regions.Regionregionstatic StringREGION_FUNCTIONstatic StringREGION_KEYstatic StringREGIONSstatic StringSECRET_ACCESS_KEYstatic StringTABLE_NAME_FUNCTIONstatic StringTABLE_NAME_KEYstatic StringtableName
-
Constructor Summary
Constructors Constructor Description DynamoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckInit()protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(Boolean bValue)protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(Long lValue)protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(String sValue)protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(BigDecimal bigDecimal)protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(QDLList<QDLValue> qdlList)protected software.amazon.awssdk.services.dynamodb.model.AttributeValueconvertToAV(QDLNull bValue)protected ObjectconvertToQDL(software.amazon.awssdk.services.dynamodb.model.AttributeValue attributeValue)voiddeserializeFromJSON(net.sf.json.JSONObject json)protected QDLStemmapToStem(Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> items)net.sf.json.JSONObjectserializeToJSON()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:QDLMetaModuleSend 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:
serializeToJSONin interfaceQDLMetaModule- Returns:
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject json)
- Specified by:
deserializeFromJSONin 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<QDLValue> 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()
-
-