com.j256.ormlite.field.types.ByteType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ormlite-core Show documentation
Show all versions of ormlite-core Show documentation
Lightweight Object Relational Model (ORM) for persisting objects to SQL databases.
package com.j256.ormlite.field.types;
import com.j256.ormlite.field.SqlType;
/**
* Type that persists a byte primitive.
*
* @author graywatson
*/
public class ByteType extends ByteObjectType {
private static final ByteType singleTon = new ByteType();
public static ByteType getSingleton() {
return singleTon;
}
private ByteType() {
super(SqlType.BYTE, new Class[] { byte.class });
}
/**
* Here for others to subclass.
*/
protected ByteType(SqlType sqlType, Class[] classes) {
super(sqlType, classes);
}
@Override
public boolean isPrimitive() {
return true;
}
}