|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 value| Method Detail |
|---|
public int getLength()
getLength in interface TextEditpublic java.lang.String getNewValue()
getNewValue in interface TextEditpublic int getOffset()
getOffset in interface TextEditpublic java.lang.String getOldValue()
getOldValue in interface TextEditpublic java.lang.String toString()
toString in class java.lang.Object
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||