Package org.xorm.datastore

Examples of org.xorm.datastore.Row


        Table table = classMapping.getTable();

        boolean useNontrans = useNontransactionalRead();

        // 1. Look in cache
        Row row = getFromCache(table, primaryKey);
        if (row == null) {

            // 2. Look in datastore

            // Get the DataFetchGroup to use.
View Full Code Here


            selector.require(dfg);
            Set extraRows = new HashSet();
            rows = ((TransactionImpl) currentTransaction()).getDriver()
                .select(selector, extraRows);
            if (!rows.isEmpty()) {
                Row newFields = (Row) rows.iterator().next();
                // Determine which fields to copy
                Iterator i = dfg.getColumns().iterator();
                while (i.hasNext()) {
                    Column c = (Column) i.next();
                    row.setValue(c, newFields.getValue(c));
                }
            } else {
                throw new JDODataStoreException(I18N.msg("E_row_deleted"));
            }
        } catch (DriverException e) {
View Full Code Here

 
        ClassMapping mapping = handler.getClassMapping();
        Table table = mapping.getTable();

        // Look in datastore
        Row row = null;

        DataFetchGroup dfg = new DataFetchGroup(table.getColumns());
        Selector selector = new Selector
            (table,
             new SimpleCondition(table.getPrimaryKey(),
View Full Code Here

TOP

Related Classes of org.xorm.datastore.Row

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.