|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.db.PgArrayHelper
public class PgArrayHelper
Strategy class for setting array values in the database. Must be used from within an existing transaction.
Constructor Summary | |
---|---|
PgArrayHelper(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc)
|
Method Summary | |
---|---|
List<String> |
getFileParamKeys(long id)
Returns only the (possibly empty) keys which are set on the given original file. |
Map<String,String> |
getFileParams(long id)
Loads all the (possibly empty) params for the given original file. |
List<String> |
getPixelsParamKeys(long id)
Returns only the (possibly empty) keys which are set on the given original file. |
Map<String,String> |
getPixelsParams(long id)
Loads all the (possibly empty) params for the given original file. |
int |
setFileParam(long id,
String key,
String value)
Appends "{key, value}" onto the original file "params" field or replaces the value if already present. |
int |
setFileParams(long id,
Map<String,String> params)
Resets the entire original file "params" field. |
int |
setPixelsParam(long id,
String key,
String value)
Appends "{key, value}" onto the original file "params" field or replaces the value if already present. |
int |
setPixelsParams(long id,
Map<String,String> params)
Resets the entire original file "params" field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PgArrayHelper(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc)
Method Detail |
---|
public int setFileParam(long id, String key, String value)
public int setFileParams(long id, Map<String,String> params)
public Map<String,String> getFileParams(long id) throws ome.conditions.InternalException
ome.conditions.InternalException
public List<String> getFileParamKeys(long id) throws ome.conditions.InternalException
ome.conditions.InternalException
public int setPixelsParam(long id, String key, String value)
public int setPixelsParams(long id, Map<String,String> params)
public Map<String,String> getPixelsParams(long id) throws ome.conditions.InternalException
ome.conditions.InternalException
public List<String> getPixelsParamKeys(long id) throws ome.conditions.InternalException
ome.conditions.InternalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.