// Path: src/main/java/us/monoid/psql/async/converter/Converter.java
// public abstract class Converter {
// 	public abstract String toString(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract boolean toBoolean(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract int toInt(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract long toLong(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract double toDouble(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract float toFloat(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract short toShort(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract char toChar(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract Object toObject(Buffer buffer, int pos, int len, boolean isBinary);
// }
// 
// Path: src/main/java/us/monoid/psql/async/converter/Converters.java
// public class Converters {
// 
// 	public static final StringConverter stringConverter = new StringConverter();
// 	public static final NumberConverter shortConverter = new NumberConverter(2);
// 	public static final NumberConverter intConverter = new NumberConverter(4);
// 	public static final NumberConverter longConverter = new NumberConverter(8);
// 	public static final JsonConverter jsonConverter = new JsonConverter();
// 
// }


import us.monoid.psql.async.converter.Converter;
import us.monoid.psql.async.converter.Converters;
package us.monoid.psql.async;


/** Description of a data type.
 * See Types for a list of known types. 
 * You can create your own user types as well. (later) TODO
 * @author beders
 *
 */
public class Type {
	final String name;
	final int oid; // internal identifier in the pg_type table and part of the RowDescription server message
	final int size;
// Path: src/main/java/us/monoid/psql/async/converter/Converter.java
// public abstract class Converter {
// 	public abstract String toString(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract boolean toBoolean(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract int toInt(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract long toLong(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract double toDouble(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract float toFloat(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract short toShort(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract char toChar(Buffer buffer, int pos, int len, boolean isBinary);
// 	public abstract Object toObject(Buffer buffer, int pos, int len, boolean isBinary);
// }
// 
// Path: src/main/java/us/monoid/psql/async/converter/Converters.java
// public class Converters {
// 
// 	public static final StringConverter stringConverter = new StringConverter();
// 	public static final NumberConverter shortConverter = new NumberConverter(2);
// 	public static final NumberConverter intConverter = new NumberConverter(4);
// 	public static final NumberConverter longConverter = new NumberConverter(8);
// 	public static final JsonConverter jsonConverter = new JsonConverter();
// 
// }


// Path: src/main/java/us/monoid/psql/async/Type.java
import us.monoid.psql.async.converter.Converter;
import us.monoid.psql.async.converter.Converters;

package us.monoid.psql.async;


/** Description of a data type.
 * See Types for a list of known types. 
 * You can create your own user types as well. (later) TODO
 * @author beders
 *
 */
public class Type {
	final String name;
	final int oid; // internal identifier in the pg_type table and part of the RowDescription server message
	final int size;
	final Converter converter;