mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Add javadocs
This commit is contained in:
parent
123f44eeee
commit
239d1a4587
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2011, Mysema Ltd
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -13,15 +13,21 @@
|
||||
*/
|
||||
package com.mysema.query.sql.types;
|
||||
|
||||
|
||||
/**
|
||||
* Common abstract superclass for Type implementations
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public abstract class AbstractType<T> implements Type<T> {
|
||||
|
||||
|
||||
private final int type;
|
||||
|
||||
|
||||
public AbstractType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public final int[] getSQLTypes() {
|
||||
return new int[]{type};
|
||||
|
||||
@ -21,6 +21,8 @@ import java.sql.Types;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
* CalendarType maps Calendar to Timestamp on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -22,13 +22,15 @@ import java.util.Currency;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* CurrencyType maps Currency to String on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
public class CurrencyType extends AbstractType<Currency> {
|
||||
|
||||
public CurrencyType() {
|
||||
super(Types.TIMESTAMP);
|
||||
super(Types.VARCHAR);
|
||||
}
|
||||
|
||||
public CurrencyType(int type) {
|
||||
|
||||
@ -23,6 +23,8 @@ import java.util.regex.Pattern;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* LocaleType maps Locale to String on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -21,6 +21,8 @@ import java.sql.Types;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* NumericBooleanType maps Boolean to 1/0 (Integer) on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -21,6 +21,8 @@ import java.sql.Types;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* TrueFalseType maps Boolean to 'T'/'F' on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
@ -21,6 +21,8 @@ import java.sql.Types;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* YesNoType maps Boolean to 'Y'/'N' on the JDBC level
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user