[ 
https://jira.duraspace.org/browse/DS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28277#comment-28277
 ] 

Mark H. Wood commented on DS-552:
---------------------------------

Ah, yes, see "depends on" above.  I recall now that I ran into the same problem 
and wrote DS-494 to address it.  The patch was committed but caused problems 
elsewhere and was later removed, so we have this problem back.

The proper fix for 494 seems to be to extend TableRow to allow for DECIMAL and 
NUMERIC results.  Then I think DatabaseManager can once again recognize that 
SQL NUMERIC is potentially far larger than Java Integer (or Long, for that 
matter).  Come to think of it, SQL makes the sizes of *INT 
implementation-dependent, so we are mistreating them all over.  The only 
guarantee is that TINYINT fits into SMALLINT fits into INT fits into BIGINT 
fits into NUMERIC or DECIMAL.  Instead of assuming correspondences between Java 
and SQL types we should test the value and either coerce it or throw an 
exception.  So for example TableRow.getIntColumn() should test for 
Integer.MIN_VALUE <= value <= Integer.MAX_VALUE, not for value instanceof 
Integer.
                
> Servlet to deliver repository size statistics
> ---------------------------------------------
>
>                 Key: DS-552
>                 URL: https://jira.duraspace.org/browse/DS-552
>             Project: DSpace
>          Issue Type: New Feature
>          Components: DSpace API
>            Reporter: Mark H. Wood
>            Assignee: Mark H. Wood
>         Attachments: stats.patch
>
>
> A tiny servlet to return counts of bitstreams, items, collections, and 
> communities, and the amount of storage occupied.  The attached patch also 
> maps it into both JSPUI and XMLUI at /content-statistics.
> The returned "page" is an XML document.  For now, see the package.html 
> changes in the patch.  I'll update the end-user documentation presently.
> We use an earlier version of this with 1.5.1 as input to our library 
> "dashboard", which gathers statistics on various services for quick reference.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to