Package com.workingdogs.village

Examples of com.workingdogs.village.Value


            {
                if (!(columnNames[j].equalsIgnoreCase(USER_ID_COLUMN)
                        || columnNames[j].equalsIgnoreCase(OBJECT_DATA_COLUMN)))
                {
                    Object obj2 = null;
                    Value value = row.getValue(j + 1);
                    if (value.isByte())
                    {
                        obj2 = new Byte(value.asByte());
                    }
                    if (value.isBigDecimal())
                    {
                        obj2 = value.asBigDecimal();
                    }
                    if (value.isBytes())
                    {
                        obj2 = value.asBytes();
                    }
                    if (value.isDate())
                    {
                        obj2 = value.asDate();
                    }
                    if (value.isShort())
                    {
                        obj2 = new Short(value.asShort());
                    }
                    if (value.isInt())
                    {
                        obj2 = new Integer(value.asInt());
                    }
                    if (value.isLong())
                    {
                        obj2 = new Long(value.asLong());
                    }
                    if (value.isDouble())
                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        // JDK 1.3 has no Boolean.valueOf(boolean)
                        obj2 = new Boolean(value.asBoolean());
                    }
                    if (value.isString())
                    {
                        obj2 = value.asString();
                    }
                    if (value.isTime())
                    {
                        obj2 = value.asTime();
                    }
                    if (value.isTimestamp())
                    {
                        obj2 = value.asTimestamp();
                    }
                    if (value.isUtilDate())
                    {
                        obj2 = value.asUtilDate();
                    }
                    if (obj2 != null)
                    {
                        tempHash.put(columnNames[j], obj2);
                    }
View Full Code Here


    private Value getIdAsVillageValue(Connection connection, Object keyInfo)
        throws Exception
    {
        String tableName = SQLBuilder.getFullTableName(String.valueOf(keyInfo), name);
        String idSQL = dbAdapter.getIDMethodSQL(tableName);
        Value id = null;
        QueryDataSet qds = null;
        try
        {
            qds = new QueryDataSet(connection, idSQL);
            qds.fetchRecords(1);
View Full Code Here

     */
    private Value getIdAsVillageValue(Connection connection, Object keyInfo)
        throws Exception
    {
        String idSQL = dbAdapter.getIDMethodSQL(keyInfo);
        Value id = null;
        QueryDataSet qds = null;
        try
        {
            qds = new QueryDataSet(connection, idSQL);
            qds.fetchRecords(1);
View Full Code Here

        {
            if ( ! ( columnNames[j].equalsIgnoreCase( USER_ID_COLUMN )
                ||  columnNames[j].equalsIgnoreCase( OBJECT_DATA_COLUMN ) ))
            {
                Object obj2 = null;
                Value value = row.getValue(j+1);
                if (value.isByte()) obj2 = new Byte(value.asByte());
                if (value.isBigDecimal()) obj2 = value.asBigDecimal();
                if (value.isBytes()) obj2 = value.asBytes();
                if (value.isDate()) obj2 = value.asDate();
                if (value.isShort()) obj2 = new Short(value.asShort());
                if (value.isInt()) obj2 = new Integer(value.asInt());
                if (value.isLong()) obj2 = new Long(value.asLong());
                if (value.isDouble()) obj2 = new Double(value.asDouble());
                if (value.isFloat()) obj2 = new Float(value.asFloat());
                if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                if (value.isString()) obj2 = value.asString();
                if (value.isTime()) obj2 = value.asTime();
                if (value.isTimestamp()) obj2 = value.asTimestamp();
                if (value.isUtilDate()) obj2 = value.asUtilDate();
                if ( obj2 != null )
                    tempHash.put( columnNames[j], obj2 );
            }
        }
        obj.setPermStorage( tempHash );
View Full Code Here

        for( int j=0; j<columnNames.length; j++ )
        {
            if (! columnNames[j].equalsIgnoreCase( TURBINE_OBJECTDATA ) )
            {
                Object obj2 = null;
                Value value = row.getValue(j+1);
                if (value.isString())
                    obj2 = value.asString();
                else if (value.isBigDecimal())
                    obj2 = value.asBigDecimal();
                else if (value.isBytes())
                    obj2 = value.asBytes();
                else if (value.isDate())
                    obj2 = value.asDate();
                else if (value.isShort())
                    obj2 = new Short(value.asShort());
                else if (value.isInt())
                    obj2 = new Integer(value.asInt());
                else if (value.isLong())
                    obj2 = new Long(value.asLong());
                else if (value.isDouble())
                    obj2 = new Double(value.asDouble());
                else if (value.isFloat())
                    obj2 = new Float(value.asFloat());
                else if (value.isBoolean())
                    obj2 = new Boolean(value.asBoolean());
                else if (value.isTime())
                    obj2 = value.asTime();
                else if (value.isTimestamp())
                    obj2 = value.asTimestamp();
                else if (value.isUtilDate())
                    obj2 = value.asUtilDate();
                else if (value.isByte())
                    obj2 = new Byte(value.asByte());

                if ( obj2 != null )
                {
                    if (columnNames[j].equalsIgnoreCase( JetspeedUser.USER_ID ))
                    {
                        obj2 = value.toString();
                    }

                    tempHash.put( columnNames[j], obj2 );
                }
            }
View Full Code Here

    private Value getIdAsVillageValue(Connection connection, Object keyInfo)
        throws Exception
    {
        String tableName = SQLBuilder.getFullTableName(String.valueOf(keyInfo), name);
        String idSQL = dbAdapter.getIDMethodSQL(tableName);
        Value id = null;
        QueryDataSet qds = null;
        try
        {
            qds = new QueryDataSet(connection, idSQL);
            qds.fetchRecords(1);
View Full Code Here

            {
                if (!(columnNames[j].equalsIgnoreCase(USER_ID_COLUMN)
                        || columnNames[j].equalsIgnoreCase(OBJECT_DATA_COLUMN)))
                {
                    Object obj2 = null;
                    Value value = row.getValue(j + 1);
                    if (value.isByte())
                    {
                        obj2 = new Byte(value.asByte());
                    }
                    if (value.isBigDecimal())
                    {
                        obj2 = value.asBigDecimal();
                    }
                    if (value.isBytes())
                    {
                        obj2 = value.asBytes();
                    }
                    if (value.isDate())
                    {
                        obj2 = value.asDate();
                    }
                    if (value.isShort())
                    {
                        obj2 = new Short(value.asShort());
                    }
                    if (value.isInt())
                    {
                        obj2 = new Integer(value.asInt());
                    }
                    if (value.isLong())
                    {
                        obj2 = new Long(value.asLong());
                    }
                    if (value.isDouble())
                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        // JDK 1.3 has no Boolean.valueOf(boolean)
                        obj2 = new Boolean(value.asBoolean());
                    }
                    if (value.isString())
                    {
                        obj2 = value.asString();
                    }
                    if (value.isTime())
                    {
                        obj2 = value.asTime();
                    }
                    if (value.isTimestamp())
                    {
                        obj2 = value.asTimestamp();
                    }
                    if (value.isUtilDate())
                    {
                        obj2 = value.asUtilDate();
                    }
                    if (obj2 != null)
                    {
                        tempHash.put(columnNames[j], obj2);
                    }
View Full Code Here

            {
                if (!(columnNames[j].equalsIgnoreCase(USER_ID_COLUMN)
                        || columnNames[j].equalsIgnoreCase(OBJECT_DATA_COLUMN)))
                {
                    Object obj2 = null;
                    Value value = row.getValue(j + 1);
                    if (value.isByte())
                    {
                        obj2 = new Byte(value.asByte());
                    }
                    if (value.isBigDecimal())
                    {
                        obj2 = value.asBigDecimal();
                    }
                    if (value.isBytes())
                    {
                        obj2 = value.asBytes();
                    }
                    if (value.isDate())
                    {
                        obj2 = value.asDate();
                    }
                    if (value.isShort())
                    {
                        obj2 = new Short(value.asShort());
                    }
                    if (value.isInt())
                    {
                        obj2 = new Integer(value.asInt());
                    }
                    if (value.isLong())
                    {
                        obj2 = new Long(value.asLong());
                    }
                    if (value.isDouble())
                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        obj2 = new Boolean(value.asBoolean());
                    }
                    if (value.isString())
                    {
                        obj2 = value.asString();
                    }
                    if (value.isTime())
                    {
                        obj2 = value.asTime();
                    }
                    if (value.isTimestamp())
                    {
                        obj2 = value.asTimestamp();
                    }
                    if (value.isUtilDate())
                    {
                        obj2 = value.asUtilDate();
                    }
                    if (obj2 != null)
                    {
                        tempHash.put(columnNames[j], obj2);
                    }
View Full Code Here

    private Value getIdAsVillageValue(Connection connection,
                                      Object keyInfo)
        throws Exception
    {
        String IDSql = dbAdapter.getIdSqlForAutoIncrement(keyInfo);
        Value id = null;
        QueryDataSet qds = null;
        try
        {
            qds = new QueryDataSet(connection, IDSql);
            qds.fetchRecords(1);
View Full Code Here

            {
                if ( ! ( columnNames[j].equalsIgnoreCase( USER_ID_COLUMN )
                         ||  columnNames[j].equalsIgnoreCase( OBJECT_DATA_COLUMN ) ))
                {
                    Object obj2 = null;
                    Value value = row.getValue(j+1);
                    if (value.isByte()) obj2 = new Byte(value.asByte());
                    if (value.isBigDecimal()) obj2 = value.asBigDecimal();
                    if (value.isBytes()) obj2 = value.asBytes();
                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
                    if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                    if (value.isString()) obj2 = value.asString();
                    if (value.isTime()) obj2 = value.asTime();
                    if (value.isTimestamp()) obj2 = value.asTimestamp();
                    if (value.isUtilDate()) obj2 = value.asUtilDate();
                    if ( obj2 != null )
                        tempHash.put( columnNames[j], obj2 );
                }
            }
            obj.setPermStorage( tempHash );
View Full Code Here

TOP

Related Classes of com.workingdogs.village.Value

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.