|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.common.db.DotConnect
public class DotConnect
Description of the Class
| Constructor Summary | |
|---|---|
DotConnect()
|
|
| Method Summary | |
|---|---|
void |
addObject(java.lang.Object x)
|
void |
addParam(boolean x)
Adds a feature to the Param attribute of the dotConnect object |
void |
addParam(java.util.Date x)
Adds a date parameter to the prepared SQL statement. |
void |
addParam(double x)
Adds a double parameter to the prepared SQL statement. |
void |
addParam(int x)
This method adds an int parameter to the prepared SQL
statement. |
void |
addParam(long x)
Adds a long parameter to the prepared SQL statement. |
void |
addParam(java.lang.Object x)
|
void |
addParam(java.lang.String x)
This method adds a String parameter to the prepared SQL
statement. |
static java.lang.String |
bitAND(java.lang.String op1,
java.lang.String op2)
Returns the correct bit AND operation syntax for a particular RDBMS |
static java.lang.String |
bitNOT(java.lang.String op1)
Returns the correct bit XOR operation syntax for a particular RDBMS |
static java.lang.String |
bitOR(java.lang.String op1,
java.lang.String op2)
Returns the correct bit OR operation syntax for a particular RDBMS |
static java.lang.String |
bitXOR(java.lang.String op1,
java.lang.String op2)
Returns the correct bit XOR operation syntax for a particular RDBMS |
static java.lang.String |
concat(java.lang.String[] elements)
Returns the correct Concatenation SQL syntax for a particular RDBMS |
boolean |
executeStatement(java.lang.String sql)
|
boolean |
executeStatement(java.lang.String sql,
java.sql.Connection con)
|
int |
getInt(java.lang.String x)
|
int |
getMaxRows()
|
int |
getNumRows()
|
java.lang.Object |
getObject(java.lang.Object x)
|
java.lang.Object |
getObject(java.lang.String x)
|
java.lang.Object[] |
getObjectArray(java.lang.String ObjName)
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getObjectResults()
Deprecated. - loadResults as it doesn't swallow the excpetion. |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getObjectResults(java.lang.String dataSource)
Returns the object results. |
void |
getResult()
Deprecated. - Use loadResult instead as it throws the exception and doesn't swallow it Executes SQL, Pulls a result set, sets the rs and rsmd variables. |
void |
getResult(java.sql.Connection conn)
|
void |
getResult(java.lang.String dataSource)
|
java.util.ArrayList |
getResults()
Deprecated. - loadResults as it doesn't swallow the excpetion. |
java.util.ArrayList |
getResults(java.lang.String dataSource)
Returns the results. |
java.lang.String |
getSQL()
|
int |
getStartRow()
Returns the startRow. |
java.lang.String |
getString(java.lang.String x)
Returns a single result as a String. |
static int |
getUniqueID(java.lang.String type)
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
loadObjectResults()
Returns the object results. |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
loadObjectResults(java.sql.Connection conn)
Returns the object results. |
void |
loadResult()
|
void |
loadResult(java.sql.Connection conn)
|
java.util.ArrayList |
loadResults()
Returns the results. |
java.util.ArrayList |
loadResults(java.sql.Connection conn)
Returns the results. |
void |
setForceQuery(boolean force)
|
void |
setMaxRows(int x)
|
void |
setMaxRows(java.lang.String x)
|
void |
setSQL(java.lang.String x)
|
void |
setSQL(java.lang.String x,
int limit)
|
void |
setStartRow(int startRow)
Sets the startRow. |
void |
setStartRow(java.lang.String x)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DotConnect()
| Method Detail |
|---|
public void setForceQuery(boolean force)
public int getInt(java.lang.String x)
public void setMaxRows(int x)
public void setMaxRows(java.lang.String x)
public int getMaxRows()
public int getNumRows()
public java.lang.Object getObject(java.lang.String x)
public java.lang.Object getObject(java.lang.Object x)
public java.lang.Object[] getObjectArray(java.lang.String ObjName)
public void getResult(java.lang.String dataSource)
public void getResult(java.sql.Connection conn)
public void loadResult(java.sql.Connection conn)
throws DotDataException
DotDataException
public boolean executeStatement(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
public boolean executeStatement(java.lang.String sql,
java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLException
public void loadResult()
throws DotDataException
DotDataExceptionpublic void getResult()
public void setSQL(java.lang.String x)
public void setSQL(java.lang.String x,
int limit)
public java.lang.String getSQL()
public java.lang.String getString(java.lang.String x)
x - Description of Parameter
public static int getUniqueID(java.lang.String type)
public java.util.ArrayList loadResults(java.sql.Connection conn)
throws DotDataException
DotDataException
public java.util.ArrayList loadResults()
throws DotDataException
DotDataException
public java.util.ArrayList getResults()
throws DotDataException
DotDataException
public java.util.ArrayList getResults(java.lang.String dataSource)
throws DotDataException
DotDataExceptionpublic void setStartRow(int startRow)
startRow - The startRow to setpublic void setStartRow(java.lang.String x)
public int getStartRow()
public void addObject(java.lang.Object x)
public void addParam(java.lang.Object x)
public void addParam(boolean x)
x - The feature to be added to the Param attributepublic void addParam(int x)
int parameter to the prepared SQL
statement.
x - The feature to be added to the Param attributepublic void addParam(java.lang.String x)
String parameter to the prepared SQL
statement.
x - The feature to be added to the Param attributepublic void addParam(long x)
x - The feature to be added to the Param attributepublic void addParam(double x)
x - The feature to be added to the Param attributepublic void addParam(java.util.Date x)
x - The feature to be added to the Param attributepublic static java.lang.String concat(java.lang.String[] elements)
elements -
public static java.lang.String bitAND(java.lang.String op1,
java.lang.String op2)
elements -
public static java.lang.String bitOR(java.lang.String op1,
java.lang.String op2)
elements -
public static java.lang.String bitXOR(java.lang.String op1,
java.lang.String op2)
elements -
public static java.lang.String bitNOT(java.lang.String op1)
elements -
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> loadObjectResults(java.sql.Connection conn)
throws DotDataException
DotDataException
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> loadObjectResults()
throws DotDataException
DotDataException
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getObjectResults()
throws DotDataException
DotDataException
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getObjectResults(java.lang.String dataSource)
throws DotDataException
DotDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||