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 boolean
equals(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.int
hashCode()
java.lang.String
toString()
-
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:
findAttribute
in interfaceEntityDescriptor
- Type Parameters:
T
- value type- Parameters:
name
- name of the attribute to search forincludeProtected
-true
to 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:
getAllAttributes
in interfaceEntityDescriptor
- Parameters:
includeProtected
- whentrue
then protected attributes are also included (prefixed by _).- Returns:
- all attributes of entity (including protected or not)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-