| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface EntityType
| Method Summary | ||
|---|---|---|
|  void | add(de.espirit.or.schema.EntityTypeListener listener) | |
|  boolean | containsAttribute(String name) | |
|  ComposedAttribute | createComposedAttribute(String name,
                        EntityType targetType,
                        ComposedAttribute.Relation type,
                        String opposedName)Create a composed attribute with the given name. | |
| 
 | createSimpleAttribute(String name,
                      Class<T> type)Create a simple attribute with the given nameandtype. | |
|  Attribute<?> | getAttribute(String name)Return the attribute with the given name. | |
| 
 | getAttribute(String name,
             Class<T> type) | |
|  Collection<String> | getAttributeNames()Return a name list of all declared attributes. | |
|  Collection<? extends Attribute<?>> | getAttributes()Return all declared attributes by this entity type. | |
|  String | getAvailableAttributeName(String name) | |
|  de.espirit.or.schema.Key | getKey() | |
|  String | getName()Returns the name of this entity type. | |
|  de.espirit.or.schema.Table | getTable() | |
|  EntityValidator | getValidator() | |
|  boolean | isComposedAttribute(String name) | |
|  boolean | isSimpleAttribute(String name) | |
|  boolean | isValid(Entity object) | |
|  void | remove(de.espirit.or.schema.EntityTypeListener listener) | |
|  void | removeAttribute(String name)Deletes the given attribute namefrom this entity type. | |
|  void | setName(String name)Set the name of this entity type to name. | |
| Method Detail | 
|---|
<T> de.espirit.or.schema.SimpleAttribute<T> createSimpleAttribute(@NotNull
                                                                  String name,
                                                                  @NotNull
                                                                  Class<T> type)
                                                              throws de.espirit.or.SchemaException
name and type.
de.espirit.or.SchemaException
ComposedAttribute createComposedAttribute(String name,
                                          @NotNull
                                          EntityType targetType,
                                          @NotNull
                                          ComposedAttribute.Relation type,
                                          String opposedName)
                                          throws de.espirit.or.SchemaException
name.
de.espirit.or.SchemaException
boolean containsAttribute(@NotNull
                          String name)
String getName()
void setName(@NotNull
             String name)
name.
Collection<? extends Attribute<?>> getAttributes()
Collection<String> getAttributeNames()
@Nullable
Attribute<?> getAttribute(@NotNull
                                   String name)
name.
@Nullable
<T> Attribute<T> getAttribute(@NotNull
                                       String name,
                                       @NotNull
                                       Class<T> type)
                          throws de.espirit.or.SchemaException
de.espirit.or.SchemaException@Nullable EntityValidator getValidator()
boolean isValid(Entity object)
                throws de.espirit.or.ORException
de.espirit.or.ORExceptionde.espirit.or.schema.Table getTable()
de.espirit.or.schema.Key getKey()
String getAvailableAttributeName(String name)
void removeAttribute(String name)
name from this entity type. If the attribute is a main attribute in an
 1:1 or 1:n relation then the opposed attribute will be removed from the target entity type.
boolean isSimpleAttribute(String name)
boolean isComposedAttribute(String name)
void add(de.espirit.or.schema.EntityTypeListener listener)
void remove(de.espirit.or.schema.EntityTypeListener listener)
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||