|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.fc.requireddata.StandardRequiredDataService
Use the newStandardRequiredDataService
static factory method(s),
not the StandardRequiredDataService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardRequiredDataService()
|
Method Summary | |
private void |
appendConstantExpression(LinkQueryData data,
boolean useRoleA,
QuerySpec querySpec)
Append a ConstantExpression based on whether the role object is Versioned or not. |
private void |
appendIdSearchCondition(LinkQueryData data,
QuerySpec querySpec,
boolean appendRoleA)
Determine if the specified role represents a Versioned object for the link class being queries and append either the branchIds or ida2a2s. |
private void |
appendOidSearchCondition(LinkQueryData data,
String role,
QuerySpec querySpec,
int[] fromIndices)
Append a SearchCondition where all ida2a2s for the specified role. |
private void |
appendVersionIdSearchCondition(LinkQueryData data,
String role,
QuerySpec querySpec,
int[] fromIndices)
Append a SearchCondition where all branchIds for the specified role and where latest iteration = true. |
private CompoundQuerySpec |
buildCompoundQuerySpec(SetOperator operator,
QuerySpec[] querySpecs)
Build a CompoundQuerySpec given a SetOperator and an array of QuerySpec objects. |
private QuerySpec[] |
buildQuerySpecs(LinkQueryData[] linkQueryData,
boolean singleRoleOnly,
boolean useRoleA)
Returns a List of QuerySpecs. |
String |
getConceptualClassname()
Deprecated. |
private QuerySpec |
getForeignKeyQuerySpec(AdHocForeignKeyLinkQueryData data)
|
private QuerySpec |
getLinkQueryDataQuerySpec(LinkQueryData data,
boolean useRoleA)
|
private QuerySpec |
getLinkQuerySpec(LinkQueryData data)
Get QuerySpec for a link class. |
private QuerySpec |
getLinkQuerySpec(LinkQueryData data,
boolean useRoleA)
Get a QuerySpec based on the type of LinkQueryData input. |
private String |
getRoleAttribute(LinkQueryData data,
boolean useRoleA)
Return the correct attribute to query against based on whether the role specified is Iterated. |
private long[] |
getRoleIds(LinkQueryData data,
String role)
Return true if the linkClass for the LinkQueryData instance is a type of either ObjectToVersionLink or VersionToVersionLink. |
private boolean |
hasIds(LinkQueryData data)
Return true if the LinkQueryData has either roleA or roleB ids. |
private boolean |
hasRoleAIds(LinkQueryData data)
Return true if the LinkQueryData has either roleA ids. |
private boolean |
hasRoleBIds(LinkQueryData data)
Return true if the LinkQueryData has either roleB ids. |
private QuerySpec |
initializeQuerySpec(Class linkClass,
boolean isSelectable)
Setup a QuerySpec that will return the id and classname attributes for the linkClass argument. |
private boolean |
isLinkQueryDataValid(LinkQueryData[] linkQueryData)
|
static StandardRequiredDataService |
newStandardRequiredDataService()
Default factory for the class. |
private WTKeyedMap |
processResults(QueryResult qr)
Construct a WTKeyedMap containing keys = link QueryKeys and values = role object QueryKeys. |
WTKeyedMap |
queryAdHocForeignKey(AdHocForeignKeyLinkQueryData[] adHocFKLinkQueryData)
Supports bulk queries for relationships that are not modeled as BinaryLink or ForeignKeyLink. |
WTCollection |
queryLinks(LinkQueryData[] linkQueryData)
Builds a query based on the information in an array of LinkQueryData objects and returns a WTCollection for the linkClasses defined in the LinkQueryData[]. |
WTKeyedMap |
queryLinks(LinkQueryData[] linkQueryData,
boolean useRoleA)
Queries a single link class role specified by the useRoleA boolean and the information defined in the LinkQueryData[]. |
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 static boolean VERBOSE
Constructor Detail |
public StandardRequiredDataService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardRequiredDataService newStandardRequiredDataService() throws WTException
WTException
public WTCollection queryLinks(LinkQueryData[] linkQueryData) throws WTException
queryLinks
in interface RequiredDataServiceSvr
linkQueryData
-
WTException
public WTKeyedMap queryLinks(LinkQueryData[] linkQueryData, boolean useRoleA) throws WTException
queryLinks
in interface RequiredDataServiceSvr
linkQueryData
- useRoleA
-
WTException
public WTKeyedMap queryAdHocForeignKey(AdHocForeignKeyLinkQueryData[] adHocFKLinkQueryData) throws WTException
queryAdHocForeignKey
in interface RequiredDataServiceSvr
adHocFKLinkQueryData
-
WTException
private WTKeyedMap processResults(QueryResult qr) throws WTException
qr
-
WTException
private CompoundQuerySpec buildCompoundQuerySpec(SetOperator operator, QuerySpec[] querySpecs) throws WTException
operator
- querySpecs
-
WTException
private QuerySpec getForeignKeyQuerySpec(AdHocForeignKeyLinkQueryData data) throws WTException
WTException
private QuerySpec getLinkQueryDataQuerySpec(LinkQueryData data, boolean useRoleA) throws WTException
WTException
private String getRoleAttribute(LinkQueryData data, boolean useRoleA) throws WTException
data
- useRoleA
-
WTException
private void appendConstantExpression(LinkQueryData data, boolean useRoleA, QuerySpec querySpec) throws WTException
data
- useRoleA
- querySpec
-
WTException
private QuerySpec getLinkQuerySpec(LinkQueryData data, boolean useRoleA) throws WTException
data
- useRoleA
-
WTException
private void appendIdSearchCondition(LinkQueryData data, QuerySpec querySpec, boolean appendRoleA) throws WTException
data
- querySpec
- appendRoleA
-
WTException
private QuerySpec getLinkQuerySpec(LinkQueryData data) throws WTException
data
-
WTException
private long[] getRoleIds(LinkQueryData data, String role)
data
- role
-
private void appendVersionIdSearchCondition(LinkQueryData data, String role, QuerySpec querySpec, int[] fromIndices) throws WTException
data
- role
- querySpec
- fromIndices
- - The from index for the linkClass value in the LinkQueryData argument.
WTException
private void appendOidSearchCondition(LinkQueryData data, String role, QuerySpec querySpec, int[] fromIndices) throws WTException
data
- role
- querySpec
- fromIndices
- - The from index for the linkClass value in the LinkQueryData argument.
WTException
private QuerySpec initializeQuerySpec(Class linkClass, boolean isSelectable) throws WTException
linkClass
- isSelectable
-
WTException
private boolean hasIds(LinkQueryData data)
data
-
private boolean hasRoleAIds(LinkQueryData data)
data
-
private boolean hasRoleBIds(LinkQueryData data)
data
-
private QuerySpec[] buildQuerySpecs(LinkQueryData[] linkQueryData, boolean singleRoleOnly, boolean useRoleA) throws WTException
linkQueryData
- singleRoleOnly
- useRoleA
-
WTException
private boolean isLinkQueryDataValid(LinkQueryData[] linkQueryData)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |