|
at.glawar GlawarDataAdapter [2006-07-04] |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.glawar.dbcommunication.DBCOracle
provides methods for doing some special things about oracle.
at the moment you can call procedures and functions whereas functions are supported that only returns ONE parameter and the parameter is of one of the following types:
DATENUMBERVARCHAR2
| Constructor Summary | |
DBCOracle(Connection con)
initializes a new instance of DBCOracle. |
|
| Method Summary | |
Date |
callDBDATEFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
Date dDefaultValue)
Execute a function with a variable amount of parameters. |
BigDecimal |
callDBNUMBERFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
BigDecimal bdDefaultValue)
Execute a function with a variable amount of parameters. |
void |
callDBProcedure(String strProcedureName,
Object[] oaParameters,
String strDBPrefix)
Calls a db-procedure with a variable amount of parameters. |
String |
callDBVARCHAR2unction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
String strDefaultValue)
Execute a function with a variable amount of parameters. |
static String |
formatSQLDDateParam(Date dValue)
format a java.util.Date to a String that can be used by Oracle. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBCOracle(Connection con)
initializes a new instance of DBCOracle.
con - connection for the oracle database| Method Detail |
public static final String formatSQLDDateParam(Date dValue)
format a java.util.Date to a String that can be used by Oracle.
dValue - java.util.Date that should be formatted into Oracle-format
public void callDBProcedure(String strProcedureName,
Object[] oaParameters,
String strDBPrefix)
throws SQLException
Calls a db-procedure with a variable amount of parameters.
strProcedureName - name of the procedure without database prefix
(e. g. oaParameters - Object-array containing all the parameters, can
be strDBPrefix - database Prefix, not null
Exception - if an error occured
SQLException
public BigDecimal callDBNUMBERFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
BigDecimal bdDefaultValue)
throws SQLException
Execute a function with a variable amount of parameters.
strFunctionName - name of the function without database prefix
(e. g. oaParameters - Object-array containing all the parameters, can
be strDBPrefix - database Prefix, not nullbdDefaultValue - default value
SQLException - if an error occured
public String callDBVARCHAR2unction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
String strDefaultValue)
throws SQLException
Execute a function with a variable amount of parameters.
strFunctionName - name of the function without database prefix
(e. g. oaParameters - Object-array containing all the parameters, can
be strDBPrefix - database Prefix, not nullstrDefaultValue - default value
SQLException - if an error occured
public Date callDBDATEFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
Date dDefaultValue)
throws SQLException
Execute a function with a variable amount of parameters.
strFunctionName - name of the function without database prefix
(e. g. oaParameters - Object-array containing all the parameters, can
be strDBPrefix - database Prefix, not nulldDefaultValue - default value
SQLException - if an error occured
|
software.glawar.at | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||