Examples of ValueHandler


Examples of com.mysql.clusterj.core.spi.ValueHandler

    public void deletePersistent(Object object) {
        if (object == null) {
            return;
        }
        DomainTypeHandler domainTypeHandler = getDomainTypeHandler(object);
        ValueHandler valueHandler = domainTypeHandler.getValueHandler(object);
        delete(domainTypeHandler, valueHandler);
    }
View Full Code Here

Examples of com.mysql.clusterj.core.spi.ValueHandler

        if (object == null) {
            return;
        }
        DomainTypeHandler domainTypeHandler = getDomainTypeHandler(object);
        if (logger.isDetailEnabled()) logger.detail("UpdatePersistent on object " + object);
        ValueHandler valueHandler = domainTypeHandler.getValueHandler(object);
        update(domainTypeHandler, valueHandler);
    }
View Full Code Here

Examples of com.mysql.clusterj.core.spi.ValueHandler

     * @param instance the instance to save
     */
    public <T> T savePersistent(T instance) {
        DomainTypeHandler domainTypeHandler = getDomainTypeHandler(instance);
        if (logger.isDetailEnabled()) logger.detail("UpdatePersistent on object " + instance);
        ValueHandler valueHandler = domainTypeHandler.getValueHandler(instance);
        startAutoTransaction();
        setPartitionKey(domainTypeHandler, valueHandler);
        Table storeTable = null;
        try {
            storeTable = domainTypeHandler.getStoreTable();
View Full Code Here

Examples of com.mysql.clusterj.core.spi.ValueHandler

        // if a partition key has already been set, throw a user exception
        if (this.partitionKey != null) {
            throw new ClusterJUserException(
                    local.message("ERR_Set_Partition_Key_Twice", tableName));
        }
        ValueHandler handler = domainTypeHandler.createKeyValueHandler(key);
        this.partitionKey= domainTypeHandler.createPartitionKey(handler);
        // if a transaction has already begun, tell the cluster transaction about the key
        if (clusterTransaction != null) {
            clusterTransaction.setPartitionKey(partitionKey);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.styles.ValueHandler

        // Initialise the style value handlers.
        paneTableChecker = new XHTMLFullPaneTableChecker();
        paneTableChecker.setWidthChecker(widthHandler);

        ValueHandler valueHandler = new PositivePixelLengthHandler();
        PropertyHandler propertyHandler = new EdgePropertyHandler(
                PropertyGroups.PADDING_PROPERTIES, valueHandler,
                NoopPropertyUpdater.getDefaultInstance());
        paddingHandler = new DefaultingPropertyHandler(
                propertyHandler, "0");
View Full Code Here

Examples of javax.rmi.CORBA.ValueHandler

    /**
     * Returns the maximum stream format version supported by our
     * ValueHandler.
     */
    public static byte getMaxStreamFormatVersion() {
        ValueHandler vh = Util.createValueHandler();

        if (!(vh instanceof javax.rmi.CORBA.ValueHandlerMultiFormat))
            return ORBConstants.STREAM_FORMAT_VERSION_1;
        else
            return ((ValueHandlerMultiFormat)vh).getMaximumStreamFormatVersion();
View Full Code Here

Examples of javax.rmi.CORBA.ValueHandler

            return codeBaseIOR;

        // backward compatability 4365188
        CodeBase cb;

        ValueHandler vh = ORBUtility.createValueHandler(this);

        cb = (CodeBase)vh.getRunTimeCodeBase();
        return ORBUtility.connectAndGetIOR( this, cb ) ;
    }
View Full Code Here

Examples of javax.rmi.CORBA.ValueHandler

    /**
     * Returns the maximum stream format version supported by our
     * ValueHandler.
     */
    public static byte getMaxStreamFormatVersion() {
        ValueHandler vh = Util.createValueHandler();

        if (!(vh instanceof javax.rmi.CORBA.ValueHandlerMultiFormat))
            return ORBConstants.STREAM_FORMAT_VERSION_1;
        else
            return ((ValueHandlerMultiFormat)vh).getMaximumStreamFormatVersion();
View Full Code Here

Examples of org.apache.fop.fonts.type1.AFMParser.ValueHandler

        testEncodingWithMetricsLine("AdobeStandardEncoding", GOOD_LINE);
    }

    private void testEncodingWithMetricsLine(String encoding, String line) throws IOException {
        Map<String, ValueHandler> valueParsers = mock(HashMap.class);
        ValueHandler cHandler = mock(ValueHandler.class);
        ValueHandler wxHandler = mock(ValueHandler.class);
        ValueHandler nHandler = mock(ValueHandler.class);
        ValueHandler bHandler = mock(ValueHandler.class);
        when(valueParsers.get("C")).thenReturn(cHandler);
        when(valueParsers.get("WX")).thenReturn(wxHandler);
        when(valueParsers.get("N")).thenReturn(nHandler);
        when(valueParsers.get("B")).thenReturn(bHandler);
View Full Code Here

Examples of org.apache.fop.fonts.type1.AFMParser.ValueHandler

            for (String metric : metrics) {
                Matcher matcher = METRICS_REGEX.matcher(metric);
                if (matcher.matches()) {
                    String operator = matcher.group(1);
                    String operands = matcher.group(2);
                    ValueHandler handler = valueParsers.get(operator);
                    if (handler != null) {
                        handler.parse(operands, 0, stack);
                    }
                }
            }
            stack.pop();
            return chm;
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.