T - the type of data stored in the repository.public static interface AbstractQueryContainerProvider.Repository<T>
| 限定符和类型 | 方法和说明 |
|---|---|
Class<?> |
getEntityType()
Returns the entity type of the stored data.
|
String |
getKeyProperty()
Returns the key property for the data stored in the repository.
|
String |
getTableName()
Returns the name of the table where the data is stored.
|
T |
getTarget()
Returns the target object stored in the repository.
|
String |
propertyToColumn(String property,
String defaultValue)
Converts a property name to its corresponding column name.
|
String |
propertyToQueryColumn(String property,
String defaultValue)
Converts a property name to its corresponding query column name.
|
T getTarget()
String getTableName()
Class<?> getEntityType()
String getKeyProperty()
String propertyToColumn(String property, String defaultValue)
userName -> user_name
userAge -> user_age
id -> id as id
property - the property to convert.defaultValue - the default value to return if no matching column is found.String propertyToQueryColumn(String property, String defaultValue)
userName -> user_name as userName
userAge -> user_age as userAge
id -> id as id
property - the property to convert.defaultValue - the default value to return if no matching query column is found.Copyright © 2024. All rights reserved.