T
- the entity
interfaceK
- the primary key for the entitypublic interface EntityInfo<T extends RawEntity<K>,K>
RawEntity
Note this is different to TypeInfo
which describes what type a column is in the database.
EntityInfo
describes the table.Modifier and Type | Method and Description |
---|---|
Class<T> |
getEntityType() |
FieldInfo |
getField(Method method) |
FieldInfo |
getField(String fieldName) |
Set<String> |
getFieldNames() |
Set<FieldInfo> |
getFields() |
String |
getName() |
FieldInfo<K> |
getPrimaryKey() |
boolean |
hasAccessor(Method method) |
boolean |
hasField(String fieldName) |
boolean |
hasMutator(Method method) |
String getName()
Set<String> getFieldNames()
FieldInfo.getName()
FieldInfo getField(String fieldName)
fieldName
- the name of the database columnFieldInfo
associated with the fieldNameboolean hasAccessor(Method method)
method
- the method to test whether it is an accessortrue
if the method is an accessor for the entity
, false
otherwiseboolean hasMutator(Method method)
method
- the method to test whether it is an mutatortrue
if the method is an mutator for the entity
, false
otherwiseCopyright © 2007–2022 Atlassian. All rights reserved.