|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataDefinition
Information about a makumba data definition as obtained from an MDD file or the structure of an MQL query result. This class is provided for makumba programs to be able to introspect makumba data structures. Such introspection is not needed usually, as the application programmer knows the makumba data structure.
Nested Class Summary | |
---|---|
static class |
DataDefinition.MultipleUniqueKeyDefinition
Data structure holding the definition of a mult-field unique key. |
static class |
DataDefinition.QueryFragmentFunction
|
Field Summary | |
---|---|
static String |
createName
|
static String |
modifyName
|
Method Summary | |
---|---|
void |
addField(FieldDefinition fd)
Add a new field definition. |
void |
addMultiUniqueKey(DataDefinition.MultipleUniqueKeyDefinition definition)
Add a multiple-feld uniqueness definition. |
void |
checkFieldNames(Dictionary<String,Object> d)
Checks whether all fieldnames exist in the database |
void |
checkUpdate(String fieldName,
Dictionary<String,Object> d)
Checks whether a record can be updated * |
String |
getCreationDateFieldName()
The name of the creation timestamp field, if any? |
FieldDefinition |
getFieldDefinition(int n)
the field with the respective index, null if such a field doesn't exist |
FieldDefinition |
getFieldDefinition(String name)
the field with the respective name, null if such a field doesn't exist |
Vector<String> |
getFieldNames()
the names of the fields declared in this data definition, in the order of declaration |
FieldDefinition |
getFieldOrPointedFieldDefinition(String name)
Returns a field definition that is either contained in this data definition, or in a pointed type. |
DataDefinition.QueryFragmentFunction |
getFunctionOrPointedFunction(String name)
Returns a query function that is either contained in this data definition, or in a pointed type. |
QueryFragmentFunctions |
getFunctions()
returns all functions in this data definition. |
String |
getIndexPointerFieldName()
The name of the index field (primary key), if any? |
String |
getLastModificationDateFieldName()
The name of the modification timestamp field, if any? |
DataDefinition.MultipleUniqueKeyDefinition[] |
getMultiFieldUniqueKeys()
Get all multiple-feld uniqueness definition. |
String |
getName()
name of this data definition |
FieldDefinition |
getParentField()
If this type is the data pointed to by a 1-1 pointer or subset, return the field definition in the main record, otherwise return null |
ArrayList<FieldDefinition> |
getReferenceFields()
Gets all the fields that are references to other tables, i.e. pointers and some types of sets. |
String |
getSetMemberFieldName()
The name of the set member (Pointer, Character or Integer), for set subtypes |
String |
getSetOwnerFieldName()
The name of the pointer to the main table, for set and internal set subtypes |
String |
getTitleFieldName()
The title field indicated, or the default one |
ArrayList<FieldDefinition> |
getUniqueFields()
Gets all the fields that have the unique modifier. |
ValidationDefinition |
getValidationDefinition()
Get the validation definition associated with this data definition. |
boolean |
hasMultiUniqueKey(String[] fieldNames)
Check whether this data definition has a multi-field uniqe key defined with the given fields. |
boolean |
isTemporary()
tells whether this data definition was generated temporarily to depict a query result as opposed to being read from an MDD file |
long |
lastModified()
Indicates when the data definition was modified the last time |
Field Detail |
---|
static final String createName
static final String modifyName
Method Detail |
---|
String getName()
Vector<String> getFieldNames()
FieldDefinition getFieldDefinition(String name)
FieldDefinition getFieldDefinition(int n)
FieldDefinition getFieldOrPointedFieldDefinition(String name)
DataDefinition.QueryFragmentFunction getFunctionOrPointedFunction(String name)
boolean isTemporary()
String getTitleFieldName()
String getIndexPointerFieldName()
String getCreationDateFieldName()
String getLastModificationDateFieldName()
FieldDefinition getParentField()
String getSetMemberFieldName()
String getSetOwnerFieldName()
void addField(FieldDefinition fd)
void checkFieldNames(Dictionary<String,Object> d)
void checkUpdate(String fieldName, Dictionary<String,Object> d)
long lastModified()
ValidationDefinition getValidationDefinition()
DataDefinition.MultipleUniqueKeyDefinition[] getMultiFieldUniqueKeys()
void addMultiUniqueKey(DataDefinition.MultipleUniqueKeyDefinition definition)
boolean hasMultiUniqueKey(String[] fieldNames)
ArrayList<FieldDefinition> getReferenceFields()
ArrayList<FieldDefinition> getUniqueFields()
QueryFragmentFunctions getFunctions()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |