Class EntityType
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.ComplexType
-
- org.apache.olingo.odata2.api.edm.provider.EntityType
-
public class EntityType extends ComplexType
Objects of this class represent an entity type
-
-
Constructor Summary
Constructors Constructor Description EntityType()
-
Method Summary
-
Methods inherited from class org.apache.olingo.odata2.api.edm.provider.ComplexType
getAnnotationAttributes, getAnnotationElements, getBaseType, getDocumentation, getMapping, getName, getProperties, isAbstract
-
-
-
-
Method Detail
-
isHasStream
public boolean isHasStream()
- Returns:
- boolean if this EntityType is a media resource
-
getCustomizableFeedMappings
public CustomizableFeedMappings getCustomizableFeedMappings()
- Returns:
CustomizableFeedMappingsof this entity type
-
getNavigationProperties
public List<NavigationProperty> getNavigationProperties()
- Returns:
- List<
NavigationProperty> of this entity type
-
setHasStream
public EntityType setHasStream(boolean hasStream)
Sets if thisEntityTypeis a media resource- Parameters:
hasStream- Se tem stream- Returns:
EntityTypefor method chaining,
-
setCustomizableFeedMappings
public EntityType setCustomizableFeedMappings(CustomizableFeedMappings customizableFeedMappings)
Sets theCustomizableFeedMappingsfor thisEntityType- Parameters:
customizableFeedMappings- Mapa- Returns:
EntityTypefor method chaining
-
setKey
public EntityType setKey(Key key)
Sets theKeyfor thisEntityType- Parameters:
key- Chave- Returns:
EntityTypefor method chaining
-
setNavigationProperties
public EntityType setNavigationProperties(List<NavigationProperty> navigationProperties)
Sets theNavigationPropertys for thisEntityType- Parameters:
navigationProperties- Propriedades- Returns:
EntityTypefor method chaining
-
setName
public EntityType setName(String name)
Description copied from class:ComplexTypeSets the name- Overrides:
setNamein classComplexType- Parameters:
name- Nome- Returns:
EntityTypefor method chaining
-
setBaseType
public EntityType setBaseType(FullQualifiedName baseType)
Description copied from class:ComplexTypeSets theFullQualifiedNameof the base type- Overrides:
setBaseTypein classComplexType- Parameters:
baseType- Tipo- Returns:
EntityTypefor method chaining
-
setAbstract
public EntityType setAbstract(boolean isAbstract)
Description copied from class:ComplexTypeSets if it is abstract- Overrides:
setAbstractin classComplexType- Parameters:
isAbstract- Se abstrato- Returns:
EntityTypefor method chaining
-
setProperties
public EntityType setProperties(List<Property> properties)
Description copied from class:ComplexTypeSets thePropertys- Overrides:
setPropertiesin classComplexType- Parameters:
properties- Prpriedades- Returns:
EntityTypefor method chaining
-
setMapping
public EntityType setMapping(Mapping mapping)
Description copied from class:ComplexTypeSets theMapping- Overrides:
setMappingin classComplexType- Parameters:
mapping- Mapa- Returns:
EntityTypefor method chaining
-
setDocumentation
public EntityType setDocumentation(Documentation documentation)
Description copied from class:ComplexTypeSets theDocumentation- Overrides:
setDocumentationin classComplexType- Parameters:
documentation- Documentação- Returns:
EntityTypefor method chaining
-
setAnnotationAttributes
public EntityType setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes)
Sets the collection ofAnnotationAttributefor thisEntityType- Overrides:
setAnnotationAttributesin classComplexType- Parameters:
annotationAttributes- Atributos- Returns:
EntityTypefor method chaining
-
setAnnotationElements
public EntityType setAnnotationElements(List<AnnotationElement> annotationElements)
Sets the collection ofAnnotationElementfor thisEntityType- Overrides:
setAnnotationElementsin classComplexType- Parameters:
annotationElements- Elementos- Returns:
EntityTypefor method chaining
-
getClone
public EntityType getClone()
-
showMetadata
public boolean showMetadata()
-
setShowMetadata
public void setShowMetadata(boolean showMetadata)
-
getJpql
public String getJpql()
-
setJpql
public void setJpql(String jpql)
-
-