Hi Friends,
I have a question, perhaps they are a bit basic, but I have not found a way to get the nextval of a sequence, I need to get that value from a Backing Bean, I have the following source code in the entity (NameEntity.java)
public oracle.jbo.domain.Number nextSequenceVal (String SequenceName) {
oracle.jbo.domain.Number SequenceValue = null;
if (SequenceName! = null &&! sequenceName.equals ("")) {
oracle.jbo.domain.Number SequenceValue = new (0);
SequenceImpl seq = new SequenceImpl (SequenceName, getDBTransaction ());
seq.getSequenceNumber SequenceValue = ();
SequenceValue return;
else {}
oracle.jbo.domain.Number SequenceValue = new (0);
SequenceValue return;
}
}
In the Backing Bean I need to call this same method to get the next sequence number that will and thought to do the following:
NameEntity NameEntity MyEntity = ();
miEntidad.nextSequenceVal ();
This does not work, You know that you can make something similar.
Thank you very much for your help.