예제 #1
0
 public String toString() {
   StringWriter writer = new StringWriter();
   writer.write(Helper.getShortClassName(getClass()));
   writer.write("(");
   writer.write(getValue().toString());
   writer.write(")");
   return writer.toString();
 }
예제 #2
0
 /**
  * OBSOLETE: Return the name of the field holding the sequence name.
  *
  * @deprecated use ((SDKSequence)getDefaultSequence()).getNameFieldName() instead
  */
 public String getSequenceNameFieldName() {
   if (getDefaultSequence() instanceof SDKSequence) {
     return ((SDKSequence) getDefaultSequence()).getNameFieldName();
   } else {
     throw ValidationException.wrongSequenceType(
         Helper.getShortClassName(getDefaultSequence()), "getNameFieldName");
   }
 }
예제 #3
0
 /**
  * OBSOLETE: Set the name of the field holding the sequence name.
  *
  * @deprecated use ((SDKSequence)getDefaultSequence()).setNameFieldName() instead
  */
 public void setSequenceNameFieldName(String sequenceNameFieldName) {
   if (getDefaultSequence() instanceof SDKSequence) {
     ((SDKSequence) getDefaultSequence()).setNameFieldName(sequenceNameFieldName);
   } else if (!sequenceNameFieldName.equals((new SDKSequence()).getNameFieldName())) {
     throw ValidationException.wrongSequenceType(
         Helper.getShortClassName(getDefaultSequence()), "setNameFieldName");
   }
 }
 public String toString() {
   return Helper.getShortClassName(getClass()) + "(" + getFullName() + ")";
 }