Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » sql » [javadoc | source]
org.apache.openjpa.jdbc.sql
public class: PrimaryRow [javadoc | source]
java.lang.Object
   RowImpl
      org.apache.openjpa.jdbc.sql.PrimaryRow
Primary table row that tracks foreign keys and auto-inc columns.
Constructor:
 public PrimaryRow(Table table,
    int action,
    OpenJPAStateManager owner) 
    Constructor; supply table and action.
 protected PrimaryRow(Column[] cols,
    int action,
    OpenJPAStateManager owner) 
Method from org.apache.openjpa.jdbc.sql.PrimaryRow Summary:
clearForeignKey,   clearRelationId,   copyInto,   generateSQL,   getFailedObject,   getForeignKeyIO,   getForeignKeySet,   getForeignKeyWhere,   getIndex,   getPrimaryKey,   getRelationIdCallback,   getRelationIdSet,   isDependent,   newInstance,   setDependent,   setFailedObject,   setForeignKey,   setForeignKey,   setIndex,   setObject,   setPrimaryKey,   setPrimaryKey,   setRelationId,   whereForeignKey,   wherePrimaryKey
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.sql.PrimaryRow Detail:
 public  void clearForeignKey(ForeignKey fk) throws SQLException 
 public  void clearRelationId(Column col) throws SQLException 
 public  void copyInto(RowImpl row,
    boolean whereOnly) 
 protected String generateSQL(DBDictionary dict) 
 public Object getFailedObject() 
 public ColumnIO getForeignKeyIO(ForeignKey fk) 
    Return the I/O information for the given set foreign key.
 public OpenJPAStateManager getForeignKeySet(ForeignKey fk) 
    Return the value for the given foreign key. Values not needed for constraint analyses are not recorded.
 public OpenJPAStateManager getForeignKeyWhere(ForeignKey fk) 
    Return the value for the given foreign key. Values not needed for constraint analyses are not recorded.
 public int getIndex() 
    The index of this row in ordered row list.
 public OpenJPAStateManager getPrimaryKey() 
 public RelationId getRelationIdCallback(Column col) 
    Return the recorded callbacks for the given relation id column. Only values that are dependent on a new, unflushed auto-assigned instance are recorded.
 public OpenJPAStateManager getRelationIdSet(Column col) 
    Return the recorded value for the given relation id column. Only values that are dependent on a new, unflushed auto-assigned instance are recorded.
 public boolean isDependent() 
    Mark this row as dependent on some other row.
 protected RowImpl newInstance(Column[] cols,
    int action) 
 public  void setDependent(boolean dependent) 
    Mark this row as dependent on some other row.
 public  void setFailedObject(Object failed) 
 public  void setForeignKey(ForeignKey fk,
    OpenJPAStateManager sm) throws SQLException 
 public  void setForeignKey(ForeignKey fk,
    ColumnIO io,
    OpenJPAStateManager sm) throws SQLException 
 public  void setIndex(int idx) 
    The index of this row in ordered row list.
 protected  void setObject(Column col,
    Object val,
    int metaType,
    boolean overrideDefault) throws SQLException 
 public  void setPrimaryKey(OpenJPAStateManager sm) throws SQLException 
 public  void setPrimaryKey(ColumnIO io,
    OpenJPAStateManager sm) 
 public  void setRelationId(Column col,
    OpenJPAStateManager sm,
    RelationId rel) throws SQLException 
 public  void whereForeignKey(ForeignKey fk,
    OpenJPAStateManager sm) throws SQLException 
 public  void wherePrimaryKey(OpenJPAStateManager sm) throws SQLException