public class NewGenericDBHelper extends DBHelper
| Modifier and Type | Field and Description |
|---|---|
static String |
$GT |
static String |
$GTE |
static String |
$IN |
static String |
$LIKE |
static String |
$LIMIT |
static String |
$LT |
static String |
$LTE |
static String |
$OFFSET |
static String |
$OR |
static String |
$SIMILAR |
static String |
$SORT |
static String |
$WHERE |
comparableTypes, DBType, dbUrl, inputParameterList, likeableTypes, SPMetaInfo, statement| Constructor and Description |
|---|
NewGenericDBHelper(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) |
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, 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 $GT
public static final String $GTE
public static final String $LT
public static final String $LTE
public static final String $IN
public static final String $LIKE
public static final String $SIMILAR
public static final String $SORT
public static final String $LIMIT
public static final String $OFFSET
public NewGenericDBHelper(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.