Examples of MetadataKey


Examples of org.apache.maven.archiva.database.key.MetadataKey

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Getting metadata key" );
            MetadataKey newMetadataKey = (MetadataKey) sqlMap.queryForObject( "getMetadataKey", metadata );
           
            if ( newMetadataKey == null )
            {
                getLogger().info( "added new metadata" );
                sqlMap.update( "addMetadataKey", metadata );
View Full Code Here

Examples of org.apache.maven.archiva.database.key.MetadataKey

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Reading repository metadata" );
            RepositoryMetadata repositoryMetadata = (RepositoryMetadata) sqlMap.queryForObject( "getRepositoryMetadata", new MetadataKey( groupId, artifactId, version ) );
           
            return repositoryMetadata;
        }
        catch ( SQLException e )
        {
View Full Code Here

Examples of org.apache.maven.archiva.database.key.MetadataKey

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Removing repository metadata" );
            sqlMap.update( "removeRepositoryMetadata", new MetadataKey( groupId, artifactId, version ) );
           
            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

Examples of org.apache.maven.archiva.database.key.MetadataKey

        Metadata metadata = new Metadata();
        metadata.setArtifactId( "testArtifactId" );
        metadata.setGroupId( "testGroupId" );
        metadata.setVersion( "testVersion" );
          
        MetadataKey metadataKey = db.getMetadataKey( metadata );
       
        assertTrue( metadataKey.getMetadataKey() > 0 );
        assertEquals( metadataKey.getArtifactId(), metadata.getArtifactId() );
        assertEquals( metadataKey.getGroupId(), metadata.getGroupId() );
        assertEquals( metadataKey.getVersion(), metadata.getVersion() );       
       
        db.dropTable( "RepositoryMetadata" );
        db.dropTable( "MetadataKeys" );
       
        assertFalse( db.tableExists( "RepositoryMetadata" ) );
View Full Code Here

Examples of org.foray.fotree.axsl.prop.MetadataKey

            throw new PropertyException("Invalid property for axsl namespace: "
                    + propertyFullName);
        }
        switch (enumeration) {
        case METADATA_KEY: {
            return new MetadataKey(fobj, propertyFullName,
                    attributeValue);
        }
        default: {
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.