Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.UsageException


    public TextData getTextData(int pColumnID) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getTextData(int) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            return new TextData(determineStringToReturn(resultSet.getString(pColumnID), pColumnID));
        } catch (SQLException e) {
View Full Code Here


    public IntegerData getIntegerData(int pColumnID) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getTextData(String) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnID));
            return id;
View Full Code Here

    public IntegerData getIntegerData(String pColumnName) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnName);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getIntegerData(String) could not handle column " + pColumnName + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnName));
            return id;
View Full Code Here

     */
    public BooleanData getBooleanData(int pColumnID) {
        try {
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getBooleanData(int) could not handle column "
                                + pColumnID + ". Result =" + o);

            } else {
                return new BooleanData(this.mapBooleanFromDB(o));
View Full Code Here

     */
    public BooleanData getBooleanData(String pColumnName) {
        try {
            Object o = resultSet.getObject(pColumnName);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getBooleanData(int) could not handle column "
                                + pColumnName + ". Result =" + o);

            } else {
                return new BooleanData(this.mapBooleanFromDB(o));
View Full Code Here

    public DecimalData getDecimalData(int pColumnID) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getDecimalData(int) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            DecimalData dd = new DecimalData(resultSet.getDouble(pColumnID));
            return dd;
View Full Code Here

    public DecimalData getDecimalData(String pColumnName) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnName);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getDecimalData(String) could not handle column " + pColumnName + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            DecimalData dd = new DecimalData(resultSet.getDouble(pColumnName));
            return dd;
View Full Code Here

    public DoubleData getDoubleData(int pColumnID) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getDoubleData(int) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            DoubleData dd = new DoubleData(resultSet.getDouble(pColumnID));
            return dd;
View Full Code Here

    public DoubleData getDoubleData(String pColumnName) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnName);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getDoubleData(String) could not handle column " + pColumnName + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            DoubleData dd = new DoubleData(resultSet.getDouble(pColumnName));
            return dd;
View Full Code Here

    public DateTimeData getDateTimeData(int pColumnID) {
        try {
            // AD:22/07/2008 - Check if value is null and raise usage exception if it is
            Object o = resultSet.getObject(pColumnID);
            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getDateTimeData(int) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            DateTimeData dt = new DateTimeData(resultSet.getTimestamp(pColumnID));
            return dt;
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.UsageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.