com.silverpeas.form.dummy
Class DummyDataRecord

java.lang.Object
  extended by com.silverpeas.form.dummy.DummyDataRecord
All Implemented Interfaces:
DataRecord, Serializable
Direct Known Subclasses:
DummyFileDataRecord

public class DummyDataRecord
extends Object
implements DataRecord

A dummy DataRecord .

See Also:
Serialized Form

Constructor Summary
DummyDataRecord()
           
DummyDataRecord(Field field)
           
 
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()
           
 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 externalId)
          Gives an id to the data 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

DummyDataRecord

public DummyDataRecord()

DummyDataRecord

public DummyDataRecord(Field field)
Method Detail

getId

public String getId()
Returns the data record id.

Specified by:
getId in interface DataRecord
Returns:

setId

public void setId(String externalId)
Gives an id to the data record.

Specified by:
setId in interface DataRecord
Parameters:
externalId -

isNew

public boolean isNew()
Return true if this record has not been inserted in a RecordSet.

Specified by:
isNew in interface DataRecord
Returns:

getField

public Field getField(String fieldName)
Returns the named field.

Specified by:
getField in interface DataRecord
Parameters:
fieldName -
Returns:

getField

public Field getField(String fieldName,
                      int occurrence)
Specified by:
getField in interface DataRecord

getField

public Field getField(int fieldIndex)
Returns the field at the index position in the record.

Specified by:
getField in interface DataRecord
Parameters:
fieldIndex -
Returns:

getFieldNames

public String[] getFieldNames()
Specified by:
getFieldNames in interface DataRecord

getLanguage

public String getLanguage()
Specified by:
getLanguage in interface DataRecord

setLanguage

public void setLanguage(String language)
Specified by:
setLanguage in interface DataRecord

getValues

public Map<String,String> getValues(String language)
Specified by:
getValues in interface DataRecord


Copyright © 2016 Silverpeas. All Rights Reserved.