|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.requireddata.LinkQueryData
wt.fc.requireddata.AdHocForeignKeyLinkQueryData
Data carrier for ad hoc foreign key queries, i.e. queries for relationships
that are not modeled as BinaryLink or ForeignKeyLink. E.g., this data
carrier would support Iterated class branchId validation where the Iterated
branchId is an "adhoc" foreign key to the ControlBranch primary key.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
foreignKeyAttribute
|
private boolean |
includeDescendants
|
private String |
parentAttribute
|
private Class |
parentClass
|
private static String |
RESOURCE
|
Fields inherited from class wt.fc.requireddata.LinkQueryData |
|
Constructor Summary | |
private |
AdHocForeignKeyLinkQueryData()
|
Method Summary | |
private void |
foreignKeyAttributeValidate(String a_ForeignKeyAttribute)
|
String |
getForeignKeyAttribute()
Gets the value of the attribute: foreignKeyAttribute. |
Class |
getForeignKeyClass()
Returns the Class that plays the foreign key role. |
String |
getParentAttribute()
Gets the value of the attribute: parentAttribute. |
Class |
getParentClass()
Gets the value of the attribute: parentClass. |
long[] |
getParentObjectIds()
Returns ids for the parent objects. |
boolean |
isIncludeDescendants()
Gets the value of the attribute: includeDescendants. |
static AdHocForeignKeyLinkQueryData |
newInstance(Class foreignKeyClass,
String a_foreignKeyAttribute,
Class a_parentClass,
String a_parentAttribute,
long[] parentObjectIds,
boolean includeDescendants)
Supported API: false |
static AdHocForeignKeyLinkQueryData |
newInstance(Class foreignKeyClass,
String a_foreignKeyAttribute,
Class a_parentClass,
String a_parentAttribute,
Long[] parentObjectIds,
boolean includeDescendants)
Supported API: false |
private void |
parentAttributeValidate(String a_ParentAttribute)
|
void |
setForeignKeyAttribute(String a_ForeignKeyAttribute)
Sets the value of the attribute: foreignKeyAttribute. |
void |
setForeignKeyClass(Class foreignKeyClass)
Supported API: false |
void |
setIncludeDescendants(boolean a_IncludeDescendants)
Sets the value of the attribute: includeDescendants. |
void |
setParentAttribute(String a_ParentAttribute)
Sets the value of the attribute: parentAttribute. |
void |
setParentClass(Class a_ParentClass)
Sets the value of the attribute: parentClass. |
void |
setParentObjectIds(long[] parentObjectIds)
Supported API: false |
String |
toString()
|
Methods inherited from class wt.fc.requireddata.LinkQueryData |
getIdString, getLinkClass, getRoleAIds, getRoleBIds, newInstance, newInstance, setLinkClass, setRoleAIds, setRoleBIds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String foreignKeyAttribute
private Class parentClass
private String parentAttribute
private boolean includeDescendants
Constructor Detail |
private AdHocForeignKeyLinkQueryData()
Method Detail |
public String getForeignKeyAttribute()
public void setForeignKeyAttribute(String a_ForeignKeyAttribute) throws WTPropertyVetoException
a_ForeignKeyAttribute
-
WTPropertyVetoException
private void foreignKeyAttributeValidate(String a_ForeignKeyAttribute) throws WTPropertyVetoException
a_ForeignKeyAttribute
-
WTPropertyVetoException
public Class getParentClass()
public void setParentClass(Class a_ParentClass) throws WTPropertyVetoException
a_ParentClass
-
WTPropertyVetoException
public String getParentAttribute()
public void setParentAttribute(String a_ParentAttribute) throws WTPropertyVetoException
a_ParentAttribute
-
WTPropertyVetoException
private void parentAttributeValidate(String a_ParentAttribute) throws WTPropertyVetoException
a_ParentAttribute
-
WTPropertyVetoException
public boolean isIncludeDescendants()
public void setIncludeDescendants(boolean a_IncludeDescendants) throws WTPropertyVetoException
a_IncludeDescendants
-
WTPropertyVetoException
public static AdHocForeignKeyLinkQueryData newInstance(Class foreignKeyClass, String a_foreignKeyAttribute, Class a_parentClass, String a_parentAttribute, long[] parentObjectIds, boolean includeDescendants)
foreignKeyClass
- a_foreignKeyAttribute
- a_parentClass
- a_parentAttribute
- parentObjectIds
- includeDescendants
-
public static AdHocForeignKeyLinkQueryData newInstance(Class foreignKeyClass, String a_foreignKeyAttribute, Class a_parentClass, String a_parentAttribute, Long[] parentObjectIds, boolean includeDescendants)
foreignKeyClass
- a_foreignKeyAttribute
- a_parentClass
- a_parentAttribute
- parentObjectIds
- includeDescendants
-
public long[] getParentObjectIds()
public Class getForeignKeyClass()
public void setForeignKeyClass(Class foreignKeyClass) throws WTPropertyVetoException
foreignKeyClass
-
WTPropertyVetoException
public void setParentObjectIds(long[] parentObjectIds) throws WTPropertyVetoException
parentObjectIds
-
WTPropertyVetoException
public String toString()
toString
in class LinkQueryData
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |