1 22 23 package org.xquark.mapper.mapping; 24 25 29 public interface MappingConstants { 30 31 public static final String MAPPING_URI = 32 "http://www.xquark.org/Repository/1.0/Mapping"; 33 public static final String BRIDGE_MAPPING_URI = 34 "http://www.xquark.org/Bridge/1.1/Mapping"; 35 public static final String BRIDGE_MAPPING_URI_1_0 = 36 "http://www.xquark.org/Bridge/1.0/Mapping"; 37 38 public static final String MAPPING_TAG = "mapping"; 40 public static final String MAP_TAG = "map"; 41 public static final String ELEMENT_TAG = "element"; 42 public static final String ATTRIBUTE_TAG = "attribute"; 43 public static final String GENERATOR_TAG = "generator"; 44 45 public static final String VERSION_ATTR = "version"; 47 public static final String TABLE_ATTR = "table"; 48 public static final String TYPE_ATTR = "type"; 49 public static final String NAME_ATTR = "name" ; 50 public static final String ACTION_ATTR = "action"; 51 public static final String COLUMN_ATTR = "column"; 52 public static final String REF_ATTR = "ref"; 53 public static final String MAP_ATTR = "map"; 54 public static final String UPDATE_WHEN_MISSING_ATTR = "updateColumnWhenMissing"; 55 public static final String IN_SELECT_ATTR = "inSelect"; 56 public static final String IN_KEY_ATTR = "inKey"; 57 public static final String BATCH_SIZE_ATTR = "batchSize"; 58 public static final String VAR_ATTR = "variable"; 59 public static final String METHOD_ATTR = "method"; public static final String USER_GENERATOR_ATTR = "class"; 61 public static final String XPATH_ATTR = "xpath"; public static final String SCHEMA_LOCATION_ATTR = "schemaLocation"; 63 public static final String NO_NS_SCHEMA_LOCATION_ATTR = "noNamespaceSchemaLocation"; 64 65 67 public static final String TRUE_VALUE = "true"; 68 public static final String FALSE_VALUE = "false"; 69 70 public static final String TRUE_NUM_VALUE = "1"; 71 public static final String FALSE_NUM_VALUE = "0"; 72 73 public static final String INSERT_VALUE = "insert"; 74 public static final String CHECK_VALUE = "check"; 75 public static final String SELECT_VALUE = "select"; 76 public static final String UPDATE_VALUE = "update"; 77 78 public static final String DOCID_VALUE = "$DocumentID"; 79 public static final String DOCOID_VALUE = "$DocumentOID"; 80 public static final String BUCKET_VALUE = "$BucketOID"; 81 public static final String UOID_VALUE = "$UOID"; 82 public static final String PATHID_VALUE = "$PathOID"; 83 public static final String TAG_VALUE = "$QName"; 84 public static final String URI_VALUE = "$NamespaceURI$"; 85 public static final String LOCAL_VALUE = "$LocalName"; 86 public static final String RANK_VALUE = "$NodeRank"; 87 public static final String VALUE_VALUE = "$NodeValue"; 88 89 90 public static final short DOCID_CODE = 1; 91 public static final short DOCOID_CODE = 10; 92 public static final short BUCKET_CODE = 2; 93 public static final short UOID_CODE = 3; 94 public static final short PATHID_CODE = 4; 95 public static final short TAG_CODE = 5; 96 public static final short URI_CODE = 6; 97 public static final short LOCAL_CODE = 7; 98 public static final short RANK_CODE = 8; 99 public static final short VALUE_CODE = 9; 100 101 public static final int INSERT = 1; 102 public static final int CHECK = 2; 103 public static final int UPDATE = 3; 104 public static final int SELECT = 4; 105 106 public static final int NO_ROLE = 0; 107 public static final int KEY_ROLE = 1; 108 public static final int SELECT_ROLE = 2; 109 } 110 | Popular Tags |