|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.fingo.db.DatabaseOperations
info.fingo.db.DatabaseOperationsOracle
public class DatabaseOperationsOracle
Class for Oracle specific database operations.
| Field Summary |
|---|
| Fields inherited from class info.fingo.db.DatabaseOperations |
|---|
MSSQL_SUFFIX, ORACLE_SUFFIX |
| Constructor Summary | |
|---|---|
DatabaseOperationsOracle()
|
|
| Method Summary | |
|---|---|
protected void |
bindInputParameter(java.sql.PreparedStatement ps,
int type,
int index,
java.lang.Object value)
Binds a single parameter to its value in the given PreparedStatement |
protected void |
bindParameters(BaseCollection peer,
BaseEntity entity,
java.util.ArrayList<java.lang.String> names,
java.sql.PreparedStatement ps,
int initialIndex)
Binds parameters for the given PreparedStatement objects |
void |
bindResourceCallParams(java.sql.CallableStatement cs,
java.util.ArrayList<Parameter> params,
java.sql.Connection conn)
Binds parameters for a callable statement for a SQL statement taken from an external resource |
void |
bindResourceParams(java.sql.PreparedStatement ps,
java.util.ArrayList<Parameter> params,
java.sql.Connection conn)
Binds parameters for a prepared statement for a SQL statement taken from an external resource |
void |
mapAndSetCallOutParam(java.sql.CallableStatement cs,
Parameter p)
Maps an OUT parameter for the given CallableStatement |
BaseEntity |
mapResultSet(java.sql.ResultSet rs,
BaseCollection collection)
Maps the given result set to a BaseEntity object |
protected int |
mapToSpecificTypeNumber(Column.GenericTypes genericType)
Maps the given generic data type to its JDBC numeric value |
java.lang.Object |
save(BaseCollection peer,
BaseEntity bo,
java.sql.Connection conn)
Saves or updates the given BaseEntity object in the database |
| Methods inherited from class info.fingo.db.DatabaseOperations |
|---|
delete, deleteByPrimaryKey, execute, getColumn, getColumnForName, mapQuery, mapQuery, mapQuery, select, select, select, select, selectAll, selectAll, selectByPrimaryKey, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseOperationsOracle()
| Method Detail |
|---|
public BaseEntity mapResultSet(java.sql.ResultSet rs,
BaseCollection collection)
throws java.sql.SQLException
DatabaseOperations
mapResultSet in class DatabaseOperationsrs - The used ResultSet objectcollection - The used BaseCollection object
java.sql.SQLException
public java.lang.Object save(BaseCollection peer,
BaseEntity bo,
java.sql.Connection conn)
throws java.sql.SQLException,
java.io.IOException
DatabaseOperations
save in class DatabaseOperationspeer - The collection the BaseEntity object belongs tobo - The BaseEntity object to be savedconn - The used Connection object
java.sql.SQLException
java.io.IOException
protected void bindInputParameter(java.sql.PreparedStatement ps,
int type,
int index,
java.lang.Object value)
throws java.sql.SQLException
DatabaseOperations
bindInputParameter in class DatabaseOperationsps - The PreparedStatement object usedtype - Numeric representation of the parameter data typeindex - Index of the parameter in the prepared statementvalue - Value of the parameter
java.sql.SQLException
protected void bindParameters(BaseCollection peer,
BaseEntity entity,
java.util.ArrayList<java.lang.String> names,
java.sql.PreparedStatement ps,
int initialIndex)
throws java.sql.SQLException
DatabaseOperations
bindParameters in class DatabaseOperationspeer - The used BaseCollection objectentity - The used BaseEntity object from which parameter values are takennames - An ArrayList of parameters' namesps - The used PreparedStatement objectinitialIndex - The index with the parameters' binding shall start
java.sql.SQLException
public void bindResourceParams(java.sql.PreparedStatement ps,
java.util.ArrayList<Parameter> params,
java.sql.Connection conn)
throws java.sql.SQLException,
java.io.IOException
DatabaseOperations
bindResourceParams in class DatabaseOperationsps - The used PreparedStatement objectparams - An ArrayList of the parameters to be boundconn - The used Connection object
java.sql.SQLException
java.io.IOExceptionprotected int mapToSpecificTypeNumber(Column.GenericTypes genericType)
DatabaseOperations
mapToSpecificTypeNumber in class DatabaseOperations
public void bindResourceCallParams(java.sql.CallableStatement cs,
java.util.ArrayList<Parameter> params,
java.sql.Connection conn)
throws java.sql.SQLException,
java.io.IOException
DatabaseOperations
bindResourceCallParams in class DatabaseOperationscs - The used CallableStatement objectparams - An ArrayList of the parameters to be boundconn - The used Connection object
java.sql.SQLException
java.io.IOException
public void mapAndSetCallOutParam(java.sql.CallableStatement cs,
Parameter p)
throws java.sql.SQLException
DatabaseOperations
mapAndSetCallOutParam in class DatabaseOperationscs - The used CallableStatement objectp - The parameter to be set
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||