Class LpadRpadPadEmulation

java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.dialect.function.LpadRpadPadEmulation
All Implemented Interfaces:
SqmFunctionDescriptor

public class LpadRpadPadEmulation extends AbstractSqmFunctionDescriptor
HQL function inspired by the ANSI SQL trim function, with a funny syntax involving a TrimSpec. Emulated using rpad() and lpad() or by equivalent emulations of those functions.

For example, pad(text with 5 leading ' ').