org.epics.ioc.db
Interface DBDataCreate


public interface DBDataCreate

Create DBData field implementations.

Author:
mrk

Method Summary
 PVArray createArrayData(DBData parent, Field field, int capacity, boolean capacityMutable)
          Create an implementation for an array field.
 DBData createData(DBData parent, Field field)
          Create implementation for all non-array fields except enum.
 DBData createEnumData(DBData parent, Field field, java.lang.String[] choice)
          Create an implementation for an enumerated field.
 DBRecord createRecord(java.lang.String recordName, DBDRecordType dbdRecordType)
          Create a record instance.
 

Method Detail

createData

DBData createData(DBData parent,
                  Field field)
Create implementation for all non-array fields except enum.

Parameters:
parent - The parent interface.
field - The reflection interface for the field
Returns:
The DBData implementation

createEnumData

DBData createEnumData(DBData parent,
                      Field field,
                      java.lang.String[] choice)
Create an implementation for an enumerated field.

Parameters:
field - The reflection interface for the field.
choice - The enum choices.
Returns:
The DBData implementation.

createArrayData

PVArray createArrayData(DBData parent,
                        Field field,
                        int capacity,
                        boolean capacityMutable)
Create an implementation for an array field.

Parameters:
field - The reflection interface for the field.
capacity - The default capacity for the field.
capacityMutable - Can the capacity be changed after initialization?
Returns:
The DBArray implementation.

createRecord

DBRecord createRecord(java.lang.String recordName,
                      DBDRecordType dbdRecordType)
Create a record instance.

Parameters:
recordName - The instance name.
dbdRecordType - The reflection interface for the record type.
Returns:
The interface for accessing the record instance.