|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.Fissures.seed.container.SeedObject
edu.iris.dmc.pdcc.container.PdccTableRecord
| Field Summary | |
PdccTableRecord |
parentTemp
|
| Constructor Summary | |
PdccTableRecord(java.lang.String tableName,
PdccTableInfo info)
construct with association to a database tablename and pointer to table information object. |
|
| Method Summary | |
void |
flush()
clear all table contents and reset update flags |
java.lang.String |
generateSQL()
generate an SQL string for updating the database returns an empty String if no operation is to take place |
java.lang.String |
getFieldName(int fieldNum)
Get the field name for the indicated db field number |
java.lang.Object |
getFieldVal(int fieldNum)
returns object at the Vector index for the field values. |
java.util.Vector |
getFieldValues()
Return a vector of objects representing the values stored in the table's fields |
int |
getLookupId()
return the lookupId of the Blockette that this object is associated with. |
int |
getNumFields()
get number of db fields for the table this object represents |
java.lang.String |
getOperation()
Get the current SQL operation for this table record. |
int |
getParent()
get the PKEY of this Record's parent record, which is in the FKEY field. |
int |
getPKey()
Get the assigned primary key id for this table record. |
int |
getSeq()
Get the current sequence number for this table record. |
PdccTableInfo |
getTableInfo()
Get table information lookup object that describes the schema this object associates to. |
java.lang.String |
getTableName()
return this object's associated db table name |
int |
getType()
return the blockette type that this table record is associated with. |
boolean |
isUpdated(int fieldNum)
Return true if the indicated db field number has been flagged for UPDATE to the db |
void |
setFieldVal(int fieldNum,
java.lang.String stringValue)
Set the indicated value, in string form, to the indicated db field |
void |
setLookupId(int lookupId)
set the lookup ID value for this table record indicating the blockette object this record is associated with. |
void |
setOperation(char c)
Set the current SQL operation for this table record, encoded as a single character. |
void |
setParent(int parentId,
java.lang.String parentTableName)
set this record's FKEY field to the PKEY value of this Record's parent record. |
void |
setPKey(int pKey)
Set the primary key id for this table record. |
void |
setSeq(int seqVal)
Set the current sequence number for this table record. |
void |
setUpdated(boolean flag)
mark all of the update boolean flags to the indicated value. |
void |
setUpdated(int fieldNum,
boolean flag)
externally mark the indicated field's update flag with the provided boolean flag. |
java.lang.String |
toString()
return the SQL string representation of this table record. |
| Methods inherited from class edu.iris.Fissures.seed.container.SeedObject |
compareTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public PdccTableRecord parentTemp
| Constructor Detail |
public PdccTableRecord(java.lang.String tableName,
PdccTableInfo info)
| Method Detail |
public java.lang.String generateSQL()
public java.lang.String getTableName()
public int getNumFields()
public PdccTableInfo getTableInfo()
public boolean isUpdated(int fieldNum)
fieldNum -
public void setUpdated(int fieldNum,
boolean flag)
throws java.lang.Exception
java.lang.Exception
public void setUpdated(boolean flag)
throws java.lang.Exception
java.lang.Exception
public java.lang.String getFieldName(int fieldNum)
throws PdccDbException
fieldNum - database field number which counts from 0
PdccDbExceptionpublic java.util.Vector getFieldValues()
public java.lang.Object getFieldVal(int fieldNum)
throws PdccDbException
PdccDbException
public void setFieldVal(int fieldNum,
java.lang.String stringValue)
throws PdccDbException
fieldNum - db field counting from 0stringValue - string representation of value to store
PdccDbException
public int getParent()
throws PdccDbException
PdccDbException
public void setParent(int parentId,
java.lang.String parentTableName)
throws PdccDbException
PdccDbException
public int getPKey()
throws PdccDbException
PdccDbException
public void setPKey(int pKey)
throws PdccDbException
pKey -
PdccDbException
public int getSeq()
throws PdccDbException
PdccDbException
public void setSeq(int seqVal)
throws PdccDbException
seqVal -
PdccDbExceptionpublic void setLookupId(int lookupId)
public java.lang.String getOperation()
public void setOperation(char c)
c - n=NONE, i=INSERT, u=UPDATE, d=DELETE
public void flush()
throws PdccDbException
PdccDbExceptionpublic int getType()
getType in class SeedObjectpublic java.lang.String toString()
toString in class SeedObjectpublic int getLookupId()
getLookupId in class SeedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||