public class HasOneAssociation extends AbstractAssociation
| Constructor and Description |
|---|
HasOneAssociation(Class<?> model)
Creates an instance of a hasOne association.
|
HasOneAssociation(String model)
Creates an instance of a hasOne association.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getGetterName() |
String |
getSetterName() |
void |
setGetterName(String getterName)
The name of the getter function that will be added to the local model's
prototype.
|
void |
setSetterName(String setterName)
The name of the setter function that will be added to the local model's
prototype.
|
createAssociation, getAssociationKey, getForeignKey, getModel, getModelName, getPrimaryKey, getType, setAssociationKey, setForeignKey, setPrimaryKeypublic HasOneAssociation(String model)
AbstractAssociation.model to the
provided parameters.model - The name of the model that is being associated with.public HasOneAssociation(Class<?> model)
AbstractAssociation.model to the
full qualified name of the model class or the string from
Model.value() if present on the class.model - The class of the model that is being associated with.public String getSetterName()
public void setSetterName(String setterName)
Corresponds to the setterName config property.
setterName - the new name for the getterNamepublic String getGetterName()
public void setGetterName(String getterName)
Corresponds to the getterName config property.
getterName - the new name for the getterNameCopyright © 2010-2013. All Rights Reserved.