|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.DefaultTextEdit
public class DefaultTextEdit
The default implementation of a Text
, which contains the location of the change within
the JPQL query (offset) and the old and new values.
Constructor Summary | |
---|---|
DefaultTextEdit(int offset,
java.lang.String oldValue,
java.lang.String newValue)
Creates a new DefaultTextEdit . |
Method Summary | |
---|---|
int |
getLength()
Returns the length of the text to replace with the new value. |
java.lang.String |
getNewValue()
Returns the new value that should replace the old value. |
int |
getOffset()
Returns the location of the old value within the text. |
java.lang.String |
getOldValue()
Returns the value that was found within the text that should be replaced by the new value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTextEdit(int offset, java.lang.String oldValue, java.lang.String newValue)
DefaultTextEdit
.
offset
- The location of the old value within the textoldValue
- the value that was found within the text that should be replaced by the new valuenewValue
- The new value that should replace the old valueMethod Detail |
---|
public int getLength()
getLength
in interface TextEdit
public java.lang.String getNewValue()
getNewValue
in interface TextEdit
public int getOffset()
getOffset
in interface TextEdit
public java.lang.String getOldValue()
getOldValue
in interface TextEdit
public java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |