SRJRCFrames
v0.1.296

de.schwarzrot.data
Interface ChildEntity<E extends Entity>

Type Parameters:
E - - the type of the parent entity
All Superinterfaces:
Comparable<Entity>, Entity, com.jgoodies.binding.beans.Observable, Serializable
All Known Subinterfaces:
NamedChildEntity<A,B>
All Known Implementing Classes:
AbstractMetaChildEntity, AttributeDomain, ColumnDefinition, DriveMapping, IndexDefinition, Option, SchemaDefinition, TableDefinition

public interface ChildEntity<E extends Entity>
extends Entity

interface for all children types, that means for entities, that model a 1:n relation and which need to keep the id of the parent instance.

Author:
Reinhard Mantey

Field Summary
static String PARENT_ATTR_NAME
           
 
Method Summary
 E getParent()
          returns the parent entity instance of this entity instance
 Class<E> getParentType()
          returns the type of the parent entity
 void setParent(E parent)
          sets the parent entity instance to the given instance
 
Methods inherited from interface de.schwarzrot.data.Entity
getCModified, getDefaultOrder, getDtCreated, getDtModified, getId, getMappings, getPersistenceName, getSchemaName, getSkipList, getSystemClass, getUCreated, getUModified, getUniqColumnNames, getUserAttributes, getVariantColumnName, getVariantTypeMap, isDirty, isUserType, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setUCreated, setUModified, validate
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.jgoodies.binding.beans.Observable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

PARENT_ATTR_NAME

static final String PARENT_ATTR_NAME
See Also:
Constant Field Values
Method Detail

getParent

E getParent()
returns the parent entity instance of this entity instance

Returns:
an entity

getParentType

Class<E> getParentType()
returns the type of the parent entity

Returns:
the parent entity

setParent

void setParent(E parent)
sets the parent entity instance to the given instance

Parameters:
parent - the new parent entity instance

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.