Servoy 5.x Public API

com.servoy.j2db.dataprocessing
Interface IRecord

All Superinterfaces:
com.servoy.j2db.dataprocessing.IRecordDeprecated

public interface IRecord
extends com.servoy.j2db.dataprocessing.IRecordDeprecated

The Record interface for business objects (table rows)

Since:
Servoy 5.0

Method Summary
 void addModificationListener(IModificationListener l)
          Add modification listener
 boolean existInDataSource()
          Check if this is a new not yet saved record
 IFoundSet getParentFoundSet()
          Get the foundset this record belongs to
 Object[] getPK()
          The the record identifier (primary key)
 IFoundSet getRelatedFoundSet(String relationName)
          Get a related foundset for this record
 Object getValue(String dataProviderID)
          Get a record value
 boolean has(String dataprovider)
          Returns true if the dataprovider can be resolved by this object.
 boolean isLocked()
          Check to see if locked
 void removeModificationListener(IModificationListener l)
          Remove modification listener
 Object setValue(String dataProviderID, Object value)
           
 boolean startEditing()
          Start the edit of a record, must be called before any setValue.
 
Methods inherited from interface com.servoy.j2db.dataprocessing.IRecordDeprecated
addModificationListner, existInDB, getRelatedFoundSet, removeModificationListner
 

Method Detail

addModificationListener

void addModificationListener(IModificationListener l)
Add modification listener

Parameters:
l - the listener

existInDataSource

boolean existInDataSource()
Check if this is a new not yet saved record

Returns:
exists in datasource status

getParentFoundSet

IFoundSet getParentFoundSet()
Get the foundset this record belongs to

Returns:
the foundset

getPK

Object[] getPK()
The the record identifier (primary key)

Returns:
the record PK

getRelatedFoundSet

IFoundSet getRelatedFoundSet(String relationName)
Get a related foundset for this record

Parameters:
relationName -
Returns:
the foundset

getValue

Object getValue(String dataProviderID)
Get a record value

Parameters:
dataProviderID -
Returns:
the value

has

boolean has(String dataprovider)
Returns true if the dataprovider can be resolved by this object.

Parameters:
dataprovider -
Returns:
true if the dataprovider can be resolved by this object.

isLocked

boolean isLocked()
Check to see if locked

Returns:
locked status

removeModificationListener

void removeModificationListener(IModificationListener l)
Remove modification listener

Parameters:
l - the listener

setValue

Object setValue(String dataProviderID,
                Object value)
Parameters:
dataProviderID - to set
value - new value
Returns:
the old value, or value if no change

startEditing

boolean startEditing()
Start the edit of a record, must be called before any setValue.

Returns:
true if successfull start of edit, since the record can be locked

Copyright © 2010 Servoy B.V.