public interface JDBCFieldBridge extends FieldBridge
Modifier and Type | Method and Description |
---|---|
Object |
getInstanceValue(CmpEntityBeanContext ctx)
Gets the internal value of this field without user level checks.
|
JDBCType |
getJDBCType()
Gets the JDBC type of this field.
|
JDBCEntityPersistenceStore |
getManager() |
Object |
getPrimaryKeyValue(Object arg) |
void |
initInstance(CmpEntityBeanContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null).
|
boolean |
isCMPField() |
boolean |
isDirty(CmpEntityBeanContext ctx)
Has the value of this field changes since the last time clean was called.
|
boolean |
isLoaded(CmpEntityBeanContext ctx)
Has the data been loaded?
|
boolean |
isPrimaryKeyMember()
Is this field a member of the primary key.
|
boolean |
isReadOnly()
Is this field read only.
|
boolean |
isReadTimedOut(CmpEntityBeanContext ctx)
Has current data read timed out?
|
int |
loadArgumentResults(ResultSet rs,
int parameterIndex,
Object[] argumentRef)
Loads the value of this cmp field from result set into argument reference.
|
int |
loadInstanceResults(ResultSet rs,
int parameterIndex,
CmpEntityBeanContext ctx)
Loads the data from result set into the instance associated with
the specified context.
|
void |
resetPersistenceContext(CmpEntityBeanContext ctx)
Resets any persistence data maintained in the context.
|
void |
setClean(CmpEntityBeanContext ctx)
Mark this field as clean.
|
int |
setInstanceParameters(PreparedStatement ps,
int parameterIndex,
CmpEntityBeanContext ctx)
Sets the prepared statement parameters with the data from the
instance associated with the context.
|
void |
setInstanceValue(CmpEntityBeanContext ctx,
Object value)
Sets the internal value of this field without user level checks.
|
getFieldName, getValue, setValue
JDBCType getJDBCType()
boolean isPrimaryKeyMember()
boolean isReadOnly()
boolean isReadTimedOut(CmpEntityBeanContext ctx)
boolean isLoaded(CmpEntityBeanContext ctx)
void initInstance(CmpEntityBeanContext ctx)
void resetPersistenceContext(CmpEntityBeanContext ctx)
int setInstanceParameters(PreparedStatement ps, int parameterIndex, CmpEntityBeanContext ctx)
Object getInstanceValue(CmpEntityBeanContext ctx)
ctx
- the context for which this field's value should be fetchedvoid setInstanceValue(CmpEntityBeanContext ctx, Object value)
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldint loadInstanceResults(ResultSet rs, int parameterIndex, CmpEntityBeanContext ctx)
int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
boolean isDirty(CmpEntityBeanContext ctx)
void setClean(CmpEntityBeanContext ctx)
boolean isCMPField()
JDBCEntityPersistenceStore getManager()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.