org.apache.cayenne.jpa.map
Class JpaAttributes
java.lang.Object
org.apache.cayenne.jpa.map.JpaAttributes
public class JpaAttributes
- extends Object
An attribute container.
- Author:
- Andrus Adamchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ids
protected Collection<JpaId> ids
embeddedId
protected JpaEmbeddedId embeddedId
basicAttributes
protected Collection<JpaBasic> basicAttributes
versionAttributes
protected Collection<JpaVersion> versionAttributes
manyToOneRelationships
protected Collection<JpaManyToOne> manyToOneRelationships
oneToManyRelationships
protected Collection<JpaOneToMany> oneToManyRelationships
oneToOneRelationships
protected Collection<JpaOneToOne> oneToOneRelationships
manyToManyRelationships
protected Collection<JpaManyToMany> manyToManyRelationships
embeddedAttributes
protected Collection<JpaEmbedded> embeddedAttributes
transientAttributes
protected Collection<JpaTransient> transientAttributes
JpaAttributes
public JpaAttributes()
getAttribute
public JpaAttribute getAttribute(String name)
size
public int size()
- Returns combined count of all attributes and relationships.
getId
public JpaId getId(String idName)
getBasicAttribute
public JpaBasic getBasicAttribute(String attributeName)
- Returns a JpaAttribute for a given property name
getManyToOneRelationship
public JpaManyToOne getManyToOneRelationship(String attributeName)
getOneToManyRelationship
public JpaOneToMany getOneToManyRelationship(String attributeName)
getIds
public Collection<JpaId> getIds()
getEmbeddedId
public JpaEmbeddedId getEmbeddedId()
setEmbeddedId
public void setEmbeddedId(JpaEmbeddedId embeddedId)
getBasicAttributes
public Collection<JpaBasic> getBasicAttributes()
getEmbeddedAttributes
public Collection<JpaEmbedded> getEmbeddedAttributes()
getEmbeddedAttribute
public JpaEmbedded getEmbeddedAttribute(String attributeName)
getManyToManyRelationships
public Collection<JpaManyToMany> getManyToManyRelationships()
getManyToManyRelationship
public JpaManyToMany getManyToManyRelationship(String attributeName)
getManyToOneRelationships
public Collection<JpaManyToOne> getManyToOneRelationships()
getOneToManyRelationships
public Collection<JpaOneToMany> getOneToManyRelationships()
getOneToOneRelationships
public Collection<JpaOneToOne> getOneToOneRelationships()
getOneToOneRelationship
public JpaOneToOne getOneToOneRelationship(String attributeName)
getTransientAttributes
public Collection<JpaTransient> getTransientAttributes()
getTransientAttribute
public JpaTransient getTransientAttribute(String attributeName)
- Returns a JpaTransient for a given property name
getVersionAttributes
public Collection<JpaVersion> getVersionAttributes()
getVersionAttribute
public JpaVersion getVersionAttribute(String attributeName)
- Returns a JpaTransient for a given property name
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.