Book a Demo

Author Topic: JAVA API: How to get Database Operation Properties  (Read 2945 times)

Joerch

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
JAVA API: How to get Database Operation Properties
« on: November 18, 2009, 12:29:35 am »
Hello!

I have a simple question: How can I get the Information if an index ist ascending or descing?

The Information is in the window "Database operation Properties", but I have not found a method in the Java API to get it.

Can anybody help me?

With kind regards

Joerg
« Last Edit: November 18, 2009, 12:29:54 am by joerch »

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: JAVA API: How to get Database Operation Proper
« Reply #1 on: November 19, 2009, 04:17:06 am »
It's in the tagged values

Code: [Select]
 Collection<MethodTag> tags = method.getTaggedValues();
  if(tags != null) {
    MethodTag tag = tags.GetByName("property");
    String taggedValues = tag.getValue();
    // In the form "tag1=value1;tag2=value2{;tagN=valueN}"

You will want the tag "Sort=???"

Jim

Joerch

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: JAVA API: How to get Database Operation Proper
« Reply #2 on: December 01, 2009, 11:04:51 pm »
Yes, thank you!

That was exactly what I needed!

kind regards

Joerch