org.hibernate.type.descriptor.java.MutabilityPlan Java Examples

The following examples show how to use org.hibernate.type.descriptor.java.MutabilityPlan. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractArrayTypeDescriptor.java    From teiid-spring-boot with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "serial" })
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #2
Source File: AbstractArrayTypeDescriptor.java    From JuniperBot with GNU General Public License v3.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(
            arrayObjectClass,
            (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
                private static final long serialVersionUID = 5441650086018349126L;

                @Override
                protected T deepCopyNotNull(Object value) {
                    return ArrayUtil.deepCopy(value);
                }
            }
    );
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #3
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #4
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #5
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #6
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    this(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
}
 
Example #7
Source File: AbstractArrayTypeDescriptor.java    From high-performance-java-persistence with Apache License 2.0 5 votes vote down vote up
public AbstractArrayTypeDescriptor(Class<T> arrayObjectClass) {
    super(arrayObjectClass, (MutabilityPlan<T>) new MutableMutabilityPlan<Object>() {
        @Override
        protected T deepCopyNotNull(Object value) {
            return ArrayUtil.deepCopy(value);
        }
    });
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #8
Source File: AbstractStandardBasicType.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected MutabilityPlan<T> getMutabilityPlan() {
	return javaTypeDescriptor.getMutabilityPlan();
}
 
Example #9
Source File: AdaptedImmutableType.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
@SuppressWarnings({ "unchecked" })
protected MutabilityPlan<T> getMutabilityPlan() {
	return ImmutableMutabilityPlan.INSTANCE;
}
 
Example #10
Source File: AttributeConverterTypeAdapter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected MutabilityPlan<T> getMutabilityPlan() {
	return mutabilityPlan;
}
 
Example #11
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
protected AbstractArrayTypeDescriptor(Class<T> arrayObjectClass, MutabilityPlan<T> mutableMutabilityPlan) {
    super(arrayObjectClass, mutableMutabilityPlan);
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #12
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
protected AbstractArrayTypeDescriptor(Class<T> arrayObjectClass, MutabilityPlan<T> mutableMutabilityPlan) {
    super(arrayObjectClass, mutableMutabilityPlan);
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #13
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
protected AbstractArrayTypeDescriptor(Class<T> arrayObjectClass, MutabilityPlan<T> mutableMutabilityPlan) {
    super(arrayObjectClass, mutableMutabilityPlan);
    this.arrayObjectClass = arrayObjectClass;
}
 
Example #14
Source File: AbstractArrayTypeDescriptor.java    From hibernate-types with Apache License 2.0 4 votes vote down vote up
protected AbstractArrayTypeDescriptor(Class<T> arrayObjectClass, MutabilityPlan<T> mutableMutabilityPlan) {
    super(arrayObjectClass, mutableMutabilityPlan);
    this.arrayObjectClass = arrayObjectClass;
}