public class GenericDBHelper extends DBHelper
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
$AGGREGATE_FUNCTIONS |
static String |
$ANY |
static List<String> |
$ARITHMETIC_FUNCTIONS |
static String |
$AVG |
static String |
$BETWEEN |
static String |
$CONTAIN |
static String |
$COUNT |
static String |
$DIVIDE |
static String |
$GROUP |
static String |
$GT |
static String |
$GTE |
static String |
$IN |
static String |
$LIKE |
static String |
$LIMIT |
static String |
$LT |
static String |
$LTE |
static String |
$MAX |
static String |
$MIN |
static String |
$MINUS |
static String |
$MODULE |
static String |
$MULTIPLY |
static String |
$NE |
static String |
$OFFSET |
static String |
$OR |
static String |
$PLUS |
static String |
$SIMILAR |
static String |
$SORT |
static String |
$SUM |
static String |
$UPSERT |
static String |
$WHERE |
static List<String> |
$WHERE_FUNCTIONS |
comparableTypes, DBType, dbUrl, inputParameterList, likeableTypes, numberTypes, postgreSQLTypeNameToJava, postgreSQLTypeNameToSQLType, SPMetaInfo, sqlTypeToJava, statement, stringTypes| Constructor and Description |
|---|
GenericDBHelper(String connectionString) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildDeleteTSQL(String tableName,
org.json.JSONObject jsonQuery) |
String |
buildInsertTSQL(String tableName,
org.json.JSONArray obj) |
String |
buildSelectTSQL(String tableName,
org.json.JSONObject jsonQuery) |
String |
buildSortTSQL(HashMap<String,ColumnInfo> columnList,
org.json.JSONObject jsonSort) |
String |
buildUpdateTSQL(String tableName,
org.json.JSONObject jsonQuery) |
String |
buildWhereTSQL(HashMap<String,ColumnInfo> columnList,
org.json.JSONObject jsonWhere) |
int |
delete(String tableName,
org.json.JSONObject jsonQuery) |
int |
delete(String tableName,
NameValuePair... params) |
String |
executeToXml(String tableName,
NameValuePair... params) |
Object |
getPassedValue(org.json.JSONObject item,
String key) |
List<Object> |
insert(String tableName,
org.json.JSONArray obj) |
Object |
insert(String tableName,
org.json.JSONObject obj) |
org.json.JSONObject |
selectToJson(String tableName,
org.json.JSONObject jsonQuery) |
org.json.JSONObject |
selectToJson(String tableName,
NameValuePair... params) |
String |
selectToXml(String tableName,
org.json.JSONObject jsonQuery) |
int |
update(String tableName,
org.json.JSONObject jsonQuery) |
int |
update(String tableName,
NameValuePair... params) |
addOutParameter, addParameter, close, executeSP, executeSP, executeSQL, executeSQL, executeSQL, executeToJson, executeToXml, findAllTableInfo, findAllTypeInfo, findClassFieldInfo, findResultsColumnInfo, findSPInfo, findSPMetaInfo, findTableInfo, findTableInfo, findTSQLInfo, findTSQLParameters, findTypeInfo, findTypeInfo, getConnection, getCurrentConnection, getOutputParameterList, getTableColumnList, getUniqueSqlParameterName, insert, printResult, ReadOutputParameterList, sqlTypeNameToType, toSQLArray, toSQLStructpublic static final String $WHERE
public static final String $OR
public static final String $SORT
public static final String $LIMIT
public static final String $OFFSET
public static final String $UPSERT
public static final String $LIKE
public static final String $SIMILAR
public static final String $CONTAIN
public static final String $ANY
public static final String $BETWEEN
public static final String $IN
public static final String $GT
public static final String $GTE
public static final String $LT
public static final String $LTE
public static final String $NE
public static final String $SUM
public static final String $COUNT
public static final String $MIN
public static final String $MAX
public static final String $AVG
public static final String $GROUP
public static final String $MULTIPLY
public static final String $DIVIDE
public static final String $PLUS
public static final String $MINUS
public static final String $MODULE
public GenericDBHelper(String connectionString) throws IOException, SQLException, ClassNotFoundException, NamingException
public Object insert(String tableName, org.json.JSONObject obj) throws Exception
Exceptionpublic List<Object> insert(String tableName, org.json.JSONArray obj) throws Exception
Exceptionpublic int delete(String tableName, NameValuePair... params) throws Exception
Exceptionpublic int delete(String tableName, org.json.JSONObject jsonQuery) throws Exception
Exceptionpublic int update(String tableName, NameValuePair... params) throws Exception
Exceptionpublic int update(String tableName, org.json.JSONObject jsonQuery) throws Exception
Exceptionpublic org.json.JSONObject selectToJson(String tableName, NameValuePair... params) throws Exception
Exceptionpublic org.json.JSONObject selectToJson(String tableName, org.json.JSONObject jsonQuery) throws Exception
Exceptionpublic String executeToXml(String tableName, NameValuePair... params) throws Exception
Exceptionpublic String selectToXml(String tableName, org.json.JSONObject jsonQuery) throws Exception
Exceptionpublic String buildDeleteTSQL(String tableName, org.json.JSONObject jsonQuery) throws Exception
Exceptionpublic String buildWhereTSQL(HashMap<String,ColumnInfo> columnList, org.json.JSONObject jsonWhere)
public String buildSortTSQL(HashMap<String,ColumnInfo> columnList, org.json.JSONObject jsonSort)
public String buildInsertTSQL(String tableName, org.json.JSONArray obj) throws Exception
Exceptionpublic String buildUpdateTSQL(String tableName, org.json.JSONObject jsonQuery) throws Exception
ExceptionCopyright © 2016. All rights reserved.