Script Helper
List of methods available in the ScriptHelper object.
| Method | Description |
|---|---|
| String getUser() | Get the UserId as authenticated |
| String getContext() | Get the database context (useful in multi-database environment) |
| Tuple save(Tuple data) | saves the given tuple and return the same |
| public List<Tuple> list(String type, TupleFilter filter) | |
| public TupleResultSet query(String type, TupleFilter filter) | |
| public Tuple getUnique(String type, Tuple criteria) | |
| public Tuple getUnique(String type, TupleFilter filter) | |
| public List<Tuple> searchByUniqueKey(String type, TupleFilter filter) | |
| public String getAppConfig(String key) | |
| public List<Tuple> searchByField(String ciType, String key, String value) | |
| public Tuple getUniqueByField(String ciType, String key, String value) | |
| public Tuple getUniqueByKey(String ciType, String key, Integer value) | |
| public List<GenericItem> executeQuery (NativeQuery query) | |
| public <T> List<T> executeQuery(NativeQuery query, Class<T> returnType) | |
| public int update(NativeQuery query) | |
| public void insert(NativeQuery query) | |
| public int delete(NativeQuery query) | |
| public Object getBean(Class clazz) | Get an instance of the class based on Spring application context |