|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.jdbc.GcBoundDataConversionImpl
public class GcBoundDataConversionImpl
This is our implementation of a helper to convert data to and from Oracle. It is externalized because it will likely be common that editing will need to be done on a per project basis.
Constructor Summary | |
---|---|
GcBoundDataConversionImpl()
|
Method Summary | ||
---|---|---|
void |
addBindVariableToStatement(java.sql.PreparedStatement preparedStatement,
java.lang.Object bindVar,
int index)
Add the value to the prepared statement, doing any casting, etc needed. |
|
|
getFieldValue(java.lang.Class<T> clazz,
java.lang.Object value)
Cast and manipulate the value returned from the database to get it into the appropriate value for assignment. |
|
void |
setFieldValue(java.lang.Object instance,
java.lang.reflect.Field field,
java.lang.Object value)
Set the value of a field, do any casting, etc needed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GcBoundDataConversionImpl()
Method Detail |
---|
public void addBindVariableToStatement(java.sql.PreparedStatement preparedStatement, java.lang.Object bindVar, int index)
addBindVariableToStatement
in interface GcBoundDataConversion
preparedStatement
- is the statement to add the value to.bindVar
- is the bindvar to add.index
- is the indes of the statement to add it to.public void setFieldValue(java.lang.Object instance, java.lang.reflect.Field field, java.lang.Object value)
setFieldValue
in interface GcBoundDataConversion
instance
- is the instance to set the value to.field
- is the field taking the value.value
- is the value to set.public <T> T getFieldValue(java.lang.Class<T> clazz, java.lang.Object value)
getFieldValue
in interface GcBoundDataConversion
T
- is the type to return.clazz
- is the type to return.value
- is the value to cast or manipulate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |