Record Class Translation
java.lang.Object
java.lang.Record
org.huiche.core.dialect.Translation
- Record Components:
sql- 翻译后的sql(带有参数时会带有?)params- 翻译后的参数,不会为null,如果实际没有参数会返回长度为0的list
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTranslation(String sql) 只有sql的构造Translation(String sql, List<?> params) 默认构造, 添加校验 -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<?> params()Returns the value of theparamsrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Translation
-
Translation
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sql
-
params
-