站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

PersistentContext (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.cmp.jdbc2
Class PersistentContext

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc2.PersistentContext

public class PersistentContext
extends Object

Version:
$Revision: 1.4 $
Author:
Alexey Loubyansky

Constructor Summary
PersistentContext(JDBCEntityBridge2 entity, EntityTable.Row row)
           
 
Method Summary
 void cacheRelations(int cmrIndex, Cache.CacheLoader loader)
           
 void flush()
           
 JDBCCMRFieldBridge2.FieldState getCMRState(int cmrIndex)
           
 Object getFieldValue(int rowIndex)
           
 boolean isDirty()
           
 void loadCachedRelations(int cmrIndex, Cache.CacheLoader loader)
           
 void nonNullForeignKey(EntityTable.ForeignKeyConstraint constraint)
           
 void nullForeignKey(EntityTable.ForeignKeyConstraint constraint)
           
 void remove()
           
 void setCMRState(int cmrIndex, JDBCCMRFieldBridge2.FieldState state)
           
 void setDirty()
           
 void setFieldValue(int rowIndex, Object value)
           
 void setPk(Object pk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentContext

public PersistentContext(JDBCEntityBridge2 entity,
                         EntityTable.Row row)
Method Detail

getFieldValue

public Object getFieldValue(int rowIndex)

setFieldValue

public void setFieldValue(int rowIndex,
                          Object value)

setPk

public void setPk(Object pk)
           throws javax.ejb.DuplicateKeyException
Throws:
javax.ejb.DuplicateKeyException

isDirty

public boolean isDirty()

setDirty

public void setDirty()

remove

public void remove()

getCMRState

public JDBCCMRFieldBridge2.FieldState getCMRState(int cmrIndex)

setCMRState

public void setCMRState(int cmrIndex,
                        JDBCCMRFieldBridge2.FieldState state)

loadCachedRelations

public void loadCachedRelations(int cmrIndex,
                                Cache.CacheLoader loader)

cacheRelations

public void cacheRelations(int cmrIndex,
                           Cache.CacheLoader loader)

flush

public void flush()
           throws SQLException,
                  javax.ejb.DuplicateKeyException
Throws:
SQLException
javax.ejb.DuplicateKeyException

nullForeignKey

public void nullForeignKey(EntityTable.ForeignKeyConstraint constraint)

nonNullForeignKey

public void nonNullForeignKey(EntityTable.ForeignKeyConstraint constraint)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.