All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.j256.ormlite.field.types.ShortType Maven / Gradle / Ivy

Go to download

Lightweight Object Relational Model (ORM) for persisting objects to SQL databases.

There is a newer version: 6.1
Show newest version
package com.j256.ormlite.field.types;

import com.j256.ormlite.field.SqlType;

/**
 * Type that persists a short primitive.
 * 
 * @author graywatson
 */
public class ShortType extends ShortObjectType {

	private static final ShortType singleTon = new ShortType();

	public static ShortType getSingleton() {
		return singleTon;
	}

	private ShortType() {
		super(SqlType.SHORT, new Class[] { short.class });
	}

	/**
	 * Here for others to subclass.
	 */
	protected ShortType(SqlType sqlType, Class[] classes) {
		super(sqlType, classes);
	}

	@Override
	public boolean isPrimitive() {
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy