Transfer version 1.1

transfer.com.object
Class CompositeKey

WEB-INF.cftags.component
        extended by transfer.com.object.Property
            extended by transfer.com.object.AbstractBaseKey
                extended by transfer.com.object.CompositeKey

public class CompositeKey
extends AbstractBaseKey

Represents a Composite Key


Constructor Summary
init(Object object)
          Constructor
 
Method Summary
 boolean containsManyToOneByName(string name)
          Checks if it has a many to one as a member of the composite key
 boolean containsParentOneToManyByName(string name)
          Checks if it has a parent one to many as a member of the composite key
private array getManyToOneCollection()
 any getManyToOneIterator()
          returns a java.util.Iterator for the Manytoone
private Object getObject()
private array getParentOneToManyCollection()
 any getParentOneToManyIterator()
          returns a java.util.Iterator for the parent onetomany
private array getPropertyCollection()
 any getPropertyIterator()
          returns a java.util.Iterator for the properties
private void setManyToOneCollection(array ManyToOneCollection)
 void setMemento(struct memento)
          Sets the state of the object
private void setObject(Object Object)
private void setParentOneToManyCollection(array ParentOneToManyCollection)
private void setPropertyCollection(array PropertyCollection)
 void validate()
          Throws an exception if validation fails
 
Methods inherited from class transfer.com.object.AbstractBaseKey
getIsComposite, setIsComposite, throw
 
Methods inherited from class transfer.com.object.Property
getColumn, getIgnoreInsert, getIgnoreUpdate, getIsNullable, getName, getNullValue, getRefreshInsert, getRefreshUpdate, getSet, getType, hasNullValue, removeNullValue, setColumn, setIgnoreInsert, setIgnoreUpdate, setIsNullable, setName, setNullValue, setRefreshInsert, setRefreshUpdate, setSet, setType
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(Object object)
Constructor

Parameters:
object - The object that this is a key for
Method Detail

containsManyToOneByName

public boolean containsManyToOneByName(string name)
Checks if it has a many to one as a member of the composite key

Parameters:
name - The name of the parent onetomany

containsParentOneToManyByName

public boolean containsParentOneToManyByName(string name)
Checks if it has a parent one to many as a member of the composite key

Parameters:
name - The name of the parent onetomany

getManyToOneCollection

private array getManyToOneCollection()


getManyToOneIterator

public any getManyToOneIterator()
returns a java.util.Iterator for the Manytoone


getObject

private Object getObject()


getParentOneToManyCollection

private array getParentOneToManyCollection()


getParentOneToManyIterator

public any getParentOneToManyIterator()
returns a java.util.Iterator for the parent onetomany


getPropertyCollection

private array getPropertyCollection()


getPropertyIterator

public any getPropertyIterator()
returns a java.util.Iterator for the properties


setManyToOneCollection

private void setManyToOneCollection(array ManyToOneCollection)

Parameters:
ManyToOneCollection

setMemento

public void setMemento(struct memento)
Sets the state of the object

Overrides:
setMemento in class AbstractBaseKey
Parameters:
memento - the state to be set

setObject

private void setObject(Object Object)

Parameters:
Object

setParentOneToManyCollection

private void setParentOneToManyCollection(array ParentOneToManyCollection)

Parameters:
ParentOneToManyCollection

setPropertyCollection

private void setPropertyCollection(array PropertyCollection)

Parameters:
PropertyCollection

validate

public void validate()
Throws an exception if validation fails

Overrides:
validate in class AbstractBaseKey

Transfer version 1.1