| Modifier and Type | Method and Description |
|---|---|
PersistenceFieldElement |
Model.getPersistenceField(String className,
String fieldName)
Returns the PersistenceFieldElement with the supplied fieldName found
in the supplied className.
|
protected PersistenceFieldElement |
Model.getPersistenceFieldInternal(String className,
String fieldName)
Returns the PersistenceFieldElement with the supplied fieldName found
in the supplied className.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Model.removeFieldElement(PersistenceFieldElement element)
Removes the specified PersistenceFieldElement from its declaring
class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RelationshipElement |
| Modifier and Type | Method and Description |
|---|---|
PersistenceFieldElement |
FieldElementHolder.getField(String name)
Returns the field with the supplied name from the collection of fields
maintained by this holder.
|
PersistenceFieldElement |
PersistenceClassElement.getField(String name)
Returns the field with the supplied name from the collection of fields
maintained by this holder.
|
PersistenceFieldElement |
PersistenceClassElement.Impl.getField(String name)
Find a field by name.
|
PersistenceFieldElement |
FieldGroupElement.getField(String name)
Returns the field with the supplied name from the collection of fields
maintained by this holder.
|
PersistenceFieldElement |
FieldGroupElement.Impl.getField(String name)
Find a field by name.
|
PersistenceFieldElement[] |
FieldElementHolder.getFields()
Returns the collection of fields maintained by this holder in the form
of an array.
|
PersistenceFieldElement[] |
PersistenceClassElement.getFields()
Returns the collection of fields maintained by this holder in the form
of an array.
|
PersistenceFieldElement[] |
PersistenceClassElement.Impl.getFields()
Get all fields.
|
PersistenceFieldElement[] |
FieldGroupElement.getFields()
Returns the collection of fields maintained by this holder in the form
of an array.
|
PersistenceFieldElement[] |
FieldGroupElement.Impl.getFields()
Get all fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FieldElementHolder.addField(PersistenceFieldElement field)
Add the supplied field to the collection of fields maintained by this
holder.
|
void |
PersistenceClassElement.addField(PersistenceFieldElement field)
Add the supplied field to the collection of fields maintained by this
holder.
|
void |
FieldGroupElement.addField(PersistenceFieldElement field)
Add the supplied field to the collection of fields maintained by this
holder.
|
void |
FieldElementHolder.addFields(PersistenceFieldElement[] fields)
Add the supplied fields to the collection of fields maintained by this
holder.
|
void |
PersistenceClassElement.addFields(PersistenceFieldElement[] fields)
Add the supplied fields to the collection of fields maintained by this
holder.
|
void |
FieldGroupElement.addFields(PersistenceFieldElement[] fields)
Add the supplied fields to the collection of fields maintained by this
holder.
|
void |
PersistenceClassElement.Impl.changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields.
|
void |
FieldGroupElement.Impl.changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields.
|
boolean |
FieldElementHolder.containsField(PersistenceFieldElement field)
Tests whether the supplied field is in the collection of fields
maintained by this holder.
|
boolean |
PersistenceClassElement.containsField(PersistenceFieldElement field)
Tests whether the supplied field is in the collection of fields
maintained by this holder.
|
boolean |
FieldGroupElement.containsField(PersistenceFieldElement field)
Tests whether the supplied field is in the collection of fields
maintained by this holder.
|
void |
FieldElementHolder.removeField(PersistenceFieldElement field)
Remove the supplied field from the collection of fields maintained by
this holder.
|
void |
PersistenceClassElement.removeField(PersistenceFieldElement field)
Remove the supplied field from the collection of fields maintained by
this holder.
|
void |
FieldGroupElement.removeField(PersistenceFieldElement field)
Remove the supplied field from the collection of fields maintained by
this holder.
|
void |
FieldElementHolder.removeFields(PersistenceFieldElement[] fields)
Removed the supplied fields from the collection of fields maintained
by this holder.
|
void |
PersistenceClassElement.removeFields(PersistenceFieldElement[] fields)
Removed the supplied fields from the collection of fields maintained
by this holder.
|
void |
FieldGroupElement.removeFields(PersistenceFieldElement[] fields)
Removed the supplied fields from the collection of fields maintained
by this holder.
|
void |
FieldElementHolder.setFields(PersistenceFieldElement[] fields)
Sets the collection of fields maintained by this holder to the contents
of the supplied array.
|
void |
PersistenceClassElement.setFields(PersistenceFieldElement[] fields)
Sets the collection of fields maintained by this holder to the contents
of the supplied array.
|
void |
FieldGroupElement.setFields(PersistenceFieldElement[] fields)
Sets the collection of fields maintained by this holder to the contents
of the supplied array.
|
| Modifier and Type | Method and Description |
|---|---|
PersistenceFieldElement |
FieldGroupElementImpl.getField(String name)
Find a field by name.
|
PersistenceFieldElement |
PersistenceClassElementImpl.getField(String name)
Find a field by name.
|
PersistenceFieldElement[] |
FieldGroupElementImpl.getFields()
Get all fields.
|
PersistenceFieldElement[] |
PersistenceClassElementImpl.getFields()
Get all fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FieldGroupElementImpl.changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields.
|
void |
PersistenceClassElementImpl.changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createClassExistenceComponent(String className,
PersistenceFieldElement relatedField)
Create a validation component which can check whether the class exists.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createClassPersistenceComponent(String className,
PersistenceFieldElement relatedField)
Create a validation component which can check the class persistence.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldBlobMappingComponent(PersistenceFieldElement field)
Create a validation component which can check whether the field is
mapped to a blob type and if so, whether it is a key field or belongs
to the default fetch group.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldCardinalityComponent(PersistenceFieldElement field)
Create a validation component which can check whether the cardinality
bounds are semantically valid given the relationship field type.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldConsistencyComponent(PersistenceFieldElement field)
Create a validation component which can check whether the field is
consistent (field in both models or relationship in both).
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldMappingComponent(PersistenceFieldElement field)
Create a validation component which can check whether the field is
unmapped.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldPersistenceComponent(PersistenceFieldElement field)
Create a validation component which can check whether the field is
persistent.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createFieldPersistenceTypeComponent(PersistenceFieldElement field)
Create a validation component which can check the persistence type
of the field (whether it is a relationship or not).
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createRelatedSchemaMatchesComponent(String relatedClass,
PersistenceFieldElement relatedField)
Create a validation component which can check whether the schema of
the related class matches that of the class we are checking.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createRelatedTableMatchesComponent(String relatedClass,
PersistenceFieldElement relatedField,
List tableNames,
String pairName)
Create a validation component which can check whether any of
the supplied tables of the related class (which includes primary
and secondary tables) contains the table of the column stored in
the relationship definition.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createSchemaExistenceComponent(String className,
PersistenceFieldElement relatedField)
Create a validation component which can check whether the schema of
the given class exists.
|
protected com.sun.jdo.api.persistence.model.util.ModelValidator.ValidationComponent |
ModelValidator.createTableExistenceComponent(String tableName,
PersistenceFieldElement relatedField)
Create a validation component which can check whether the given table
exists.
|
static void |
DumpMapping.printPersistenceFieldElements(int tabs,
PersistenceFieldElement[] fields) |
Copyright © 2013. All Rights Reserved.