1 29 30 package com.caucho.amber.cfg; 31 32 33 36 public class EntityConfig extends AbstractEnhancedConfig { 37 private String _name; 39 private String _className; 40 private boolean _isMetadataComplete; 41 42 private String _description; 44 private TableConfig _table; 45 private SecondaryTableConfig _secondaryTable; 46 private PrimaryKeyJoinColumnConfig _primaryKeyJoinColumn; 47 private IdClassConfig _idClass; 48 private InheritanceConfig _inheritance; 49 private String _discriminatorValue; 50 private DiscriminatorColumnConfig _discriminatorColumn; 51 private SequenceGeneratorConfig _sequenceGenerator; 52 private TableGeneratorConfig _tableGenerator; 53 private NamedQueryConfig _namedQuery; 54 private NamedNativeQueryConfig _namedNativeQuery; 55 private SqlResultSetMappingConfig _sqlResultSetMapping; 56 private boolean _excludeDefaultListeners; 57 private boolean _excludeSuperclassListeners; 58 private EntityListenersConfig _entityListeners; 59 private PrePersistConfig _prePersist; 60 private PostPersistConfig _postPersist; 61 private PreRemoveConfig _preRemove; 62 private PostRemoveConfig _postRemove; 63 private PreUpdateConfig _preUpdate; 64 private PostUpdateConfig _postUpdate; 65 private PostLoadConfig _postLoad; 66 private AttributeOverrideConfig _attributeOverride; 67 private AssociationOverrideConfig _associationOverride; 68 private AttributesConfig _attributes; 69 70 73 public AttributesConfig getAttributes() 74 { 75 return _attributes; 76 } 77 78 81 public String getClassName() 82 { 83 return _className; 84 } 85 86 89 public String getName() 90 { 91 return _name; 92 } 93 94 97 public boolean isMetaDataComplete() 98 { 99 return _isMetadataComplete; 100 } 101 102 105 public void setAttributes(AttributesConfig attributes) 106 { 107 _attributes = attributes; 108 } 109 110 113 public void addClass(String className) 114 { 115 _className = className; 116 } 117 118 121 public void setMetaDataComplete(boolean isMetaDataComplete) 122 { 123 _isMetadataComplete = isMetaDataComplete; 124 } 125 126 129 public void setName(String name) 130 { 131 _name = name; 132 } 133 134 public String getDescription() 135 { 136 return _description; 137 } 138 139 public void setDescription(String description) 140 { 141 _description = description; 142 } 143 144 public TableConfig getTable() 145 { 146 return _table; 147 } 148 149 public void setTable(TableConfig table) 150 { 151 _table = table; 152 } 153 154 public SecondaryTableConfig getSecondaryTable() 155 { 156 return _secondaryTable; 157 } 158 159 public void setSecondaryTable(SecondaryTableConfig secondaryTable) 160 { 161 _secondaryTable = secondaryTable; 162 } 163 164 public PrimaryKeyJoinColumnConfig getPrimaryKeyJoinColumn() 165 { 166 return _primaryKeyJoinColumn; 167 } 168 169 public void setPrimaryKeyJoinColumn(PrimaryKeyJoinColumnConfig primaryKeyJoinColumn) 170 { 171 _primaryKeyJoinColumn = primaryKeyJoinColumn; 172 } 173 174 public IdClassConfig getIdClass() 175 { 176 return _idClass; 177 } 178 179 public void setIdClass(IdClassConfig idClass) 180 { 181 _idClass = idClass; 182 } 183 184 public InheritanceConfig getInheritance() 185 { 186 return _inheritance; 187 } 188 189 public void setInheritance(InheritanceConfig inheritance) 190 { 191 _inheritance = inheritance; 192 } 193 194 public String getDiscriminatorValue() 195 { 196 return _discriminatorValue; 197 } 198 199 public void setDiscriminatorValue(String discriminatorValue) 200 { 201 _discriminatorValue = discriminatorValue; 202 } 203 204 public DiscriminatorColumnConfig getDiscriminatorColumn() 205 { 206 return _discriminatorColumn; 207 } 208 209 public void setDiscriminatorColumn(DiscriminatorColumnConfig discriminatorColumn) 210 { 211 _discriminatorColumn = discriminatorColumn; 212 } 213 214 public SequenceGeneratorConfig getSequenceGenerator() 215 { 216 return _sequenceGenerator; 217 } 218 219 public void setSequenceGenerator(SequenceGeneratorConfig sequenceGenerator) 220 { 221 _sequenceGenerator = sequenceGenerator; 222 } 223 224 public TableGeneratorConfig getTableGenerator() 225 { 226 return _tableGenerator; 227 } 228 229 public void setTableGenerator(TableGeneratorConfig tableGenerator) 230 { 231 _tableGenerator = tableGenerator; 232 } 233 234 public NamedQueryConfig getNamedQuery() 235 { 236 return _namedQuery; 237 } 238 239 public void setNamedQuery(NamedQueryConfig namedQuery) 240 { 241 _namedQuery = namedQuery; 242 } 243 244 public NamedNativeQueryConfig getNamedNativeQuery() 245 { 246 return _namedNativeQuery; 247 } 248 249 public void setNamedNativeQuery(NamedNativeQueryConfig namedNativeQuery) 250 { 251 _namedNativeQuery = namedNativeQuery; 252 } 253 254 public SqlResultSetMappingConfig getSqlResultSetMapping() 255 { 256 return _sqlResultSetMapping; 257 } 258 259 public void setSqlResultSetMapping(SqlResultSetMappingConfig sqlResultSetMapping) 260 { 261 _sqlResultSetMapping = sqlResultSetMapping; 262 } 263 264 public boolean getExcludeDefaultListeners() 265 { 266 return _excludeDefaultListeners; 267 } 268 269 public void setExcludeDefaultListeners(boolean excludeDefaultListeners) 270 { 271 _excludeDefaultListeners = excludeDefaultListeners; 272 } 273 274 public boolean getExcludeSuperclassListeners() 275 { 276 return _excludeSuperclassListeners; 277 } 278 279 public void setExcludeSuperclassListeners(boolean excludeSuperclassListeners) 280 { 281 _excludeSuperclassListeners = excludeSuperclassListeners; 282 } 283 284 public EntityListenersConfig getEntityListeners() 285 { 286 return _entityListeners; 287 } 288 289 public void setEntityListeners(EntityListenersConfig entityListeners) 290 { 291 _entityListeners = entityListeners; 292 } 293 294 public PrePersistConfig getPrePersist() 295 { 296 return _prePersist; 297 } 298 299 public void setPrePersist(PrePersistConfig prePersist) 300 { 301 _prePersist = prePersist; 302 } 303 304 public PostPersistConfig getPostPersist() 305 { 306 return _postPersist; 307 } 308 309 public void setPostPersist(PostPersistConfig postPersist) 310 { 311 _postPersist = postPersist; 312 } 313 314 public PreRemoveConfig getPreRemove() 315 { 316 return _preRemove; 317 } 318 319 public void setPreRemove(PreRemoveConfig preRemove) 320 { 321 _preRemove = preRemove; 322 } 323 324 public PostRemoveConfig getPostRemove() 325 { 326 return _postRemove; 327 } 328 329 public void setPostRemove(PostRemoveConfig postRemove) 330 { 331 _postRemove = postRemove; 332 } 333 334 public PreUpdateConfig getPreUpdate() 335 { 336 return _preUpdate; 337 } 338 339 public void setPreUpdate(PreUpdateConfig preUpdate) 340 { 341 _preUpdate = preUpdate; 342 } 343 344 public PostUpdateConfig getPostUpdate() 345 { 346 return _postUpdate; 347 } 348 349 public void setPostUpdate(PostUpdateConfig postUpdate) 350 { 351 _postUpdate = postUpdate; 352 } 353 354 public PostLoadConfig getPostLoad() 355 { 356 return _postLoad; 357 } 358 359 public void setPostLoad(PostLoadConfig postLoad) 360 { 361 _postLoad = postLoad; 362 } 363 364 public AttributeOverrideConfig getAttributeOverride() 365 { 366 return _attributeOverride; 367 } 368 369 public void setAttributeOverride(AttributeOverrideConfig attributeOverride) 370 { 371 _attributeOverride = attributeOverride; 372 } 373 374 public AssociationOverrideConfig getAssociationOverride() 375 { 376 return _associationOverride; 377 } 378 379 public void setAssociationOverride(AssociationOverrideConfig associationOverride) 380 { 381 _associationOverride = associationOverride; 382 } 383 384 public String toString() 385 { 386 return "EntityConfig[" + _name + ", " + _className + "]"; 387 } 388 } 389 | Popular Tags |