Package bm.core

Examples of bm.core.Properties


                    true
            );
        }
        if( is != null )
        {
            return new Properties( is );
        }
        else
        {
            return null;
        }
View Full Code Here


     * @throws IOException on errors
     */
    public static void registerDefinition( final String resource )
            throws IOException
    {
        final Properties aux = new Properties();
        aux.load( aux.getClass().getResourceAsStream( resource ) );
        definitions.putAll( aux );
    }
View Full Code Here

     * @throws IOException on errors
     */
    public static void registerDefinition( final InputStream is )
            throws IOException
    {
        final Properties aux = new Properties( is );
        definitions.putAll( aux );
    }
View Full Code Here

            if( attachment != null )
            {
                return attachment;
            }

            final Properties definitions = DefaultFieldResolver.definitions;
            Row target = null;
            if( definitions.containsKey( fieldName + ".table" ) )
            {
                target = getTarget( fieldName, source );
            }
            try
            {
                return target != null ? target.getField(
                        definitions.containsKey( fieldName + ".realName" ) ?
                            definitions.getProperty( fieldName + ".realName" ) :
                            fieldName
                ) : null;
            }
            catch( InvalidFieldException e )
            {
View Full Code Here

    private Row getTarget( final String fieldName, final Row source )
            throws SerializationException, RecordStoreFullException,
                   DBException, RSException
    {
        final Properties definitions = DefaultFieldResolver.definitions;
        final Long targetId = (Long) source.getField(
                definitions.getProperty( fieldName + ".field" )
        );
        final String tableName =
                definitions.getProperty( fieldName + ".table" );
        if( targetId == null || tableName == null )
        {
            return null;
        }
        Row target = (Row) cache.get( tableName );
View Full Code Here

TOP

Related Classes of bm.core.Properties

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.