Package com.landawn.abacus.parser
Class ParserUtil.EntityInfo
java.lang.Object
com.landawn.abacus.parser.ParserUtil.EntityInfo
- All Implemented Interfaces:
com.landawn.abacus.parser.JSONReader.SymbolReader
- Enclosing class:
- ParserUtil
public static class ParserUtil.EntityInfo
extends Object
implements com.landawn.abacus.parser.JSONReader.SymbolReader
-
Field Summary
Modifier and TypeFieldDescriptionfinal ImmutableMap<Class<? extends Annotation>,
Annotation> final String
final ImmutableList<ParserUtil.PropInfo>
final ImmutableList<String>
final boolean
final boolean
final ImmutableList<ParserUtil.PropInfo>
final ImmutableList<ParserUtil.PropInfo>
final ImmutableList<String>
final String
final u.Optional<String>
final com.landawn.abacus.type.Type<Object>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
finishEntityResult
(Object result) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) getPropInfo
(ParserUtil.PropInfo propInfoFromOtherEntity) Gets the prop info.getPropInfo
(String propName) Gets the prop info.getPropInfoQueue
(String propName) Gets the prop info queue.<T> T
getPropValue
(Object obj, String propName) Gets the prop value.int
hashCode()
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) readPropInfo
(char[] cbuf, int fromIndex, int toIndex) Read prop info.void
setPropValue
(Object obj, ParserUtil.PropInfo propInfoFromOtherEntity, Object propValue) boolean
setPropValue
(Object obj, ParserUtil.PropInfo propInfoFromOtherEntity, Object propValue, boolean ignoreUnmatchedProperty) void
setPropValue
(Object obj, String propName, Object propValue) boolean
setPropValue
(Object obj, String propName, Object propValue, boolean ignoreUnmatchedProperty) Sets the prop value.toString()
-
Field Details
-
clazz
-
simpleClassName
-
canonicalClassName
-
type
-
propInfoList
-
idPropInfoList
-
idPropNameList
-
readOnlyIdPropInfoList
-
readOnlyIdPropNameList
-
annotations
-
tableName
-
isImmutable
public final boolean isImmutable -
isMarkedToEntity
public final boolean isMarkedToEntity
-
-
Method Details
-
getPropInfo
Gets the prop info.- Specified by:
getPropInfo
in interfacecom.landawn.abacus.parser.JSONReader.SymbolReader
- Parameters:
propName
-- Returns:
-
getPropInfo
Gets the prop info.- Parameters:
propInfoFromOtherEntity
-- Returns:
-
getPropValue
Gets the prop value.- Type Parameters:
T
-- Parameters:
obj
-propName
-- Returns:
-
setPropValue
-
setPropValue
public boolean setPropValue(Object obj, String propName, Object propValue, boolean ignoreUnmatchedProperty) Sets the prop value.- Parameters:
obj
-propName
-propValue
-ignoreUnmatchedProperty
-
-
setPropValue
-
setPropValue
public boolean setPropValue(Object obj, ParserUtil.PropInfo propInfoFromOtherEntity, Object propValue, boolean ignoreUnmatchedProperty) -
getPropInfoQueue
Gets the prop info queue.- Parameters:
propName
-- Returns:
-
readPropInfo
Read prop info.- Specified by:
readPropInfo
in interfacecom.landawn.abacus.parser.JSONReader.SymbolReader
- Parameters:
cbuf
-fromIndex
-toIndex
-- Returns:
-
isAnnotationPresent
-
getAnnotation
-
createEntityResult
- Returns:
-
finishEntityResult
- Type Parameters:
T
-- Parameters:
result
-- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-