1 22 23 package org.xquark.mapper.metadata; 24 25 28 public interface RepositoryConstants 29 { 30 34 public byte XSI_NIL = 0x09; 38 public byte XSI_TYPE = 0x0A; 39 public byte XSI_SCHEMA_LOCATION = 0x0B; 40 public byte XSI_NO_NAMESPACE_SCHEMA_LOCATION = 0x0C; 41 public byte START_CDATA_SECTION = 0x0D; 42 public byte END_CDATA_SECTION = 0x0E; 43 44 public String ATTRIBUTE_TYPES[] = {"ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS", "CDATA"}; 45 46 public short ROOT_PATH_ID = 0; 47 48 public int SEQUENCE_FIRST_VALUE = 1; 49 50 public byte UOID_SIZE = 63; 52 public byte CID_SIZE_DEFAULT_VALUE = 8; 53 public byte CID_SIZE_MIN_VALUE = 8; 54 public byte CID_SIZE_MAX_VALUE = 16; 55 public byte DID_SIZE_DEFAULT_VALUE = 24; 56 public byte DID_SIZE_MIN_VALUE = 8; 57 public byte DID_SIZE_MAX_VALUE = 48; 58 59 public String TABLE_PREFIX = "XQUARK$"; 63 64 public String LEGACY_REPOSITORY_CHECKER = TABLE_PREFIX + "CONF%"; 65 66 67 public int V_UOID_INDEX = 0; 69 public int V_PATHID_INDEX = 1; 70 public int V_CHAR_VALUE_INDEX = 2; 71 public int V_NUM_VALUE_INDEX = 3; 72 public int V_DATE_VALUE_INDEX = 4; 73 74 public int DEFAULT_METADATA_CACHE_SIZE = 10; 76 77 public byte DEFAULT_CID_SIZE = 8; 78 public int ID_LENGTH = 255; 79 public int DEFAULT_DATA_LENGTH = 255; 81 public String VERSION_FILE = "Repository.ver"; 85 public String CONF_FILE = "Repository.properties"; 86 public String DEFAULT_CONF_FILE = "DefaultRepository.properties"; 87 public String CONF_PACKAGE = "/com/xquark/"; 88 public String RESOURCES_FOLDER = "resources/"; 89 public String MAPPING_PACKAGE = "mapping/"; 90 public String MAPPING_SCHEMA_FILE = "mapping.xsd"; 91 92 public String CONF_USER_BATCHSIZE = "org.xquark.mapper.batchSize"; 94 95 public String CONF_USER_FETCHSIZE = "org.xquark.repository.dbms.user.fetchSize"; 97 public String CONF_TREE_FETCHSIZE = "org.xquark.repository.dbms.tree.fetchSize"; 98 public String CONF_DATA_FETCHSIZE = "org.xquark.repository.dbms.data.fetchSize"; 99 public String CONF_DATA_BATCHSIZE = "org.xquark.repository.data.batchSize"; 100 public String CONF_TREE_BATCHSIZE = "org.xquark.repository.dbms.tree.batchSize"; 101 public String CONF_DOCID_BATCHSIZE = "org.xquark.repository.dbms.docID.batchSize"; 102 public String CONF_PATH_BATCHSIZE = "org.xquark.repository.dbms.path.batchSize"; 103 public String CONF_REMOVE_BATCHSIZE = "org.xquark.repository.dbms.remove.batchSize"; 104 public String CONF_RENAME_BATCHSIZE = "org.xquark.repository.dbms.rename.batchSize"; 105 public String CONF_COLLECTION_METADATA_CACHE = "org.xquark.repository.memory.collectionCache"; 106 public String CONF_TRIM_WS = "org.xquark.repository.trimWhiteSpaces"; 107 108 public String REPOSITORY_SOURCE_NAME = "Repository"; 110 public String NO_NAMESPACE_SCHEMA_ID = "xquark:noNamespace"; 111 } 112 | Popular Tags |