Metric Results
[ summary ] [ packages ] [ cycles ] [ explanations ]The following document contains the results of a JDepend metric analysis. The various metrics are defined at the bottom of this document.
Summary
[ summary ] [ packages ] [ cycles ] [ explanations ]Package | TC | CC | AC | Ca | Ce | A | I | D | V |
---|---|---|---|---|---|---|---|---|---|
org.apache.torque | 10 | 9 | 1 | 13 | 10 | 10.0% | 43.0% | 47.0% | 1 |
org.apache.torque.adapter | 6 | 4 | 2 | 6 | 5 | 33.0% | 45.0% | 21.0% | 1 |
org.apache.torque.avalon | 1 | 0 | 1 | 0 | 9 | 100.0% | 100.0% | 100.0% | 1 |
org.apache.torque.criteria | 4 | 3 | 1 | 6 | 4 | 25.0% | 40.0% | 35.0% | 1 |
org.apache.torque.dsfactory | 3 | 2 | 1 | 1 | 7 | 33.0% | 88.0% | 21.0% | 1 |
org.apache.torque.dsfactory.converters | 1 | 1 | 0 | 0 | 3 | 0.0% | 100.0% | 0.0% | 1 |
org.apache.torque.manager | 3 | 2 | 1 | 2 | 8 | 33.0% | 80.0% | 13.0% | 1 |
org.apache.torque.map | 3 | 2 | 1 | 3 | 6 | 33.0% | 67.0% | 0.0% | 1 |
org.apache.torque.oid | 6 | 4 | 2 | 1 | 10 | 33.0% | 91.0% | 24.0% | 1 |
org.apache.torque.om | 10 | 5 | 5 | 2 | 6 | 50.0% | 75.0% | 25.0% | 1 |
org.apache.torque.om.mapper | 8 | 7 | 1 | 2 | 7 | 12.0% | 78.0% | 10.0% | 1 |
org.apache.torque.sql | 3 | 3 | 0 | 4 | 7 | 0.0% | 64.0% | 36.0% | 1 |
org.apache.torque.sql.objectbuilder | 2 | 1 | 1 | 1 | 7 | 50.0% | 88.0% | 38.0% | 1 |
org.apache.torque.sql.whereclausebuilder | 6 | 4 | 2 | 0 | 7 | 33.0% | 100.0% | 33.0% | 1 |
org.apache.torque.util | 13 | 10 | 3 | 3 | 14 | 23.0% | 82.0% | 5.0% | 1 |
org.apache.torque.util.functions | 7 | 6 | 1 | 1 | 3 | 14.0% | 75.0% | 11.0% | 1 |
Packages
[ summary ] [ packages ] [ cycles ] [ explanations ]org.apache.torque
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
13 | 10 | 10.0% | 43.0% | 47.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.Column
|
org.apache.torque.ConstraintViolationException
org.apache.torque.Database org.apache.torque.DeadlockException org.apache.torque.NoRowsException org.apache.torque.OptimisticLockingFailedException org.apache.torque.TooManyRowsException org.apache.torque.Torque org.apache.torque.TorqueException org.apache.torque.TorqueRuntimeException |
org.apache.torque.adapter
org.apache.torque.avalon org.apache.torque.dsfactory org.apache.torque.manager org.apache.torque.map org.apache.torque.oid org.apache.torque.om org.apache.torque.om.mapper org.apache.torque.sql org.apache.torque.sql.objectbuilder org.apache.torque.sql.whereclausebuilder org.apache.torque.util org.apache.torque.util.functions |
java.lang
java.sql java.util org.apache.commons.configuration2 org.apache.torque.adapter org.apache.torque.dsfactory org.apache.torque.manager org.apache.torque.map org.apache.torque.oid org.apache.torque.util |
org.apache.torque.adapter
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
6 | 5 | 33.0% | 45.0% | 21.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.Adapter |
org.apache.torque.adapter.DerbyAdapter
org.apache.torque.adapter.HsqldbAdapter org.apache.torque.adapter.MysqlAdapter org.apache.torque.adapter.NoneAdapter |
org.apache.torque
org.apache.torque.avalon org.apache.torque.oid org.apache.torque.sql.objectbuilder org.apache.torque.sql.whereclausebuilder org.apache.torque.util |
java.io
java.lang java.sql org.apache.torque org.apache.torque.sql |
org.apache.torque.avalon
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 9 | 100.0% | 100.0% | 100.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.avalon.Torque
|
None | None | java.lang
java.sql java.util org.apache.avalon.framework.component org.apache.commons.configuration2 org.apache.torque org.apache.torque.adapter org.apache.torque.manager org.apache.torque.map |
org.apache.torque.criteria
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
6 | 4 | 25.0% | 40.0% | 35.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.criteria.PreparedStatementPart
|
org.apache.torque.criteria.FromElement
org.apache.torque.criteria.JoinType org.apache.torque.criteria.SqlEnum |
org.apache.torque.map
org.apache.torque.om.mapper org.apache.torque.sql org.apache.torque.sql.objectbuilder org.apache.torque.sql.whereclausebuilder org.apache.torque.util |
java.io
java.lang java.util org.apache.commons.lang3.builder |
org.apache.torque.dsfactory
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 7 | 33.0% | 88.0% | 21.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.dsfactory.DataSourceFactory
|
org.apache.torque.dsfactory.PerUserPool2DataSourceFactory
org.apache.torque.dsfactory.SharedPool2DataSourceFactory |
org.apache.torque
|
java.lang
javax.sql org.apache.commons.configuration2 org.apache.commons.dbcp2.cpdsadapter org.apache.commons.dbcp2.datasources org.apache.logging.log4j org.apache.torque |
org.apache.torque.dsfactory.converters
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 3 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.torque.dsfactory.converters.DurationConverter
|
None | java.lang
java.time org.apache.commons.beanutils.converters |
org.apache.torque.manager
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 8 | 33.0% | 80.0% | 13.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.manager.CacheListener
|
org.apache.torque.manager.MethodResultCache
org.apache.torque.manager.NoOpMethodResultCache |
org.apache.torque
org.apache.torque.avalon |
java.io
java.lang java.util org.apache.commons.jcs3.access org.apache.commons.jcs3.access.exception org.apache.logging.log4j org.apache.torque org.apache.torque.om |
org.apache.torque.map
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
3 | 6 | 33.0% | 67.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.map.OptionSupport
|
org.apache.torque.map.InheritanceMap
org.apache.torque.map.MapHelper |
org.apache.torque
org.apache.torque.avalon org.apache.torque.util |
java.io
java.lang java.util java.util.concurrent org.apache.torque org.apache.torque.criteria |
org.apache.torque.oid
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 10 | 33.0% | 91.0% | 24.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.oid.AbstractIdGenerator
org.apache.torque.oid.IdGenerator |
org.apache.torque.oid.AutoIncrementIdGenerator
org.apache.torque.oid.IDGeneratorFactory org.apache.torque.oid.IDGeneratorFactory$1 org.apache.torque.oid.SequenceIdGenerator |
org.apache.torque
|
java.lang
java.math java.sql java.util java.util.stream org.apache.torque org.apache.torque.adapter org.apache.torque.om.mapper org.apache.torque.sql org.apache.torque.util |
org.apache.torque.om
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 6 | 50.0% | 75.0% | 25.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.om.ColumnAccessByName
org.apache.torque.om.ObjectKey org.apache.torque.om.ObjectModel org.apache.torque.om.Persistent org.apache.torque.om.SimpleKey |
org.apache.torque.om.BooleanKey
org.apache.torque.om.ComboKey org.apache.torque.om.DateKey org.apache.torque.om.NumberKey org.apache.torque.om.StringKey |
org.apache.torque.manager
org.apache.torque.sql.objectbuilder |
java.io
java.lang java.math java.sql java.util org.apache.torque |
org.apache.torque.om.mapper
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 7 | 12.0% | 78.0% | 10.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.om.mapper.RecordMapper
|
org.apache.torque.om.mapper.BigDecimalMapper
org.apache.torque.om.mapper.CompositeMapper org.apache.torque.om.mapper.CompositeMapper$MapperWithOffset org.apache.torque.om.mapper.DateMapper org.apache.torque.om.mapper.IntegerMapper org.apache.torque.om.mapper.LongMapper org.apache.torque.om.mapper.StringMapper |
org.apache.torque.oid
org.apache.torque.util |
java.io
java.lang java.math java.sql java.util org.apache.torque org.apache.torque.criteria |
org.apache.torque.sql
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
4 | 7 | 0.0% | 64.0% | 36.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.torque.sql.Query
org.apache.torque.sql.Query$Type org.apache.torque.sql.WhereClauseExpression |
org.apache.torque.adapter
org.apache.torque.oid org.apache.torque.sql.objectbuilder org.apache.torque.sql.whereclausebuilder |
java.lang
java.util org.apache.commons.lang3 org.apache.commons.lang3.builder org.apache.torque org.apache.torque.criteria org.apache.torque.util |
org.apache.torque.sql.objectbuilder
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 7 | 50.0% | 88.0% | 38.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.sql.objectbuilder.ObjectPsPartBuilder
|
org.apache.torque.sql.objectbuilder.ObjectOrColumnPsPartBuilder
|
org.apache.torque.sql.whereclausebuilder
|
java.lang
java.util org.apache.torque org.apache.torque.adapter org.apache.torque.criteria org.apache.torque.om org.apache.torque.sql |
org.apache.torque.sql.whereclausebuilder
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 7 | 33.0% | 100.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.sql.whereclausebuilder.AbstractWhereClausePsPartBuilder
org.apache.torque.sql.whereclausebuilder.WhereClausePsPartBuilder |
org.apache.torque.sql.whereclausebuilder.NoReplacementsPreparedStatementPart
org.apache.torque.sql.whereclausebuilder.OnlyReplacementsPreparedStatementPart org.apache.torque.sql.whereclausebuilder.StandardBuilder org.apache.torque.sql.whereclausebuilder.VerbatimSqlConditionBuilder |
None | java.lang
java.util org.apache.torque org.apache.torque.adapter org.apache.torque.criteria org.apache.torque.sql org.apache.torque.sql.objectbuilder |
org.apache.torque.util
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
3 | 14 | 23.0% | 82.0% | 5.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.util.ExceptionMapper
org.apache.torque.util.TorqueConnection org.apache.torque.util.TransactionManager |
org.apache.torque.util.AvgHelper
org.apache.torque.util.CountHelper org.apache.torque.util.ExceptionMapperImpl org.apache.torque.util.ListOrderedMapCI org.apache.torque.util.ResultsetSpliterator org.apache.torque.util.TorqueConnectionImpl org.apache.torque.util.Transaction org.apache.torque.util.TransactionManagerImpl org.apache.torque.util.UniqueColumnList org.apache.torque.util.UniqueList |
org.apache.torque
org.apache.torque.oid org.apache.torque.sql |
java.lang
java.math java.sql java.util java.util.concurrent java.util.function org.apache.commons.lang3 org.apache.logging.log4j org.apache.torque org.apache.torque.adapter org.apache.torque.criteria org.apache.torque.map org.apache.torque.om.mapper org.apache.torque.util.functions |
org.apache.torque.util.functions
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 3 | 14.0% | 75.0% | 11.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.torque.util.functions.SQLFunction
|
org.apache.torque.util.functions.AggregateFunction
org.apache.torque.util.functions.Avg org.apache.torque.util.functions.Count org.apache.torque.util.functions.Max org.apache.torque.util.functions.Min org.apache.torque.util.functions.Sum |
org.apache.torque.util
|
java.lang
org.apache.commons.lang3 org.apache.torque |
Cycles
[ summary ] [ packages ] [ cycles ] [ explanations ]Package | Package Dependencies |
---|---|
org.apache.torque | org.apache.torque.oid
org.apache.torque |
org.apache.torque.adapter | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.avalon | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.dsfactory | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.manager | org.apache.torque.om
org.apache.torque org.apache.torque.oid org.apache.torque |
org.apache.torque.map | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.oid | org.apache.torque
org.apache.torque.oid |
org.apache.torque.om | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.om.mapper | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.sql | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.sql.objectbuilder | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.sql.whereclausebuilder | org.apache.torque.sql.objectbuilder
org.apache.torque org.apache.torque.oid org.apache.torque |
org.apache.torque.util | org.apache.torque
org.apache.torque.oid org.apache.torque |
org.apache.torque.util.functions | org.apache.torque
org.apache.torque.oid org.apache.torque |
Explanation
[ summary ] [ packages ] [ cycles ] [ explanations ]The following explanations are for quick reference and are lifted directly from the original JDepend documentation.
Term | Description |
---|---|
Number of Classes | The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package. |
Afferent Couplings | The number of other packages that depend upon classes within the package is an indicator of the package's responsibility. |
Efferent Couplings | The number of other packages that the classes in the package depend upon is an indicator of the package's independence. |
Abstractness | The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package. |
Instability | The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change. The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package. |
Distance | The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible. |
Cycles | Packages participating in a package dependency cycle are in a deadly embrace with respect to reusability and their release cycle. Package dependency cycles can be easily identified by reviewing the textual reports of dependency cycles. Once these dependency cycles have been identified with JDepend, they can be broken by employing various object-oriented techniques. |