List of usage examples for java.lang Byte Byte
@Deprecated(since = "9") public Byte(String s) throws NumberFormatException
From source file:net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetDb2LUW.CFInternetDb2LUWSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {/* ww w. ja va 2s. c om*/ byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFInternetDb2LUWSchema.class, "getNullableByte", e); } }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetMySql.CFInternetMySqlSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {/*from w w w. j a v a 2s. co m*/ byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFInternetMySqlSchema.class, "getNullableByte", e); } }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetOracle.CFInternetOracleSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {/*from ww w. j a v a2 s.com*/ byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFInternetOracleSchema.class, "getNullableByte", e); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstPgSql.CFAstPgSqlSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {//from ww w . ja v a2 s . c om byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFAstPgSqlSchema.class, "getNullableByte", e); } }
From source file:net.sf.jasperreports.engine.xml.JRXmlConstants.java
/** * @deprecated Replaced by {@link LineSpacingEnum}. *//*from w w w.j a va 2 s . c om*/ public static Map getLineSpacingMap() { if (lineSpacingMap == null) { Map map = new HashMap(8); map.put(LINE_SPACING_SINGLE, new Byte(JRTextElement.LINE_SPACING_SINGLE)); map.put(LINE_SPACING_1_1_2, new Byte(JRTextElement.LINE_SPACING_1_1_2)); map.put(LINE_SPACING_DOUBLE, new Byte(JRTextElement.LINE_SPACING_DOUBLE)); map.put(new Byte(JRTextElement.LINE_SPACING_SINGLE), LINE_SPACING_SINGLE); map.put(new Byte(JRTextElement.LINE_SPACING_1_1_2), LINE_SPACING_1_1_2); map.put(new Byte(JRTextElement.LINE_SPACING_DOUBLE), LINE_SPACING_DOUBLE); lineSpacingMap = Collections.unmodifiableMap(map); } return lineSpacingMap; }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstSybase.CFAstSybaseSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {//from ww w .j ava2s. c o m byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFAstSybaseSchema.class, "getNullableByte", e); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstMySql.CFAstMySqlSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {/*from w w w . j ava 2 s . c om*/ byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFAstMySqlSchema.class, "getNullableByte", e); } }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstDb2LUW.CFAstDb2LUWSchema.java
public static Byte getNullableByte(ResultSet reader, int colidx) { try {/*from ww w . ja v a 2 s. c o m*/ byte val = reader.getByte(colidx); if (reader.wasNull()) { return (null); } else { return (new Byte(val)); } } catch (SQLException e) { throw CFLib.getDefaultExceptionFactory().newDbException(CFAstDb2LUWSchema.class, "getNullableByte", e); } }
From source file:net.sf.json.TestJSONObject.java
public void testToBean_NumberBean() { JSONObject json = new JSONObject(); json.element("pbyte", new Byte((byte) 2)); json.element("pshort", new Short((short) 2)); json.element("pint", new Integer(2)); json.element("plong", new Long(2)); json.element("pfloat", new Float(2)); json.element("pdouble", new Double(2)); json.element("pbigint", new BigInteger("2")); json.element("pbigdec", new BigDecimal("2")); NumberBean bean = (NumberBean) JSONObject.toBean(json, NumberBean.class); assertEquals((byte) 2, bean.getPbyte()); assertEquals((short) 2, bean.getPshort()); assertEquals(2, bean.getPint());//from w w w .j av a 2 s.c o m assertEquals(2L, bean.getPlong()); assertEquals(2f, bean.getPfloat(), 0f); assertEquals(2d, bean.getPdouble(), 0d); assertEquals(new BigInteger("2"), bean.getPbigint()); assertEquals(new BigDecimal("2"), bean.getPbigdec()); }
From source file:net.sf.jasperreports.engine.xml.JRXmlConstants.java
/** * @deprecated Replaced by {@link LineDirectionEnum}. *///from w w w.j av a 2s . co m public static Map getDirectionMap() { if (directionMap == null) { Map map = new HashMap(6); map.put(DIRECTION_TOP_DOWN, new Byte(JRLine.DIRECTION_TOP_DOWN)); map.put(DIRECTION_BOTTOM_UP, new Byte(JRLine.DIRECTION_BOTTOM_UP)); map.put(new Byte(JRLine.DIRECTION_TOP_DOWN), DIRECTION_TOP_DOWN); map.put(new Byte(JRLine.DIRECTION_BOTTOM_UP), DIRECTION_BOTTOM_UP); directionMap = Collections.unmodifiableMap(map); } return directionMap; }