java.lang.Object
org.litebridge.orm.expression.AbstractAliasable
org.litebridge.orm.expression.AbstractColumnExpressionSpec
org.litebridge.orm.expression.function.scalar.SubstringSpec
- All Implemented Interfaces:
Aliasable,ColumnExpressionSpec,DelegateExpressionSpec,ExpressionSpec,StringTODelegateExpressionSpec,TypeOverride<String>,TypeOverrideExpressionSpec<String>
public final class SubstringSpec
extends AbstractColumnExpressionSpec
implements StringTODelegateExpressionSpec
SUBSTRING(): Returns a substring of a column's text.-
Field Summary
Fields inherited from class org.litebridge.orm.expression.AbstractColumnExpressionSpec
tableAliasFields inherited from class org.litebridge.orm.expression.AbstractAliasable
alias -
Constructor Summary
ConstructorsConstructorDescriptionSubstringSpec(ColumnExpressionSpec target, int start, @Nullable Integer length) -
Method Summary
Methods inherited from class org.litebridge.orm.expression.AbstractColumnExpressionSpec
as, getTableAliasMethods inherited from class org.litebridge.orm.expression.AbstractAliasable
getAlias, setAliasMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.litebridge.orm.expression.ColumnExpressionSpec
getTableAliasMethods inherited from interface org.litebridge.orm.expression.DelegateExpressionSpec
getColumn, setColumnMethods inherited from interface org.litebridge.orm.expression.StringTODelegateExpressionSpec
returnType
-
Constructor Details
-
SubstringSpec
- Parameters:
target- Target column expression to extract characters from.start- The starting position. The first character of a database string is always 1.length- The number of characters to return. Ifnull, the function extracts everything from the start position to the end of the text.
-
-
Method Details
-
target
Description copied from interface:DelegateExpressionSpecGets the target nested expression.- Specified by:
targetin interfaceDelegateExpressionSpec- Returns:
- the target nested expression.
-
setTableAlias
- Specified by:
setTableAliasin interfaceColumnExpressionSpec- Overrides:
setTableAliasin classAbstractColumnExpressionSpec
-
start
public int start() -
length
-
equals
- Overrides:
equalsin classAbstractAliasable
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAliasable
-
toString
-