public class JDBCCMPFieldBridge2 extends Object implements CMPFieldBridge
Constructor and Description |
---|
JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField,
JDBCCMPFieldBridge2 relatedPKField) |
JDBCCMPFieldBridge2(JDBCStoreManager2 manager,
JDBCEntityBridge2 entity,
JDBCCMPFieldMetaData metadata,
int rowIndex) |
Modifier and Type | Method and Description |
---|---|
String |
getColumnName() |
String |
getFieldName()
Gets the name of this field.
|
Class |
getFieldType() |
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 primaryKey) |
int |
getRowIndex() |
Object |
getValue(CmpEntityBeanContext ctx)
Gets the value of this field for the specified instance context.
|
int |
getVersionIndex() |
void |
initInstance(CmpEntityBeanContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null).
|
void |
initVersion() |
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?
|
Object |
loadArgumentResults(ResultSet rs,
int parameterIndex) |
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.
|
int |
setArgumentParameters(PreparedStatement ps,
int parameterIndex,
Object arg) |
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.
|
Object |
setPrimaryKeyValue(Object primaryKey,
Object value) |
void |
setValue(CmpEntityBeanContext ctx,
Object value)
Sets the value of this field for the specified instance context.
|
void |
setValueInternal(CmpEntityBeanContext ctx,
Object value,
boolean makeDirty) |
public JDBCCMPFieldBridge2(JDBCStoreManager2 manager, JDBCEntityBridge2 entity, JDBCCMPFieldMetaData metadata, int rowIndex)
public JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField, JDBCCMPFieldBridge2 relatedPKField)
public void initVersion()
public int getVersionIndex()
public String getColumnName()
public Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException
IllegalArgumentException
public void setValueInternal(CmpEntityBeanContext ctx, Object value, boolean makeDirty)
public int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)
public Object loadArgumentResults(ResultSet rs, int parameterIndex) throws IllegalArgumentException
IllegalArgumentException
public int getRowIndex()
public JDBCEntityPersistenceStore getManager()
getManager
in interface JDBCFieldBridge
public void initInstance(CmpEntityBeanContext ctx)
JDBCFieldBridge
initInstance
in interface JDBCFieldBridge
public void resetPersistenceContext(CmpEntityBeanContext ctx)
JDBCFieldBridge
resetPersistenceContext
in interface JDBCFieldBridge
public int setInstanceParameters(PreparedStatement ps, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridge
setInstanceParameters
in interface JDBCFieldBridge
public Object getInstanceValue(CmpEntityBeanContext ctx)
JDBCFieldBridge
getInstanceValue
in interface JDBCFieldBridge
ctx
- the context for which this field's value should be fetchedpublic void setInstanceValue(CmpEntityBeanContext ctx, Object value)
JDBCFieldBridge
setInstanceValue
in interface JDBCFieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic int loadInstanceResults(ResultSet rs, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridge
loadInstanceResults
in interface JDBCFieldBridge
public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridge
loadArgumentResults
in interface JDBCFieldBridge
public boolean isDirty(CmpEntityBeanContext ctx)
JDBCFieldBridge
isDirty
in interface JDBCFieldBridge
public void setClean(CmpEntityBeanContext ctx)
JDBCFieldBridge
setClean
in interface JDBCFieldBridge
public boolean isCMPField()
isCMPField
in interface JDBCFieldBridge
public boolean isPrimaryKeyMember()
JDBCFieldBridge
isPrimaryKeyMember
in interface JDBCFieldBridge
public boolean isReadOnly()
JDBCFieldBridge
isReadOnly
in interface JDBCFieldBridge
public boolean isReadTimedOut(CmpEntityBeanContext ctx)
JDBCFieldBridge
isReadTimedOut
in interface JDBCFieldBridge
public boolean isLoaded(CmpEntityBeanContext ctx)
JDBCFieldBridge
isLoaded
in interface JDBCFieldBridge
public JDBCType getJDBCType()
JDBCFieldBridge
getJDBCType
in interface JDBCFieldBridge
public Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException
getPrimaryKeyValue
in interface JDBCFieldBridge
IllegalArgumentException
public String getFieldName()
FieldBridge
getFieldName
in interface FieldBridge
public Object getValue(CmpEntityBeanContext ctx)
FieldBridge
getValue
in interface FieldBridge
ctx
- the context for which this field's value should be fetchedpublic void setValue(CmpEntityBeanContext ctx, Object value)
FieldBridge
setValue
in interface FieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic Class getFieldType()
getFieldType
in interface CMPFieldBridge
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.