Package org.apache.cayenne.map
Class DetectedDbEntity
java.lang.Object
org.apache.cayenne.map.Entity
org.apache.cayenne.map.DbEntity
org.apache.cayenne.map.DetectedDbEntity
- All Implemented Interfaces:
- Serializable,- EventListener,- ConfigurationNode,- DbAttributeListener,- DbEntityListener,- DbRelationshipListener,- CayenneMapEntry,- XMLSerializable
public class DetectedDbEntity extends DbEntity
A 
DbEntity subclass used to hold extra JDBC metadata.- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected StringprimaryKeyNameprotected StringtypeFields inherited from class org.apache.cayenne.map.DbEntitycatalog, generatedAttributes, primaryKey, primaryKeyGenerator, qualifier, schemaFields inherited from class org.apache.cayenne.map.Entityattributes, dataMap, name, OUTER_JOIN_INDICATOR, PATH_SEPARATOR, relationships
- 
Constructor SummaryConstructors Constructor Description DetectedDbEntity(String name)
- 
Method SummaryModifier and Type Method Description StringgetPrimaryKeyName()Returns the optional primary key name of this DbEntity.StringgetType()voidsetPrimaryKeyName(String primaryKeyName)Sets the optional primary key name of this DbEntity.voidsetType(String type)Methods inherited from class org.apache.cayenne.map.DbEntityacceptVisitor, addAttribute, clearAttributes, dbAttributeAdded, dbAttributeChanged, dbAttributeRemoved, dbEntityAdded, dbEntityChanged, dbEntityRemoved, dbRelationshipAdded, dbRelationshipChanged, dbRelationshipRemoved, encodeAsXML, getAttribute, getAttributes, getCatalog, getFullyQualifiedName, getGeneratedAttributes, getPrimaryKeyGenerator, getPrimaryKeys, getQualifier, getRelationship, getRelationshipMap, getRelationships, getSchema, isFullReplacementIdAttached, lastPathComponent, mappedObjEntities, removeAttribute, resolvePath, resolvePathComponents, setCatalog, setPrimaryKeyGenerator, setQualifier, setSchema, translateToRelatedEntityMethods inherited from class org.apache.cayenne.map.EntityaddAttribute, addRelationship, clearRelationships, getAnyRelationship, getAttributeMap, getDataMap, getName, getParent, removeRelationship, resolvePathComponents, setDataMap, setName, setParent, toString, updateAttribute
- 
Field Details- 
- 
type
 
- 
- 
Constructor Details- 
DetectedDbEntity
 
- 
- 
Method Details- 
setType
- 
getType
- 
setPrimaryKeyNameSets the optional primary key name of this DbEntity. This is not the same as the name of the DbAttribute, but the name of the unique constraint.
- 
getPrimaryKeyNameReturns the optional primary key name of this DbEntity. This is not the same as the name of the DbAttribute, but the name of the unique constraint.
 
-