froehlich 01/11/17 09:30:01 Added: apps/db/src/java/org/apache/avalon/db/data/types Type.java Log: new type definition Revision Changes Path 1.1 jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/types/Type.java Index: Type.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE file. */ package org.apache.avalon.db.data.types; import org.apache.avalon.db.data.Row; import java.math.BigDecimal; /* Class type * * @author Gerhard Froehlich <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> * @version $Revision: 1.1 $ */ public interface Type { int PREC_INT = 1; int PREC_LONG = 2; int PREC_BIGDEC = 3; int PREC_FLOAT = 4; int PREC_SHORT = 5; int PREC_CONST = 6; int PREC_STRING = 7; int PREC_TIME = 8; int PREC_TIMESTAMP = 9; int PREC_DATE = 10; Integer toInteger(Row row); Long toLong(Row row); BigDecimal toBigDecimal(Row row); Float toFloat(Row row); Short toShort(Row row); String toString(Row row); int getPrecesion(); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
