/** * @return the classifications */ public List<Classification> getClassifications() { if ( classifications == null ) { List<OMElement> classificationElems = adapter.getElements( adapter.getRootElement(), new XPath( "./rim:RegistryObjectList/rim:Classification", ns ) ); classifications = new ArrayList<Classification>(); for ( OMElement classificationElem : classificationElems ) { classifications.add( new Classification( classificationElem ) ); } } return classifications; }
private void insertClassification( Classification classification, int regPackId, Connection conn ) throws SQLException { InsertRow ir = new InsertRow( new TableName( Table.idxtb_classification.name() ), null ); addRegistryObject( ir, classification ); ir.addPreparedArgument( new SQLIdentifier( "classificationNode" ), classification.getClassificationNode() ); ir.addPreparedArgument( new SQLIdentifier( "classifiedObject" ), classification.getClassifiedObject() ); ir.addPreparedArgument( new SQLIdentifier( "classificationScheme" ), classification.getClassificationScheme() ); ir.addPreparedArgument( new SQLIdentifier( "data" ), getAsByteArray( classification.getElement() ) ); ir.addPreparedArgument( new SQLIdentifier( "fk_registrypackage" ), regPackId ); ir.performInsert( conn ); }
return new Association( rootEl ); case Classification: return new Classification( rootEl ); case ClassificationNode: return new ClassificationNode( rootEl );