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

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

package com.j256.ormlite.field.types;

import com.j256.ormlite.field.SqlType;

/**
 * Type that persists a long primitive.
 * 
 * @author graywatson
 */
public class LongType extends LongObjectType {

	private static final LongType singleTon = new LongType();

	public static LongType getSingleton() {
		return singleTon;
	}

	private LongType() {
		super(SqlType.LONG, new Class[] { long.class });
	}

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy