|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.record.GenericDataRecord
public class GenericDataRecord
A GenericDataRecord use a Field[] and a GenericRecordTemplate.
Constructor Summary | |
---|---|
GenericDataRecord(RecordTemplate template)
A GenericDataRecord is built from a RecordTemplate. |
Method Summary | |
---|---|
Field |
getField(int fieldIndex)
Returns the field at the index position in the record. |
Field |
getField(String fieldName)
Returns the named field. |
Field |
getField(String fieldName,
int occurrence)
|
String[] |
getFieldNames()
|
Field[] |
getFields()
Returns all the fields |
String |
getId()
Returns the data record id. |
String |
getLanguage()
|
Map<String,String> |
getValues(String language)
|
boolean |
isNew()
Return true if this record has not been inserted in a RecordSet. |
void |
setId(String id)
Gives an id to the record. |
void |
setLanguage(String language)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericDataRecord(RecordTemplate template) throws FormException
FormException
Method Detail |
---|
public String getId()
getId
in interface DataRecord
public void setId(String id)
setId
in interface DataRecord
public Field[] getFields()
public Field getField(String fieldName) throws FormException
getField
in interface DataRecord
FormException
public Field getField(String fieldName, int occurrence)
getField
in interface DataRecord
public Field getField(int fieldIndex) throws FormException
getField
in interface DataRecord
FormException
public boolean isNew()
isNew
in interface DataRecord
public String[] getFieldNames()
getFieldNames
in interface DataRecord
public String getLanguage()
getLanguage
in interface DataRecord
public void setLanguage(String language)
setLanguage
in interface DataRecord
public Map<String,String> getValues(String language)
getValues
in interface DataRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |