org.teamapps.udb.model.NewTestModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of universal-db Show documentation
Show all versions of universal-db Show documentation
Ultra fast TeamApps database
package org.teamapps.udb.model;
import org.teamapps.message.protocol.message.*;
import org.teamapps.message.protocol.model.*;
import org.teamapps.message.protocol.service.*;
import org.teamapps.message.protocol.file.*;
import java.util.HashMap;
import java.util.Map;
import static org.teamapps.message.protocol.message.MessageDefinition.readBase64Message;
public class NewTestModel {
public static final MessageModelCollection MODEL_COLLECTION = new MessageModelCollection("newTestModel", "org.teamapps.udb.model", 1);
static {
MessageDefinition fileContentData = MODEL_COLLECTION.createModel("fileContentData", "#udb.fileContentData", 1, null, true);
fileContentData.addAttribute("name", 1, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("fileSize", 2, AttributeType.LONG, null, null, null);
fileContentData.addAttribute("hash", 3, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("content", 4, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("mimeType", 5, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("createdBy", 6, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("modifiedBy", 7, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("dateCreated", 8, AttributeType.TIMESTAMP_32, null, null, null);
fileContentData.addAttribute("dateModified", 9, AttributeType.TIMESTAMP_32, null, null, null);
fileContentData.addAttribute("pages", 10, AttributeType.INT, null, null, null);
fileContentData.addAttribute("title", 11, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("latitude", 12, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("longitude", 13, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("device", 14, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("software", 15, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("softwareVersion", 16, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("duration", 17, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("imageWidth", 18, AttributeType.INT, null, null, null);
fileContentData.addAttribute("imageHeight", 19, AttributeType.INT, null, null, null);
fileContentData.addAttribute("language", 20, AttributeType.STRING, null, null, null);
fileContentData.addAttribute("metaKeys", 21, AttributeType.STRING_ARRAY, null, null, null);
fileContentData.addAttribute("metaValues", 22, AttributeType.STRING_ARRAY, null, null, null);
MODEL_COLLECTION.addMessageDecoder(fileContentData.getObjectUuid(), FileContentData.getMessageDecoder());
}
}