Package cz.o2.proxima.core.repository
Class EntityDescriptorImpl
- java.lang.Object
-
- cz.o2.proxima.core.repository.EntityDescriptorImpl
-
- All Implemented Interfaces:
EntityDescriptor,java.io.Serializable
@Internal public class EntityDescriptorImpl extends java.lang.Object implements EntityDescriptor
Descriptor of entity.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.repository.EntityDescriptor
EntityDescriptor.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)<T> java.util.Optional<AttributeDescriptor<T>>findAttribute(java.lang.String name, boolean includeProtected)Find attribute based by name.java.util.List<AttributeDescriptor<?>>getAllAttributes(boolean includeProtected)List all attribute descriptors of given entity.inthashCode()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.repository.EntityDescriptor
findAttribute, getAllAttributes, getAttribute, getAttribute, getName, isSystemEntity, isTransactional
-
-
-
-
Method Detail
-
findAttribute
public <T> java.util.Optional<AttributeDescriptor<T>> findAttribute(java.lang.String name, boolean includeProtected)
Find attribute based by name.- Specified by:
findAttributein interfaceEntityDescriptor- Type Parameters:
T- value type- Parameters:
name- name of the attribute to search forincludeProtected-trueto allow search for protected fields (prefixed by _).- Returns:
- optional found attribute descriptor
-
getAllAttributes
public java.util.List<AttributeDescriptor<?>> getAllAttributes(boolean includeProtected)
List all attribute descriptors of given entity.- Specified by:
getAllAttributesin interfaceEntityDescriptor- Parameters:
includeProtected- whentruethen protected attributes are also included (prefixed by _).- Returns:
- all attributes of entity (including protected or not)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-