org.apache.cayenne.map
Class DetectedDbEntity

java.lang.Object
  extended by org.apache.cayenne.map.Entity
      extended by org.apache.cayenne.map.DbEntity
          extended by org.apache.cayenne.map.DetectedDbEntity
All Implemented Interfaces:
java.io.Serializable, java.util.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 Summary
protected  java.lang.String primaryKeyName
           
 
Fields inherited from class org.apache.cayenne.map.DbEntity
catalog, generatedAttributes, primaryKey, primaryKeyGenerator, qualifier, schema
 
Fields inherited from class org.apache.cayenne.map.Entity
attributes, dataMap, name, OUTER_JOIN_INDICATOR, PATH_SEPARATOR, relationships
 
Constructor Summary
DetectedDbEntity(java.lang.String name)
           
 
Method Summary
 java.lang.String getPrimaryKeyName()
          Returns the optional primary key name of this DbEntity.
 void setPrimaryKeyName(java.lang.String primaryKeyName)
          Sets the optional primary key name of this DbEntity.
 
Methods inherited from class org.apache.cayenne.map.DbEntity
acceptVisitor, addAttribute, clearAttributes, dbAttributeAdded, dbAttributeChanged, dbAttributeRemoved, dbEntityAdded, dbEntityChanged, dbEntityRemoved, dbRelationshipAdded, dbRelationshipChanged, dbRelationshipRemoved, encodeAsXML, getAttributes, getCatalog, getFullyQualifiedName, getGeneratedAttributes, getPrimaryKeyGenerator, getPrimaryKeys, getQualifier, getRelationshipMap, getRelationships, getSchema, isFullReplacementIdAttached, lastPathComponent, removeAttribute, resolvePath, resolvePathComponents, setCatalog, setPrimaryKeyGenerator, setQualifier, setSchema, translateToRelatedEntity
 
Methods inherited from class org.apache.cayenne.map.Entity
addAttribute, addRelationship, clearRelationships, getAnyRelationship, getAttribute, getAttributeMap, getDataMap, getName, getParent, getRelationship, removeRelationship, resolvePathComponents, setDataMap, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

primaryKeyName

protected java.lang.String primaryKeyName
Constructor Detail

DetectedDbEntity

public DetectedDbEntity(java.lang.String name)
Method Detail

setPrimaryKeyName

public void setPrimaryKeyName(java.lang.String primaryKeyName)
Sets 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.


getPrimaryKeyName

public java.lang.String getPrimaryKeyName()
Returns 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.



Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.