Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.j256.ormlite.db;
 
 import java.util.List;
 
H2 database type information used to create the tables, etc..

Author(s):
graywatson
public class H2DatabaseType extends BaseDatabaseType implements DatabaseType {
	private final static String DATABASE_URL_PORTION = "h2";
	private final static String DRIVER_CLASS_NAME = "org.h2.Driver";
	public String getDriverUrlPart() {
	}
	}
	protected void appendBooleanType(StringBuilder sb) {
		sb.append("TINYINT(1)");
	}
	protected void appendObjectType(StringBuilder sb) {
		sb.append("BLOB");
	}
	protected void configureGeneratedId(StringBuilder sbFieldType fieldTypeList<StringstatementsBefore,
			List<StringadditionalArgsList<StringqueriesAfter) {
		sb.append("AUTO_INCREMENT ");
		configureId(sbfieldTypestatementsBeforeadditionalArgsqueriesAfter);
	}
New to GrepCode? Check out our FAQ X