當前位置: 首頁>>代碼示例>>Java>>正文


Java SchemaModel類代碼示例

本文整理匯總了Java中com.espertech.esper.event.xml.SchemaModel的典型用法代碼示例。如果您正苦於以下問題:Java SchemaModel類的具體用法?Java SchemaModel怎麽用?Java SchemaModel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SchemaModel類屬於com.espertech.esper.event.xml包,在下文中一共展示了SchemaModel類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addEventType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public void addEventType(String eventTypeName, ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc) {
    checkTableExists(eventTypeName);
    SchemaModel schemaModel = null;

    if ((xmlDOMEventTypeDesc.getSchemaResource() != null) || (xmlDOMEventTypeDesc.getSchemaText() != null)) {
        try {
            schemaModel = XSDSchemaMapper.loadAndMap(xmlDOMEventTypeDesc.getSchemaResource(), xmlDOMEventTypeDesc.getSchemaText(), engineImportService);
        } catch (Exception ex) {
            throw new ConfigurationException(ex.getMessage(), ex);
        }
    }

    try {
        eventAdapterService.addXMLDOMType(eventTypeName, xmlDOMEventTypeDesc, schemaModel, false);
    } catch (EventAdapterException t) {
        throw new ConfigurationException(t.getMessage(), t);
    }
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:19,代碼來源:ConfigurationOperationsImpl.java

示例2: replaceXMLEventType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public void replaceXMLEventType(String xmlEventTypeName, ConfigurationEventTypeXMLDOM config) throws ConfigurationException {
    SchemaModel schemaModel = null;
    if (config.getSchemaResource() != null || config.getSchemaText() != null) {
        try {
            schemaModel = XSDSchemaMapper.loadAndMap(config.getSchemaResource(), config.getSchemaText(), engineImportService);
        } catch (Exception ex) {
            throw new ConfigurationException(ex.getMessage(), ex);
        }
    }

    try {
        eventAdapterService.replaceXMLEventType(xmlEventTypeName, config, schemaModel);
    } catch (EventAdapterException e) {
        throw new ConfigurationException("Error updating XML event type: " + e.getMessage(), e);
    }
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:17,代碼來源:ConfigurationOperationsImpl.java

示例3: addEventType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public void addEventType(String eventTypeName, ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc)
{
    SchemaModel schemaModel = null;

    if ((xmlDOMEventTypeDesc.getSchemaResource() != null) || (xmlDOMEventTypeDesc.getSchemaText() != null))
    {
        try
        {
            schemaModel = XSDSchemaMapper.loadAndMap(xmlDOMEventTypeDesc.getSchemaResource(), xmlDOMEventTypeDesc.getSchemaText(), 2);
        }
        catch (Exception ex)
        {
            throw new ConfigurationException(ex.getMessage(), ex);
        }
    }

    try
    {
        eventAdapterService.addXMLDOMType(eventTypeName, xmlDOMEventTypeDesc, schemaModel, false);
    }
    catch (EventAdapterException t)
    {
        throw new ConfigurationException(t.getMessage(), t);
    }
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:26,代碼來源:ConfigurationOperationsImpl.java

示例4: replaceXMLEventType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public void replaceXMLEventType(String xmlEventTypeName, ConfigurationEventTypeXMLDOM config) throws ConfigurationException {
    SchemaModel schemaModel = null;
    if (config.getSchemaResource() != null || config.getSchemaText() != null)
    {
        try
        {
            schemaModel = XSDSchemaMapper.loadAndMap(config.getSchemaResource(), config.getSchemaText(), 2);
        }
        catch (Exception ex)
        {
            throw new ConfigurationException(ex.getMessage(), ex);
        }
    }

    try
    {
        eventAdapterService.replaceXMLEventType(xmlEventTypeName, config, schemaModel);
    }
    catch (EventAdapterException e)
    {
        throw new ConfigurationException("Error updating XML event type: " + e.getMessage(), e);
    }
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:24,代碼來源:ConfigurationOperationsImpl.java

示例5: addXMLDOMType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
/**
 * Adds an XML DOM event type.
 *
 * @param eventTypeName                is the name to add the type for
 * @param configurationEventTypeXMLDOM is the XML DOM config info
 * @param optionalSchemaModel          is the object model of the schema, or null in none provided
 * @param isPreconfiguredStatic        preconfigured thru static config
 * @return event type
 */
public EventType addXMLDOMType(String eventTypeName, ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM, SchemaModel optionalSchemaModel, boolean isPreconfiguredStatic);
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:11,代碼來源:EventAdapterService.java

示例6: addXMLDOMType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
/**
 * Adds an XML DOM event type.
 * @param eventTypeName is the name to add the type for
 * @param configurationEventTypeXMLDOM is the XML DOM config info
 * @param optionalSchemaModel is the object model of the schema, or null in none provided
 * @return event type
 */
public EventType addXMLDOMType(String eventTypeName, ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM, SchemaModel optionalSchemaModel, boolean isPreconfiguredStatic);
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:9,代碼來源:EventAdapterService.java

示例7: replaceXMLEventType

import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public EventType replaceXMLEventType(String xmlEventTypeName, ConfigurationEventTypeXMLDOM config, SchemaModel schemaModel); 
開發者ID:espertechinc,項目名稱:esper,代碼行數:2,代碼來源:EventAdapterService.java


注:本文中的com.espertech.esper.event.xml.SchemaModel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。