List of Methods


public static final ObjectManipulation DEFAULT = new ObjectManipulationImpl();
public <T> T get(String expr);
public <T> void set(String expr, T newvalue);
public <T> void set(String expr, T newvalue, String processName);


How to use

One-to-One


ObjectManipulation.DEFAULT.get("MD1161858889"); 

{SOFTWARE_ASSET_ID=216, IP_ADDRESS=null, URL=null}

ObjectManipulation.DEFAULT.get("MD1161858889.SOFTWARE_ASSET_ID"); 

216

ObjectManipulation.DEFAULT.set("MD1161858889.SOFTWARE_ASSET_ID", 7777);


One-to-Many


ObjectManipulation.DEFAULT.get("MD1161833204");

[{SOFTWARE_ASSET_ID=216, UPDATE_DATE=null, FILE_PATH__DESC=, ATTACHMENT_ID=208, FILE_PATH=, KEY={SOFTWARE_ASSET_ID=216, ATTACHMENT_ID=208}}, {SOFTWARE_ASSET_ID=216, UPDATE_DATE=null, FILE_PATH__DESC=, ATTACHMENT_ID=209, FILE_PATH=, KEY={SOFTWARE_ASSET_ID=216, ATTACHMENT_ID=209}}, {SOFTWARE_ASSET_ID=216, UPDATE_DATE=null, FILE_PATH__DESC=, ATTACHMENT_ID=210, FILE_PATH=, KEY={SOFTWARE_ASSET_ID=216, ATTACHMENT_ID=210}}]


ObjectManipulation.DEFAULT.get("MD1161833204[0]");

[{SOFTWARE_ASSET_ID=216, UPDATE_DATE=null, FILE_PATH__DESC=, ATTACHMENT_ID=208, FILE_PATH=, KEY={SOFTWARE_ASSET_ID=216, ATTACHMENT_ID=208}}]

       

ObjectManipulation.DEFAULT.get("MD1161833204.SOFTWARE_ASSET_ID");

[216,216,216]


ObjectManipulation.DEFAULT.get("MD1161833204.SOFTWARE_ASSET_ID[0]");

216


HashMap map = new HashMap() {{

 put("SOFTWARE_ASSET_ID""9999");

 put("IP_ADDRESS""/x/y/x.pdf");

 put("URL"null);

}};

ObjectManipulation.DEFAULT.set("MD1161833204[0]"map);

ObjectManipulation.DEFAULT.set("MD1161833204"map"INSERT");//Creates New Record