public abstract class PrivilegedStringTypeDescriptor
extends org.hibernate.type.descriptor.java.StringTypeDescriptor
PrivilegedStringType
.Constructor and Description |
---|
PrivilegedStringTypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.function.Function<java.lang.Long,java.lang.Boolean> |
getFilter() |
protected java.lang.String |
getFilterFailure() |
static void |
setFilter(PrivilegedStringTypeDescriptor.Filter filterType,
java.util.function.Function<java.lang.Long,java.lang.Boolean> filter)
Set the filter implementation for a value of
PrivilegedStringTypeDescriptor.Filter . |
<X> java.lang.String |
wrap(X stringLike,
org.hibernate.type.descriptor.WrapperOptions options) |
fromString, toString, unwrap
public static void setFilter(PrivilegedStringTypeDescriptor.Filter filterType, java.util.function.Function<java.lang.Long,java.lang.Boolean> filter)
PrivilegedStringTypeDescriptor.Filter
.
Note that only those for PrivilegedStringTypeDescriptor.Filter.FULL_ADMIN
and PrivilegedStringTypeDescriptor.Filter.RELATED_USER
are consulted.filterType
- a type of privileged string filterfilter
- the implementation for that filterprotected abstract java.util.function.Function<java.lang.Long,java.lang.Boolean> getFilter()
protected java.lang.String getFilterFailure()
public <X> java.lang.String wrap(X stringLike, org.hibernate.type.descriptor.WrapperOptions options)
wrap
in interface org.hibernate.type.descriptor.java.JavaTypeDescriptor<java.lang.String>
wrap
in class org.hibernate.type.descriptor.java.StringTypeDescriptor