org.jboss.ejb.plugins.cmp.jdbc2.schema
Class EntityTable.Row

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc2.schema.EntityTable.Row
Enclosing class:
EntityTable (src)

public class EntityTable.Row
extends java.lang.Object


Constructor Summary
EntityTable.Row(EntityTable.View (src)  view)
           
EntityTable.Row(EntityTable.View (src)  view, java.lang.Object[] fields, java.lang.Object[] relations)
           
 
Method Summary
 void cacheRelations(int index, Cache.CacheLoader (src)  loader)
           
 void delete()
           
 void flush()
           
 java.lang.Object getFieldValue(int i)
           
 java.lang.Object getPk()
           
 void insert(java.lang.Object pk)
           
 boolean isDirty()
           
 void loadCachedRelations(int index, Cache.CacheLoader (src)  loader)
           
 void nonNullForeignKey(EntityTable.ForeignKeyConstraint (src)  constraint)
           
 void nullForeignKey(EntityTable.ForeignKeyConstraint (src)  constraint)
           
 void setDirty()
           
 void setDirtyRelations()
           
 void setFieldValue(int i, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityTable.Row

public EntityTable.Row(EntityTable.View (src)  view)

EntityTable.Row

public EntityTable.Row(EntityTable.View (src)  view,
                       java.lang.Object[] fields,
                       java.lang.Object[] relations)
Method Detail

getPk

public java.lang.Object getPk()

loadCachedRelations

public void loadCachedRelations(int index,
                                Cache.CacheLoader (src)  loader)

cacheRelations

public void cacheRelations(int index,
                           Cache.CacheLoader (src)  loader)

insert

public void insert(java.lang.Object pk)
            throws DuplicateKeyException (src) 
Throws:
DuplicateKeyException (src)

getFieldValue

public java.lang.Object getFieldValue(int i)

setFieldValue

public void setFieldValue(int i,
                          java.lang.Object value)

isDirty

public boolean isDirty()

setDirty

public void setDirty()

setDirtyRelations

public void setDirtyRelations()

delete

public void delete()

nullForeignKey

public void nullForeignKey(EntityTable.ForeignKeyConstraint (src)  constraint)

nonNullForeignKey

public void nonNullForeignKey(EntityTable.ForeignKeyConstraint (src)  constraint)

flush

public void flush()
           throws java.sql.SQLException,
                  DuplicateKeyException (src) 
Throws:
java.sql.SQLException
DuplicateKeyException (src)