Package org.openntf.domino.schema.impl

Examples of org.openntf.domino.schema.impl.ItemDefinition


    try {
      DatabaseSchema schema = new DatabaseSchema();
      DocumentDefinition eventDef = new DocumentDefinition();
      eventDef.setName("Events");

      ItemDefinition eventAddinNameDef = new ItemDefinition();
      eventAddinNameDef.setName("EventAddinName");
      eventAddinNameDef.setType(StringType.class);

      ItemDefinition eventListDef = new ItemDefinition();
      eventListDef.setName("EventList"); //text list
      eventListDef.setType(StringType.class);

      ItemDefinition eventSeverityDef = new ItemDefinition();
      eventSeverityDef.setName("EventSeverity"); //integer list
      eventSeverityDef.setType(IntegerType.class);

      ItemDefinition eventStatusDef = new ItemDefinition();
      eventStatusDef.setName("EventStatus"); //text list
      eventStatusDef.setType(StringType.class);

      ItemDefinition eventTimeDef = new ItemDefinition();
      eventTimeDef.setName("EventTime"); //Datetime list
      eventTimeDef.setType(DateTimeType.class);

      ItemDefinition eventTimeSizeDef = new ItemDefinition();
      eventTimeSizeDef.setName("EventTimeSize"); // integer list
      eventTimeSizeDef.setType(IntegerType.class);

      ItemDefinition eventTypeDef = new ItemDefinition();
      eventTypeDef.setName("EventType")//integer list
      eventTypeDef.setType(IntegerType.class);

      ItemDefinition finishTimeDef = new ItemDefinition();
      finishTimeDef.setName("FinishTime")//Datetime
      finishTimeDef.setType(DateTimeType.class);

      ItemDefinition serverDef = new ItemDefinition();
      serverDef.setName("Server")//Name
      serverDef.setType(StringType.class);

      ItemDefinition startTimeDef = new ItemDefinition();
      startTimeDef.setName("StartTime")//Datetime
      startTimeDef.setType(DateTimeType.class);

      ItemDefinition targetDbDef = new ItemDefinition();
      targetDbDef.setName("TargetDb")//String list
      targetDbDef.setType(StringType.class);

      ItemDefinition targetExtraDef = new ItemDefinition();
      targetExtraDef.setName("TargetExtra")//String list
      targetExtraDef.setType(StringType.class);

      ItemDefinition targetServerDef = new ItemDefinition();
      targetServerDef.setName("TargetServer")//String list
      targetServerDef.setType(StringType.class);

      ItemDefinition targetUserDef = new ItemDefinition();
      targetUserDef.setName("TargetUser")//String list
      targetUserDef.setType(StringType.class);

    } catch (Throwable t) {
      t.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.openntf.domino.schema.impl.ItemDefinition

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.