public class Property extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
Property |
as(String alias) |
String |
getAlias() |
String |
getPropertyName() |
Class<?> |
getTable() |
String |
getTableAlias() |
static Property |
instance(String propertyName,
Class<?> table)
创建的此对象为原型对象
|
static Property |
instance(String propertyName,
Class<?> table,
boolean prototype) |
Property |
ta(String tableAlias)
设置表别名前缀
|
String |
toConditionSql(Table table)
返回作为条件的sql语句
|
String |
toProjectionSql(Table table)
返回映射sql语句,例:s.name as shopName
|
public static Property instance(String propertyName, Class<?> table)
propertyName - table - public static Property instance(String propertyName, Class<?> table, boolean prototype)
propertyName - table - prototype - prototype == true 时,调用as和ta方法时会重新创建一个相对应的Property对象public String getPropertyName()
public Class<?> getTable()
public String getTableAlias()
public String getAlias()
Copyright © 2016. All rights reserved.