private Type getPrimitive(PrimitiveType primitiveType) {
            switch (primitiveType.getKind()) {
            case BOOLEAN: return Types.BOOLEAN_P;
            case BYTE: return Types.BYTE_P;
            case SHORT: return Types.SHORT_P;
            case INT: return Types.INT;
            case LONG: return Types.LONG_P;
            case CHAR: return Types.CHAR;
            case FLOAT: return Types.FLOAT_P;
            case DOUBLE: return Types.DOUBLE_P;
            default: return null;
            }
        }
{@code ExtendedTypeFactory} is a factory for APT-based inspection {@link Type} creation

@author tiwe
querydsl-apt/src/main/java/com/querydsl/apt/ExtendedTypeFactory.java