public class OdsHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
DEFINED_BIT
The DEFINED bit values.
|
static java.lang.String |
INSTANCEKEY_SPLITPATTERN |
static short |
INVALID
Invalid classifation flag.
|
static short |
NOT_MODIFIED_BIT
The NOT_MODIFIED bit values.
|
static java.lang.String |
ODS_DATE_FORMAT
The ASAM ODS date format.
|
static short |
VALID
Valid classification flag.
|
static short |
VALID_BIT
The VALID bit values.
|
static short |
VISIBLE_BIT
The VISIBLE bit values.
|
Constructor and Description |
---|
OdsHelper() |
Modifier and Type | Method and Description |
---|---|
static NameValueUnit |
appendNVU(java.util.List<NameValueUnit> nvus,
ApplicationElement aeObj,
java.lang.String aaName,
java.lang.String[] value)
Get a NameValueUnit according to the attribute settings and the incoming string literal.
|
static NameValueUnit |
appendNVU(OdsCacheMap cache,
java.util.List<NameValueUnit> nvus,
java.lang.String aaName,
java.lang.String[] value)
Get a NameValueUnit according to the attribut settings and the incoming string literal.
|
static void |
appendNVU(OdsCacheMap cache,
java.util.Vector<NameValueUnit> nvus,
ApplicationElement aeObj,
java.lang.String aaName,
java.lang.String value)
Get a NameValueUnit according to the attribut settings and the incoming string literal.
|
static void |
appendNVU(java.util.Vector<NameValueUnit> nvus,
ApplicationElement aeObj,
java.lang.String aaName,
java.lang.String value)
Get a NameValueUnit according to the attribut settings and the incoming string literal.
|
static NameValueUnit |
clone(NameValueUnit in)
Clone the NameValueUnit.
|
static TS_Union |
clone(TS_Union in)
Clone the input TS_Union.
|
static TS_UnionSeq |
clone(TS_UnionSeq in)
Clone the input TS_UnionSeq.
|
static TS_Value |
clone(TS_Value in)
Clone the TS_Value.
|
static TS_ValueSeq |
clone(TS_ValueSeq in)
Clone the TS_ValueSeq.
|
static boolean |
compare(T_LONGLONG t1,
T_LONGLONG t2)
Compare two item of datatype T_LONGLONG.
|
static int |
compareTo(T_LONGLONG t1,
T_LONGLONG t2)
Compare two item of datatype T_LONGLONG.
|
static NameValueUnit |
copy(NameValueUnit in,
DataType dt)
Copy the NameValueUnit, the value will be of the given datatype.
|
static TS_Union |
copy(TS_Union in,
DataType dt)
Copy the input TS_Union, the value will be of the given datatype.
|
static TS_Value |
copy(TS_Value in,
DataType dt)
Clone the TS_Value, the value will be of the given datatype.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
DataType datatype,
java.lang.String unit)
Create a name value unit.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
java.lang.String unit,
DataType datatype,
int value)
Create a name value unit for an integer value.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
java.lang.String unit,
DataType dt,
java.lang.String value)
This method creates a name value unit parsing the given string according to the given datatype.
|
static NameValueUnit |
createNameValueUnit(java.lang.String name,
java.lang.String unit,
DataType dt,
java.lang.String[] values)
This method creates a name value unit of type DS_STRING with the passed String[].
|
static QueryStructure |
createQueryStructure()
Creates an empty QueryStructure
|
static QueryStructureExt |
createQueryStructureExt()
Creates an empty QueryStructureExt
|
static SelValue |
createSelValue(T_LONGLONG aid,
java.lang.String aaName,
SelOpcode oper)
Create a SelValue structure all fields are filled without the value of the TS_Union.
|
static java.lang.String |
dtValueToString(int value)
This method returns the value of a DataType as a string.
|
static boolean |
equals(AoSession aoSession1,
AoSession aoSession2)
Return a boolean whether the given ASAM ODS sessions are equal.
|
static java.lang.String |
escapePattern(java.lang.String pattern)
Return the pattern with the special pattern characters escaped.
|
static TS_ValueSeq |
getAttrubuteValue(ElemResultSet[] res,
T_LONGLONG aid,
java.lang.String aaName)
Get the values of an attribute from the result set.
|
static TS_ValueSeq |
getAttrubuteValue(ResultSetExt[] res,
T_LONGLONG aid,
java.lang.String aaName)
Get the values of an attribute from the result set.
|
static int[] |
getDataType(ElemResultSet[] res,
T_LONGLONG aid,
java.lang.String aaDataName)
Return the list of the datatype values of the attributes of the Element Result Set.
|
static java.lang.String |
getDecoratedContext(AoSession aoSess,
java.lang.String conVarName)
Get the context variable from the session and replace the variables of the string
First the variable will be read from the session, then as system property and at least from the
environment.
|
static int[] |
getEnumSequence(TS_ValueSeq value)
Get the values of the enumeration independent of the datatype.
|
static float |
getHighestVersion(T_LONGLONG parIId,
T_LONGLONG parAId,
ApplicationElement aeObj,
java.lang.String instanceName)
Get the highest version of instance element.
|
static java.lang.String |
getHighestVersionString(T_LONGLONG parIId,
T_LONGLONG parAId,
ApplicationElement aeObj,
java.lang.String instanceName)
Get the highest string version of instance element.
|
static T_LONGLONG[] |
getIdSequence(ElemResultSet[] res,
ApplicationElement ae)
Return the list of the Id attributes of the Element Result Set.
|
static T_LONGLONG[] |
getIdSequence(ElemResultSet[] res,
ApplicationElement ae,
java.lang.String aaIdName)
Return the list of the Id attributes of the Element Result Set.
|
static T_LONGLONG[] |
getIdSequence(ElemResultSet[] res,
T_LONGLONG aid,
java.lang.String aaIdName)
Return the list of the Id attributes of the Element Result Set.
|
static T_LONGLONG[] |
getIdSequence(ResultSetExt[] res,
T_LONGLONG aid,
java.lang.String aaIdName)
Return the list of the Id attributes of the Result Set of the extended query.
|
static T_LONGLONG[] |
getIdSequence(TS_UnionSeq u)
Get a sequence of T_LONGLONG from the TS_UnionSeq.
|
static T_LONGLONG[] |
getIdSequence(TS_ValueSeq val)
Get a sequence of T_LLONGLONG from the TS_UnionSeq.
|
static InstanceElement |
getInstance(ApplicationStructure asObj,
java.lang.String key)
get the instance belongs to the given instance key.
|
static long[] |
getLongSeq(TS_UnionSeq u)
Get the sequence with long values from the TS_UnionSeq depending of teh datatype
|
static NameValueUnit |
getNameValueUnit(ApplicationElement aeObj,
java.lang.String aaName,
java.lang.String[] value)
Get a NameValueUnit according to the attribut settings and the incoming string literal.
|
static NameValueUnit |
getNameValueUnit(OdsCacheMap cache,
ApplicationElement aeObj,
java.lang.String aaName,
java.lang.String[] value)
Get a NameValueUnit according to the attribute settings and the incoming string literal.
|
static java.lang.String |
getSessionIdent(AoSession aoSession)
Get an ident of the session.
|
static int |
getSize(DataType dt)
Get the size of the value for the datatype.
|
static ApplicationElement |
getSuperTypeElementByBaseType(ApplicationStructure as,
java.lang.String baseType)
Get the super type element of the ASAM ODS base type.
|
static boolean |
isEmpty(ResultSetExt result) |
static boolean |
isNumeric(DataType dt)
Get a boolean whether the given datatype is a numeric datatype.
|
static void |
main(java.lang.String[] args)
Main class for testing the methods.
|
static java.lang.String |
replaceDateFields(java.lang.String binSubdir)
Replace the constants in the BIN_SUBDIR with teh values of the calender.
|
static TS_UnionSeq |
setLongLongSeq(DataType dt,
T_LONGLONG[] seq)
Set the LongLongSeq in the TS_Union depending of the datatype of the attributre
|
static TS_UnionSeq |
setLongSeq(DataType dt,
long[] seq)
Create a TS_UnionSeq with the integer values from long depending on the datatype.
|
static java.math.BigInteger |
toBigInteger(TS_Union u)
Convert the content of the Union to an BigInteger
|
static java.util.Date |
toDate(java.lang.String dateStr)
Make of the ODS Date string an date object
|
static int |
toExternalComponenet(int internal)
Convert the sequence represenation from the implicit values to the external component values. explicit ->
external_component, raw_linear -> raw_linear_external, raw_polynomial -> raw_polynomial_external and
raw_linear_calibrated -> raw_linear_calibrated_external.
|
static long |
toLong(T_LONGLONG id)
Get long presentation of a T_LONGLONG.
|
static T_LONGLONG |
toLongLong(long id)
Get T_LONGLONG presentation of a long.
|
static java.lang.String |
toString(ACL in)
Print the representation string of the ACL.
|
static java.lang.String |
toString(ACL[] in)
Print the representation string of the sequence or array of ACL.
|
static java.lang.String |
toString(AggrFunc in)
Print the representation string of the AggrFunc.
|
static java.lang.String |
toString(AIDName in)
Get the string presentation of the structure AIDName
|
static java.lang.String |
toString(AIDNameValueSeqUnitId in)
Print the representation string of the AIDNameValueSeqUnitId.
|
static java.lang.String |
toString(AIDNameValueSeqUnitId[] in)
Print the representation string of the sequence or array of AIDNameValueSeqUnitId.
|
static java.lang.String |
toString(AoException aoException)
Get the string of the AoException.
|
static java.lang.String |
toString(ApplicationRelationInstanceElementSeq in)
Print the representation string of the AIDNameValueSeqUnitId.
|
static java.lang.String |
toString(ApplicationRelationInstanceElementSeq[] in)
Print the representation string of the sequence or array of ApplicationRelationInstanceElementSeq.
|
static java.lang.String |
toString(ApplicationStructureValue in)
Print the representation string of the ApplicationStructureValue.
|
static java.lang.String |
toString(AttrType in)
Print the representation string of the AttrType.
|
static java.lang.String |
toString(BuildUpFunction in)
Print the representation string of the BuildUpFunction.
|
static java.lang.String |
toString(DataType dt)
This method returns the value of a DataType as a string.
|
static java.lang.String |
toString(java.util.Date date)
Format a date object to an ASAM ODS date string.
|
static java.lang.String |
toString(ElemId in)
Print the representation string of the ElemId.
|
static java.lang.String |
toString(ElemId[] in)
Print the representation string of the sequence or array of ElemId.
|
static java.lang.String |
toString(ElemResultSet in)
Print the representation string of the ElemResultSet.
|
static java.lang.String |
toString(ElemResultSet[] in)
Print the representation string of the sequence or array of ElemResultSet.
|
static java.lang.String |
toString(ElemResultSetExt in)
Print the representation string of the ElemResultSetExt.
|
static java.lang.String |
toString(ElemResultSetExt[] in)
Print the representation string of the sequence or array of ElemResultSetExt.
|
static java.lang.String |
toString(InitialRight in)
Print the representation string of the InitialRight.
|
static java.lang.String |
toString(InitialRight[] in)
Print the representation string of the sequence or array of InitialRight.
|
static java.lang.String |
toString(JoinType in)
Print the representation string of the JoinType.
|
static java.lang.String |
toString(NameUnit in)
Print the representation string of the NameUnit.
|
static java.lang.String |
toString(NameUnit[] in)
Print the representation string of the sequence or array of NameUnit.
|
static java.lang.String |
toString(NameValue in)
Print the representation string of the NameValue.
|
static java.lang.String |
toString(NameValue[] in)
Print the representation string of the sequence or array of NameValue.
|
static java.lang.String |
toString(NameValueSeqUnit in)
Print the representation string of the NameValueSeqUnit.
|
static java.lang.String |
toString(NameValueSeqUnit[] in)
Print the representation string of the sequence or array of NameValueSeqUnit.
|
static java.lang.String |
toString(NameValueSeqUnitId in)
Print the representation string of the NameValueSeqUnitId.
|
static java.lang.String |
toString(NameValueUnit in)
Print the representation string of the NameValueUnit.
|
static java.lang.String |
toString(NameValueUnit[] in)
Print the representation string of the sequence or array of NameValueUnit.
|
static java.lang.String |
toString(NameValueUnitId in)
Print the representation string of the NameValueUnitId.
|
static java.lang.String |
toString(QueryStatus in)
Print the representation string of the QueryStatus.
|
static java.lang.String |
toString(QueryStructure in)
Print the representation string of the QueryStructure.
|
static java.lang.String |
toString(QueryStructureExt in)
Print the representation string of the QueryStructureExt.
|
static java.lang.String |
toString(RelationRange in)
Print the representation string of the RelationRange.
|
static java.lang.String |
toString(Relationship in)
Print the representation string of the Relationship.
|
static java.lang.String |
toString(RelationType in)
Print the representation string of the RelationType.
|
static java.lang.String |
toString(ResultSetExt in)
Print the representation string of the ResultSetExt.
|
static java.lang.String |
toString(ResultSetExt[] in)
Print the representation string of the sequence or array of ResultSetExt.
|
static java.lang.String |
toString(RightsSet in)
Print the representation string of the RightsSet.
|
static java.lang.String |
toString(SelOpcode in)
Print the representation string of the SelOpcode.
|
static java.lang.String |
toString(SetType in)
Print the representation string of the SetType.
|
static java.lang.String |
toString(SeverityFlag sevFlag)
Get the string of the SeverityFlag.
|
static java.lang.String |
toString(T_COMPLEX s)
Get the string presentation of the dattype T_COMPLEX
|
static java.lang.String |
toString(T_DCOMPLEX s)
Get the string presentation of the datatype T_DCOMPLEX
|
static java.lang.String |
toString(T_ExternalReference extRef)
Get string presentation of a T_ExternalReference.
|
static java.lang.String |
toString(T_LONGLONG id)
Get string presentation of a T_LONGLONG.
|
static java.lang.String |
toString(T_LONGLONG[] in)
Print the representation string of the sequence or array of T_LONGLONG.
|
static java.lang.String |
toString(TS_Union union)
Convert a TS_Union structure to a string.
|
static java.lang.String |
toString(TS_UnionSeq in)
Print the representation string of the TS_UnionSeq.
|
static java.lang.String |
toString(TS_Value in)
Print the representation string of the TS_Value.
|
static java.lang.String |
toString(TS_ValueSeq in)
Print the representation string of the TS_ValueSeq.
|
static java.lang.String[] |
toStringArray(TS_UnionSeq in)
Get the representation string Array of the TS_UnionSeq.
|
static java.lang.String[] |
toStringArray(TS_ValueSeq value)
Get the values as String from the TS_ValueSeq.
|
static java.lang.String[] |
toStringArrayl(TS_UnionSeq u)
Get the values as String from the TS_UnionSeq.
|
static java.lang.String |
toStringSecurityRights(int in)
Print the integer which represent a SecurityRights
|
static java.lang.String |
toStringWithFlags(NameValueSeqUnit in)
Print the representation string of the NameValueSeqUnit.
|
static java.lang.String |
toStringWithFlags(NameValueSeqUnit[] in)
Print the representation string of the sequence or array of NameValueSeqUnit.
|
static java.lang.String |
toStringWithFlags(TS_ValueSeq in) |
public static final short VALID
public static final short INVALID
public static final short VALID_BIT
public static final short VISIBLE_BIT
public static final short NOT_MODIFIED_BIT
public static final short DEFINED_BIT
public static java.lang.String INSTANCEKEY_SPLITPATTERN
public static final java.lang.String ODS_DATE_FORMAT
public static InstanceElement getInstance(ApplicationStructure asObj, java.lang.String key) throws AoException, java.text.ParseException
key
- the instance keyAoException
java.text.ParseException
public static java.lang.String toString(AoException aoException)
aoException
- the exception.public static java.lang.String toString(SeverityFlag sevFlag)
sevFlag
- the severity flag.public static java.lang.String toString(DataType dt)
dt
- The datatype.public static java.lang.String dtValueToString(int value)
dt
- The datatype.public static java.lang.String toString(TS_Union union)
union
- the unionpublic static java.lang.String toString(ApplicationStructureValue in)
in
- the input structure.public static java.lang.String toString(NameValueSeqUnit[] in)
in
- the input structure.public static java.lang.String toStringWithFlags(NameValueSeqUnit[] in)
in
- the input structure.public static java.lang.String toString(NameValueSeqUnit in)
in
- the input structure.public static java.lang.String toStringWithFlags(NameValueSeqUnit in)
in
- the input structure.public static java.lang.String toString(NameValueSeqUnitId in)
in
- the input structure.public static java.lang.String toString(NameUnit[] in)
in
- the input structure.public static java.lang.String toString(NameUnit in)
in
- the input structure.public static java.lang.String toString(NameValue[] in)
in
- the input structure.public static java.lang.String toString(NameValue in)
in
- the input structure.public static java.lang.String toString(NameValueUnit[] in)
in
- the input structure.public static java.lang.String toString(NameValueUnit in)
in
- the input structure.public static java.lang.String toString(NameValueUnitId in)
in
- the input structure.public static java.lang.String toString(TS_Value in)
in
- the input structure.public static java.lang.String toString(TS_ValueSeq in)
in
- the input structure.public static java.lang.String toStringWithFlags(TS_ValueSeq in)
public static java.lang.String toString(TS_UnionSeq in)
in
- the input structure.public static java.lang.String[] toStringArray(TS_UnionSeq in)
in
- the input structure.public static java.lang.String toString(java.util.Date date)
date
- the date objectpublic static java.util.Date toDate(java.lang.String dateStr) throws java.text.ParseException
dateStr
- the date string, the ASAM ODS string presentation of the datejava.text.ParseException
public static java.lang.String toString(ACL[] in)
in
- the input structure.public static java.lang.String toString(ACL in)
in
- the input structure.public static java.lang.String toString(InitialRight[] in)
in
- the input structure.public static java.lang.String toString(InitialRight in)
in
- the input structure.public static java.lang.String toString(ElemResultSet[] in)
in
- the input structure.public static java.lang.String toString(ElemResultSet in)
in
- the input structure.public static java.lang.String toString(ElemResultSetExt[] in)
in
- the input structure.public static java.lang.String toString(ElemResultSetExt in)
in
- the input structure.public static java.lang.String toString(ResultSetExt[] in)
in
- the input structure.public static java.lang.String toString(ResultSetExt in)
in
- the input structure.public static java.lang.String toString(QueryStructure in)
in
- the input structure.public static java.lang.String toString(QueryStructureExt in)
in
- the input structure.public static java.lang.String toString(AIDNameValueSeqUnitId[] in)
in
- the input structure.public static java.lang.String toString(AIDNameValueSeqUnitId in)
in
- the input structure.public static java.lang.String toString(ApplicationRelationInstanceElementSeq[] in)
in
- the input structure.public static java.lang.String toString(ApplicationRelationInstanceElementSeq in)
in
- the input structure.public static java.lang.String toString(SetType in)
in
- the input structure.public static java.lang.String toString(Relationship in)
in
- the input structure.public static java.lang.String toString(RelationType in)
in
- the input structure.public static java.lang.String toString(RelationRange in)
in
- the input structure.public static java.lang.String toString(AggrFunc in)
in
- the input structure.public static java.lang.String toString(SelOpcode in)
in
- the input structure.public static java.lang.String toString(JoinType in)
in
- the input structure.public static java.lang.String toString(AttrType in)
in
- the input structure.public static java.lang.String toString(BuildUpFunction in)
in
- the input structure.public static java.lang.String toString(QueryStatus in)
in
- the input structure.public static java.lang.String toString(RightsSet in)
in
- the input structure.public static java.lang.String toStringSecurityRights(int in)
in
- the ssecurity rightspublic static java.lang.String toString(ElemId[] in)
in
- the input structure.public static java.lang.String toString(ElemId in)
in
- the input structure.public static T_LONGLONG toLongLong(long id)
id
- the long value.public static long toLong(T_LONGLONG id)
id
- a T_LONGLONG structurepublic static java.lang.String toString(T_LONGLONG[] in)
in
- the input structure.public static java.lang.String toString(T_LONGLONG id)
id
- a T_LONGLONG structurepublic static java.lang.String toString(T_ExternalReference extRef)
id
- a T_ExternalReference structurepublic static boolean isNumeric(DataType dt)
dt
- The datatype.public static boolean isEmpty(ResultSetExt result)
public static NameValueUnit getNameValueUnit(ApplicationElement aeObj, java.lang.String aaName, java.lang.String[] value) throws AoException, java.text.ParseException
aeObj
- The ApplicationElementaaName
- the attribute namevalue
- the string literalAoException
- a asam ods exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.public static NameValueUnit getNameValueUnit(OdsCacheMap cache, ApplicationElement aeObj, java.lang.String aaName, java.lang.String[] value) throws AoException, java.text.ParseException
cache
- The cache for ASAM ODS objects.aeObj
- The ApplicationElementaaName
- the attribute namevalue
- the string literalAoException
- a ASAM ODS exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.public static NameValueUnit appendNVU(java.util.List<NameValueUnit> nvus, ApplicationElement aeObj, java.lang.String aaName, java.lang.String[] value) throws AoException, java.text.ParseException
nvus
- the list to collect the nvus.aeObj
- The ApplicationElementaaName
- the attribute namevalue
- the string literalAoException
- a asam ods exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.public static NameValueUnit appendNVU(OdsCacheMap cache, java.util.List<NameValueUnit> nvus, java.lang.String aaName, java.lang.String[] value) throws AoException, java.text.ParseException
cache
- The cache for ASAM ODS objects.nvus
- the list to collect the nvus.aaName
- the attribute namevalue
- the string literalAoException
- a asam ods exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.public static void appendNVU(java.util.Vector<NameValueUnit> nvus, ApplicationElement aeObj, java.lang.String aaName, java.lang.String value) throws AoException, java.text.ParseException, AttributeNotFound
nvus
- the list to collect the nvus.aeObj
- The ApplicationElementaaName
- the attribute namevalue
- the string literalAoException
- a asam ods exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.AttributeNotFound
public static void appendNVU(OdsCacheMap cache, java.util.Vector<NameValueUnit> nvus, ApplicationElement aeObj, java.lang.String aaName, java.lang.String value) throws AoException, java.text.ParseException, AttributeNotFound
cache
- The cache for ASAM ODS objects.nvus
- the list to collect the nvus.aeObj
- The ApplicationElementaaName
- the attribute namevalue
- the string literalAoException
- a asam ods exception.java.text.ParseException
- occurred when the literal is not useful for the destination datatype.AttributeNotFound
public static boolean equals(AoSession aoSession1, AoSession aoSession2)
aoSession1
- theAoSessionaoSession2
- theAoSessionpublic static java.lang.String getSessionIdent(AoSession aoSession)
aoSession
- the session.public static float getHighestVersion(T_LONGLONG parIId, T_LONGLONG parAId, ApplicationElement aeObj, java.lang.String instanceName)
parIId
- The id of the instance element parent object (may be null).parAId
- The id of the application element parent object (may be null).aeObj
- The application element.instanceName
- The name of the instance element.public static java.lang.String getHighestVersionString(T_LONGLONG parIId, T_LONGLONG parAId, ApplicationElement aeObj, java.lang.String instanceName)
parIId
- The id of the instance element parent object (may be null).parAId
- The id of the application element parent object (may be null).aeObj
- The application element.instanceName
- The name of the instance element.public static SelValue createSelValue(T_LONGLONG aid, java.lang.String aaName, SelOpcode oper)
aid
- the application element IdaaName
- the attribute nameoper
- the operationpublic static T_LONGLONG[] getIdSequence(ElemResultSet[] res, ApplicationElement ae) throws AoException
res
- the element result set.ae
- the application element which Ids will be returnedAoException
public static T_LONGLONG[] getIdSequence(ElemResultSet[] res, ApplicationElement ae, java.lang.String aaIdName) throws AoException
res
- the element result set.ae
- the application element which Ids will be returnedaaIdName
- the name of the Id attribute.AoException
public static T_LONGLONG[] getIdSequence(ElemResultSet[] res, T_LONGLONG aid, java.lang.String aaIdName) throws AoException
res
- the element result set.aid
- the Id of the application element which Ids will be returnedaaIdName
- the name of the Id attribute.AoException
public static T_LONGLONG[] getIdSequence(ResultSetExt[] res, T_LONGLONG aid, java.lang.String aaIdName) throws AoException
res
- the element result set.aid
- the Id of the application element which Ids will be returnedaaIdName
- the name of the Id attribute.AoException
public static int[] getDataType(ElemResultSet[] res, T_LONGLONG aid, java.lang.String aaDataName) throws AoException
res
- the element result set.aid
- the Id of the application element which datatypes will be returnedaaDataName
- the name of the datatype attribute.AoException
public static int toExternalComponenet(int internal)
internal
- -
the implicit value.public static boolean compare(T_LONGLONG t1, T_LONGLONG t2)
t1
- the first itemt2
- teh second item.public static int compareTo(T_LONGLONG t1, T_LONGLONG t2)
t1
- the first itemt2
- teh second item.public static java.lang.String getDecoratedContext(AoSession aoSess, java.lang.String conVarName) throws AoException
aoSess
- the asam ods sessionconVarName
- the context variableAoException
- any occuring ASAM ODS exception.public static QueryStructureExt createQueryStructureExt()
public static QueryStructure createQueryStructure()
public static TS_Union clone(TS_Union in)
in
- the input TS_Union.public static TS_UnionSeq clone(TS_UnionSeq in)
in
- the input TS_UnionSeq.public static NameValueUnit clone(NameValueUnit in)
in
- the NameValueUnit to clone.public static TS_Value clone(TS_Value in)
in
- the TS_Value to clone.public static TS_ValueSeq clone(TS_ValueSeq in)
in
- the TS_ValueSeq to clone.public static T_LONGLONG[] getIdSequence(TS_ValueSeq val) throws AoException
val
- the value where the sequences must be loaded from.AoException
- all occurred AoExceptions.public static T_LONGLONG[] getIdSequence(TS_UnionSeq u) throws AoException
u
- the union where the sequences must be loaded from.AoException
- all occurred AoExceptions.public static NameValueUnit createNameValueUnit(java.lang.String name, DataType datatype, java.lang.String unit)
name
- The name to the NameValueUnit object.datatype
- The data type of the NameValueUnit object.unit
- The unit of the name value unit.public static NameValueUnit createNameValueUnit(java.lang.String name, java.lang.String unit, DataType dt, java.lang.String value)
name
- the name of the structure to be created.unit
- the unist string of the structure.dt
- The datatype to be parsed.value,
- The string to be parsed.public static NameValueUnit createNameValueUnit(java.lang.String name, java.lang.String unit, DataType dt, java.lang.String[] values)
name
- the name of the structure to be created.unit
- the unist string of the structure.dt
- The datatype to be parsed.value,
- The string array.public static ApplicationElement getSuperTypeElementByBaseType(ApplicationStructure as, java.lang.String baseType) throws AoException
as
- the application structurebaseType
- the base typeAoException
- any occurring ASAM ODS Exception.public static java.lang.String escapePattern(java.lang.String pattern)
pattern
- the sting.public static java.lang.String toString(T_COMPLEX s)
s
- the complex value.public static java.lang.String toString(T_DCOMPLEX s)
s
- the complex value.public static java.lang.String toString(AIDName in)
in
- the AIDNamepublic static void main(java.lang.String[] args)
args
- the command line arguments.public static int[] getEnumSequence(TS_ValueSeq value)
u
- the input unionpublic static NameValueUnit copy(NameValueUnit in, DataType dt) throws java.text.ParseException
in
- the input NameValueUnit.dt
- the datatype of the value.java.text.ParseException
- any occurring parser exception when parsing the value.public static TS_Value copy(TS_Value in, DataType dt) throws java.text.ParseException
in
- the input TS_Value.dt
- the datatype of the value.java.text.ParseException
- any occurring parser exception when parsing the value.public static TS_Union copy(TS_Union in, DataType dt) throws java.text.ParseException
in
- the input TS_Union.dt
- the datatype of the value.java.text.ParseException
- any occurring parser exception when parsing the value.public static long[] getLongSeq(TS_UnionSeq u)
u
- the TS_UnionSeq.public static TS_UnionSeq setLongSeq(DataType dt, long[] seq)
dt
- teh datatypeseq
- the sequence with long values.public static int getSize(DataType dt)
dt
- datatypepublic static TS_UnionSeq setLongLongSeq(DataType dt, T_LONGLONG[] seq)
dt
- the datatypeseq
- the LongLong sequencepublic static java.lang.String[] toStringArrayl(TS_UnionSeq u) throws AoException
value
- the valuesAoException,
- AO_NOT_IMPLEMENTED in case the datatype is not implemented.AoException
public static java.lang.String[] toStringArray(TS_ValueSeq value) throws AoException
value
- the valuesAoException,
- AO_NOT_IMPLEMENTED in case the datatype is not implemented.AoException
public static java.lang.String replaceDateFields(java.lang.String binSubdir)
binSubdir
- the pattern.public static java.math.BigInteger toBigInteger(TS_Union u) throws AoException
u
- the unionAoException
- when an datatype is given in the union which can not be converted.public static NameValueUnit createNameValueUnit(java.lang.String name, java.lang.String unit, DataType datatype, int value)
name
- the name of the attributeunit
- the unitdatatype
- the datatype should be DT_LONGvalue
- the valuepublic static TS_ValueSeq getAttrubuteValue(ResultSetExt[] res, T_LONGLONG aid, java.lang.String aaName)
res
- the result set.aid
- the application element IdaaName
- the attribute namepublic static TS_ValueSeq getAttrubuteValue(ElemResultSet[] res, T_LONGLONG aid, java.lang.String aaName)
res
- the result set.aid
- the application element IdaaName
- the attribute name