Package org.sf.bee.persistence.sql

Examples of org.sf.bee.persistence.sql.SQLPrimaryKey


        final String dbName = conn.getCatalog();
        final DatabaseMetaData metadata = conn.getMetaData();
        final ResultSet resultset = metadata.getPrimaryKeys(dbName, null, table);
        if (null != resultset) {
            while (resultset.next()) {
                final SQLPrimaryKey item = this.getKey(resultset);
                result.add(item);
            }
        }
        return result.toArray(new SQLPrimaryKey[result.size()]);
    }
View Full Code Here


        item.setName(resultset.getString(this.SCHEMA_CONSTANTS().getTABLE_NAME()));
        return item;
    }

    private SQLPrimaryKey getKey(final ResultSet resultset) throws SQLException {
        final SQLPrimaryKey item = new SQLPrimaryKey();
        item.setName(resultset.getString(PK_NAME));
        item.setColumnName(resultset.getString(COLUMN_NAME));
        item.setKeySeq(resultset.getString(KEY_SEQ));
       
        return item;
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.persistence.sql.SQLPrimaryKey

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.