public interface RecordDefinition extends RecordStoreSchemaElement, MapSerializer
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultValue(String fieldName,
Object defaultValue) |
Record |
createRecord() |
void |
delete(Record record) |
void |
destroy() |
CodeTable |
getCodeTableByColumn(String column) |
Object |
getDefaultValue(String fieldName) |
Map<String,Object> |
getDefaultValues() |
FieldDefinition |
getField(CharSequence name) |
FieldDefinition |
getField(int index) |
Class<?> |
getFieldClass(CharSequence name) |
Class<?> |
getFieldClass(int index) |
int |
getFieldCount()
Get the number of fields supported by the type.
|
int |
getFieldIndex(CharSequence name)
Get the index of the named field within the list of fields for the
type.
|
int |
getFieldLength(int index)
Get the maximum length of the field.
|
String |
getFieldName(int index)
Get the name of the field at the specified index.
|
List<String> |
getFieldNames()
Get the names of all the fields supported by the type.
|
List<FieldDefinition> |
getFields() |
int |
getFieldScale(int index)
Get the maximum number of decimal places of the field
|
String |
getFieldTitle(String fieldName) |
List<String> |
getFieldTitles() |
DataType |
getFieldType(CharSequence name) |
DataType |
getFieldType(int index)
Get the type name of the field at the specified index.
|
GeometryFactory |
getGeometryFactory() |
FieldDefinition |
getGeometryField() |
int |
getGeometryFieldIndex()
Get the index of the primary Geometry field.
|
List<Integer> |
getGeometryFieldIndexes()
Get the index of all Geometry fields.
|
String |
getGeometryFieldName()
Get the name of the primary Geometry field.
|
List<String> |
getGeometryFieldNames()
Get the name of the all Geometry fields.
|
FieldDefinition |
getIdField() |
int |
getIdFieldIndex()
Get the index of the Unique identifier field.
|
List<Integer> |
getIdFieldIndexes()
Get the index of all ID fields.
|
String |
getIdFieldName()
Get the name of the Unique identifier field.
|
List<String> |
getIdFieldNames()
Get the name of the all ID fields.
|
List<FieldDefinition> |
getIdFields() |
int |
getInstanceId() |
RecordDefinitionFactory |
getRecordDefinitionFactory() |
RecordFactory |
getRecordFactory() |
boolean |
hasField(CharSequence name)
Check to see if the type has the specified field name.
|
boolean |
isFieldDefinition(CharSequence name) |
boolean |
isFieldDefinition(int index)
Return true if a value for the field is required.
|
boolean |
isInstanceOf(RecordDefinition classDefinition) |
void |
setDefaultValues(Map<String,? extends Object> defaultValues) |
void |
setGeometryFactory(GeometryFactory geometryFactory) |
equalPath, getName, getPath, getRecordStore, getSchemaclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakcompareTotoMapRecord createRecord()
void delete(Record record)
void destroy()
FieldDefinition getField(CharSequence name)
FieldDefinition getField(int index)
Class<?> getFieldClass(CharSequence name)
Class<?> getFieldClass(int index)
int getFieldCount()
int getFieldIndex(CharSequence name)
name - The field name.int getFieldLength(int index)
index - The field index.String getFieldName(int index)
index - The field index.List<String> getFieldNames()
List<FieldDefinition> getFields()
int getFieldScale(int index)
index - The field index.DataType getFieldType(CharSequence name)
DataType getFieldType(int index)
index - The field index.GeometryFactory getGeometryFactory()
FieldDefinition getGeometryField()
int getGeometryFieldIndex()
List<Integer> getGeometryFieldIndexes()
String getGeometryFieldName()
List<String> getGeometryFieldNames()
FieldDefinition getIdField()
int getIdFieldIndex()
List<Integer> getIdFieldIndexes()
String getIdFieldName()
List<String> getIdFieldNames()
List<FieldDefinition> getIdFields()
int getInstanceId()
RecordDefinitionFactory getRecordDefinitionFactory()
RecordFactory getRecordFactory()
boolean hasField(CharSequence name)
name - The name of the field.boolean isFieldDefinition(CharSequence name)
boolean isFieldDefinition(int index)
index - The field index.boolean isInstanceOf(RecordDefinition classDefinition)
void setGeometryFactory(GeometryFactory geometryFactory)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.