Package com.db4o.foundation

Examples of com.db4o.foundation.Visitor4


    public void attachQueryNode(final String fieldName, final Visitor4 a_visitor) {
        ClassMetadataIterator i = iterator();
        while (i.moveNext()) {
            final ClassMetadata yc = i.currentClass();
            if(! yc.isInternal()){
                yc.forEachYapField(new Visitor4() {
                    public void visit(Object obj) {
                        FieldMetadata yf = (FieldMetadata)obj;
                        if(yf.canAddToQuery(fieldName)){
                            a_visitor.visit(new Object[] {yc, yf});
                        }
View Full Code Here


      return i_yapClassByBytes;
    }
   
    private void applyReadAs(){
        final Hashtable4 readAs = stream().configImpl().readAs();
        readAs.forEachKey(new Visitor4() {
            public void visit(Object a_object) {
                String dbName = (String)a_object;
                byte[] dbbytes = getNameBytes(dbName);
                String useName = (String)readAs.get(dbName);
                byte[] useBytes = getNameBytes(useName);
View Full Code Here

        if(fieldName == null){
            return null;
        }
        ClassMetadata yc = yo.getYapClass();
        final FieldMetadata[] field = new FieldMetadata[]{null};
        yc.forEachYapField(new Visitor4() {
            public void visit(Object yf) {
                FieldMetadata yapField = (FieldMetadata)yf;
                if(yapField.canAddToQuery(fieldName)){
                    field[0] = yapField;
                }
View Full Code Here

    }

    static final void flattenCollection2(final ObjectContainerBase a_stream, Object a_object, final com.db4o.foundation.Collection4 col) {
        Reflector reflector = a_stream.reflector();
        if (reflector.forObject(a_object).isCollection()) {
            forEachCollectionElement(a_object, new Visitor4() {
                public void visit(Object obj) {
                    flattenCollection1(a_stream, obj, col);
                }
            });
        } else {
View Full Code Here

TOP

Related Classes of com.db4o.foundation.Visitor4

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.