|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.dataops.objectcol.CollectionHelper
Supported API: false
Extendable: false
Nested Class Summary | |
protected static class |
CollectionHelper.TmpCriteriaHolder
|
Field Summary | |
private static String |
CLASSNAME
|
protected static int |
CRITERIA_CACHE_SIZE
|
protected static Cache |
criteriaHolderCache
|
static boolean |
DEF_ALLOW_SUBTYPES
|
static Class[] |
DEF_OBJ_TYPES
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
LOCALIZATION_MARKER_LEFT_END
|
static int |
LOCALIZATION_MARKER_LEFT_END_LENGTH
|
static String |
LOCALIZATION_MARKER_RIGHT_END
|
static int |
LOCALIZATION_MARKER_RIGHT_END_LENGTH
|
static String |
LOCALIZATION_SEP
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static CollectionService |
service
Supported API: false |
private static boolean |
VERBOSE
|
static int[] |
ZERO
|
Constructor Summary | |
CollectionHelper()
|
Method Summary | |
static CriterionObject |
addCriterion(CollectionCriteria criteria,
BaseCriterionDef definition,
InputValue[] inputs)
Supported API: false |
static void |
addDefaultObjTypeCriterionObject(CollectionCriteria criteria)
|
static void |
addObjTypeCriterionObject(CollectionCriteria criteria,
Class[] types,
boolean allowSub)
|
static boolean |
containsObjTypeCriterionDef(CollectionCriteria criteria)
|
private static BaseCriterionDef |
createCriterionDef(Element content)
|
private static BaseCriterionDef |
createCriterionDef(String unique_name,
String displayName,
String description,
Element content)
|
private static RelationshipMapDef |
createRelationshipMapDef(String unique_name,
String displayName,
String description,
Element content)
|
protected static CollectionHelper.TmpCriteriaHolder |
createTmpCriteriaHolder(CollectionCriteria criteria)
|
static File |
exportToFile(CollectionCriteria criteria,
RelationshipMap map)
Supported API: false |
protected static CollectionHelper.TmpCriteriaHolder |
fetchTmpCriteriaHolder(CollectionCriteria criteria)
|
static BaseCriterionDef[] |
getAvailableCriterionDefs(BaseCriterionDef[] current)
Supported API: false |
static WTContainerRef |
getContextRefFromCriterions(CriterionObject[] criterions,
InputValue[][] inputs)
|
static WTContainerRef[] |
getContextRefsFromCriterions(CriterionObject[] criterions,
InputValue[][] inputs)
|
static BaseCriterionDef |
getCriterionDef(String name)
Supported API: false |
static WTSet |
getCriterionDefValidWith(BaseCriterionDef def,
boolean sourceRole,
boolean targetRole)
|
static CriterionObject[] |
getCriterionObjects(CollectionCriteria criteria)
Supported API: false |
static RelationshipMapDef |
getRelationshipMapDef(String name)
Supported API: false |
static void |
importFromFile(File file)
Supported API: false |
static boolean |
isEditable(CollectionCriteria criteria)
Supported API: false |
static boolean |
isUsed(BaseCriterionDef definition)
Supported API: false |
static boolean |
isUsed(CollectionCriteria criteria)
Supported API: false |
static boolean |
isUsed(RelationshipMap map)
Supported API: false |
static BaseCriterionDef |
loadCriterionDef(XMLLob xmlspec,
boolean primaryDef)
Supported API: false |
static RelationshipMapDef |
loadRelationshipMapDef(XMLLob xmlspec)
Supported API: false |
static List |
makeValueList(InputType type,
String value,
boolean inflateRef)
|
protected static void |
PP(String msg)
|
protected static void |
PPln(String msg)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(CollectionHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static void |
removeCriterion(CollectionCriteria criteria,
CriterionObject criterion)
Supported API: false |
static CollectionCriteria |
saveCollectionCriteria(CollectionCriteria criteria)
Supported API: false |
protected static CollectionCriteria |
saveCollectionCriteria(CollectionCriteria criteria,
CollectionHelper.TmpCriteriaHolder tch)
|
private static BaseCriterionDef |
saveCriterionDef(BaseCriterionDef def)
|
private static RelationshipMapDef |
saveRelationshipMapDef(RelationshipMapDef def)
|
static CollectionCriteria |
storeCollectionCriteria(CollectionCriteria criteria)
Supported API: false |
static RelationshipMap |
storeRelationshipMap(String name,
RelationshipMapDef definition,
InputValue[] inputs)
Supported API: false |
static CriterionObject |
updateCriterion(CollectionCriteria criteria,
CriterionObject criterion,
InputValue[] values)
Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final CollectionService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean VERBOSE
protected static int CRITERIA_CACHE_SIZE
protected static Cache criteriaHolderCache
public static int[] ZERO
public static final Class[] DEF_OBJ_TYPES
public static final boolean DEF_ALLOW_SUBTYPES
public static final String LOCALIZATION_MARKER_RIGHT_END
public static final String LOCALIZATION_MARKER_LEFT_END
public static final int LOCALIZATION_MARKER_RIGHT_END_LENGTH
public static final int LOCALIZATION_MARKER_LEFT_END_LENGTH
public static final String LOCALIZATION_SEP
Constructor Detail |
public CollectionHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(CollectionHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static BaseCriterionDef[] getAvailableCriterionDefs(BaseCriterionDef[] current) throws WTException
current
-
WTException
public static CriterionObject addCriterion(CollectionCriteria criteria, BaseCriterionDef definition, InputValue[] inputs) throws WTException
criteria
- definition
- inputs
-
WTException
public static void removeCriterion(CollectionCriteria criteria, CriterionObject criterion) throws WTException
criteria
- criterion
-
WTException
public static CollectionCriteria storeCollectionCriteria(CollectionCriteria criteria) throws WTException
criteria
-
WTException
public static BaseCriterionDef loadCriterionDef(XMLLob xmlspec, boolean primaryDef) throws WTException
xmlspec
- primaryDef
-
WTException
public static BaseCriterionDef getCriterionDef(String name) throws WTException
name
-
WTException
public static CriterionObject[] getCriterionObjects(CollectionCriteria criteria) throws WTException
criteria
-
WTException
public static CriterionObject updateCriterion(CollectionCriteria criteria, CriterionObject criterion, InputValue[] values) throws WTException
criteria
- criterion
- values
-
WTException
public static CollectionCriteria saveCollectionCriteria(CollectionCriteria criteria) throws WTException
criteria
-
WTException
public static boolean isEditable(CollectionCriteria criteria) throws WTException
criteria
-
WTException
public static boolean isUsed(CollectionCriteria criteria) throws WTException
criteria
-
WTException
public static boolean isUsed(BaseCriterionDef definition) throws WTException
definition
-
WTException
public static RelationshipMapDef loadRelationshipMapDef(XMLLob xmlspec) throws WTException
xmlspec
-
WTException
public static RelationshipMap storeRelationshipMap(String name, RelationshipMapDef definition, InputValue[] inputs) throws WTException
name
- definition
- inputs
-
WTException
public static RelationshipMapDef getRelationshipMapDef(String name) throws WTException
name
-
WTException
public static boolean isUsed(RelationshipMap map) throws WTException
map
-
WTException
public static File exportToFile(CollectionCriteria criteria, RelationshipMap map) throws WTException
criteria
- map
-
WTException
public static void importFromFile(File file) throws WTException
file
-
WTException
private static BaseCriterionDef saveCriterionDef(BaseCriterionDef def) throws WTException
WTException
private static BaseCriterionDef createCriterionDef(Element content) throws WTException
WTException
private static BaseCriterionDef createCriterionDef(String unique_name, String displayName, String description, Element content) throws WTException
WTException
protected static CollectionHelper.TmpCriteriaHolder fetchTmpCriteriaHolder(CollectionCriteria criteria) throws WTException
WTException
protected static CollectionHelper.TmpCriteriaHolder createTmpCriteriaHolder(CollectionCriteria criteria) throws WTException
WTException
protected static CollectionCriteria saveCollectionCriteria(CollectionCriteria criteria, CollectionHelper.TmpCriteriaHolder tch) throws WTException
WTException
public static WTContainerRef getContextRefFromCriterions(CriterionObject[] criterions, InputValue[][] inputs) throws WTException
WTException
public static WTContainerRef[] getContextRefsFromCriterions(CriterionObject[] criterions, InputValue[][] inputs) throws WTException
WTException
public static List makeValueList(InputType type, String value, boolean inflateRef) throws WTException
WTException
private static RelationshipMapDef createRelationshipMapDef(String unique_name, String displayName, String description, Element content) throws WTException
WTException
private static RelationshipMapDef saveRelationshipMapDef(RelationshipMapDef def) throws WTException
WTException
public static boolean containsObjTypeCriterionDef(CollectionCriteria criteria) throws WTException
WTException
public static void addDefaultObjTypeCriterionObject(CollectionCriteria criteria) throws WTException
WTException
public static void addObjTypeCriterionObject(CollectionCriteria criteria, Class[] types, boolean allowSub) throws WTException
WTException
protected static void PPln(String msg)
protected static void PP(String msg)
public static WTSet getCriterionDefValidWith(BaseCriterionDef def, boolean sourceRole, boolean targetRole) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |