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

com.j256.ormlite.field.types.NativeUuidType 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 java.util.UUID;

import com.j256.ormlite.field.SqlType;

/**
 * Type that persists a {@link UUID} object but as a UUID type which is supported by a couple of database-types.
 * 
 * @author graywatson
 */
public class NativeUuidType extends UuidType {

	private static final NativeUuidType singleTon = new NativeUuidType();

	public static NativeUuidType getSingleton() {
		return singleTon;
	}

	private NativeUuidType() {
		super(SqlType.UUID);
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy