本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
示例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);
示例7: replaceXMLEventType
import com.espertech.esper.event.xml.SchemaModel; //導入依賴的package包/類
public EventType replaceXMLEventType(String xmlEventTypeName, ConfigurationEventTypeXMLDOM config, SchemaModel schemaModel);