Add javadocs

This commit is contained in:
Timo Westkämper 2013-10-07 22:16:13 +03:00
parent 123f44eeee
commit 239d1a4587
7 changed files with 24 additions and 6 deletions

View File

@ -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};

View File

@ -21,6 +21,8 @@ import java.sql.Types;
import java.util.Calendar;
/**
* CalendarType maps Calendar to Timestamp on the JDBC level
*
* @author tiwe
*
*/

View File

@ -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) {

View File

@ -23,6 +23,8 @@ import java.util.regex.Pattern;
import javax.annotation.Nullable;
/**
* LocaleType maps Locale to String on the JDBC level
*
* @author tiwe
*
*/

View File

@ -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
*
*/

View File

@ -21,6 +21,8 @@ import java.sql.Types;
import javax.annotation.Nullable;
/**
* TrueFalseType maps Boolean to 'T'/'F' on the JDBC level
*
* @author tiwe
*
*/

View File

@ -21,6 +21,8 @@ import java.sql.Types;
import javax.annotation.Nullable;
/**
* YesNoType maps Boolean to 'Y'/'N' on the JDBC level
*
* @author tiwe
*
*/