Package com.workingdogs.village

Examples of com.workingdogs.village.Record


                    handleMultipleRecords(tds);
                }

                for (int j = 0; j < tds.size(); j++)
                {
                    Record rec = tds.getRecord(j);

                    if (pc != null)
                    {
                        // Table name _without_ schema!
                        pc.process(table, dbName, rec);
View Full Code Here


        Vector results = new Vector();

        // Populate the object(s).
        for ( int i=0; i<rows.size(); i++ )
        {
            Record rec = (Record)rows.elementAt(i);
            int oid =  rec.getValue(1).asInt();
            int sec =  rec.getValue(2).asInt();
            int min =  rec.getValue(3).asInt();
            int hr  =  rec.getValue(4).asInt();
            int wd  =  rec.getValue(5).asInt();
            int d_m =  rec.getValue(6).asInt();
            String task =  rec.getValue(7).asString();
            String email =  rec.getValue(8).asString();
            byte[] objectData = (byte[])rec.getValue(9).asBytes();
            Hashtable tempHash = (Hashtable)ObjectUtils.deserialize(objectData);

            JobEntry je = new JobEntry(sec, min, hr, wd, d_m, task);
            je.setPrimaryKey(oid);
            je.setEmail(email);
View Full Code Here

        // Populate the object(s).
        for ( int i=0; i<rows.size(); i++ )
        {
            //Role obj = new Role();
            Role obj = new TurbineRole();
            Record row = (Record)rows.elementAt(i);
            ((TurbineRole)obj).setPrimaryKey( row.getValue(1).asInt() );
            ((TurbineRole)obj).setName( row.getValue(2).asString() );
            byte[] objectData = (byte[])row.getValue(3).asBytes();
            Map temp = (Map)ObjectUtils.deserialize(objectData);
            if(temp != null)
            {
                ((TurbineRole)obj).setAttributes(temp);
            }
View Full Code Here

        // Populate the object(s).
        for ( int i=0; i<rows.size(); i++ )
        {
            Group obj = TurbineSecurity.getNewGroup(null);
            Record row = (Record)rows.elementAt(i);
            ((SecurityObject)obj).setPrimaryKey( row.getValue(1).asInt() );
            ((SecurityObject)obj).setName( row.getValue(2).asString() );
            byte[] objectData = (byte[])row.getValue(3).asBytes();
            Map temp = (Map)ObjectUtils.deserialize(objectData);
            if(temp != null)
            {
                ((SecurityObject)obj).setAttributes(temp);
            }
View Full Code Here

        Vector results = new Vector();

        // Populate the object(s).
        for ( int i=0; i<rows.size(); i++ )
        {
            Record row = (Record)rows.elementAt(i);
            // Add User to the return Vector.
            if ( current == null )
            {
                results.addElement( row2Object(row, 1, null) );
            }
View Full Code Here

        Vector results = new Vector();

        // Populate the object(s).
        for ( int i=0; i<rows.size(); i++ )
        {
            Record row = (Record)rows.elementAt(i);
            // Add User to the return Vector.
            results.addElement( row2Object(row, 1, null) );
        }
        return results;
    }
View Full Code Here

                {
                    handleMultipleRecords(tds);
                }
                for (int j=0; j<tds.size(); j++)
                {
                    Record rec = tds.getRecord(j);
                    rec.markToBeDeleted();
                    rec.save();
                }
            }
            finally
            {
                if (tds != null) tds.close();
View Full Code Here

        // Set up Village for the insert.
        TableDataSet tds = null;
        try
        {
            tds = new TableDataSet(dbCon.getConnection(), tableName );
            Record rec = tds.addRecord();
            insertOrUpdateRecord(rec, tableName, criteria);
        }
        finally
        {
            if (tds != null) tds.close();
View Full Code Here

        }

        // Return a Vector of Record objects.
        for ( int i=0; i<qds.size(); i++ )
        {
            Record rec = qds.getRecord(i);
            results.addElement(rec);
        }
        return results;
    }
View Full Code Here

                {
                    handleMultipleRecords(tds);
                }
                for (int j=0; j<tds.size(); j++)
                {
                    Record rec = tds.getRecord(j);
                    insertOrUpdateRecord(rec, tables.get(i), updateValues);
                }
            }
            finally
            {
View Full Code Here

TOP

Related Classes of com.workingdogs.village.Record

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.