|
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.DBCFirebird
provides methods for doing some special things about Firebird.
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:
INTEGERNUMERICTIMESTAMPVARCHAR
| Constructor Summary | |
DBCFirebird(Connection con)
initializes a new instance of DBCFirebird. |
|
| Method Summary | |
int |
callDBINTEGERFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
int iDefaultValue)
Execute a function with a variable amount of parameters. |
BigDecimal |
callDBNUMERICFunction(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. |
Date |
callDBTIMESTAMPFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
Date dDefaultValue)
Execute a function with a variable amount of parameters. |
String |
callDBVARCHARFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
String strDefaultValue)
Execute a function with a variable amount of parameters. |
static String |
formatTimeStampParam(Date dValue)
format a java.util.Date to a String that can be used by Firebird's timestamp. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBCFirebird(Connection con)
initializes a new instance of DBCFirebird.
con - a valid database connection| Method Detail |
public static final String formatTimeStampParam(Date dValue)
format a java.util.Date to a String that can be used by Firebird's timestamp.
dValue - java.util.Date that should be formatted into
Firebird's Timestamp
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
SQLException - if an error occured
public int callDBINTEGERFunction(String strFunctionName,
Object[] oaParameters,
String strDBPrefix,
int iDefaultValue)
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 nulliDefaultValue - default value for returning
SQLException - if an error occured
public Date callDBTIMESTAMPFunction(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 for returning
SQLException - if an error occured
public String callDBVARCHARFunction(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 for returning
SQLException - if an error occured
public BigDecimal callDBNUMERICFunction(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 for returning
SQLException - if an error occured
|
software.glawar.at | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||