public boolean equals(Object obj) { if (obj instanceof UnaryTableSequence) { UnaryTableSequence other = (UnaryTableSequence)obj; if (equalNameAndSize(this, other)) { return getCounterFieldName().equals(other.getCounterFieldName()); } else { return false; } } else { return false; } }
protected void buildUpdateString2() { StringWriter writer = new StringWriter(); writer.write(" SET "); writer.write(getCounterFieldName()); writer.write(" = "); writer.write(getCounterFieldName()); writer.write(" + "); updateString2 = writer.toString(); }
public boolean equals(Object obj) { if (obj instanceof UnaryTableSequence) { UnaryTableSequence other = (UnaryTableSequence)obj; if (equalNameAndSize(this, other)) { return getCounterFieldName().equals(other.getCounterFieldName()); } else { return false; } } else { return false; } }
protected void buildUpdateString2() { StringWriter writer = new StringWriter(); writer.write(" SET "); writer.write(getCounterFieldName()); writer.write(" = "); writer.write(getCounterFieldName()); writer.write(" + "); updateString2 = writer.toString(); }
public boolean equals(Object obj) { if (obj instanceof UnaryTableSequence) { UnaryTableSequence other = (UnaryTableSequence)obj; if (equalNameAndSize(this, other)) { return getCounterFieldName().equals(other.getCounterFieldName()); } else { return false; } } else { return false; } }
protected void buildUpdateString2() { StringWriter writer = new StringWriter(); writer.write(" SET "); writer.write(getCounterFieldName()); writer.write(" = "); writer.write(getCounterFieldName()); writer.write(" + "); updateString2 = writer.toString(); }
/** * PUBLIC: * Return the name of the only field of this table */ public String getSequenceCounterFieldName() { return getUnaryTableSequence().getCounterFieldName(); }
/** * PUBLIC: * Return the name of the only field of this table */ public String getSequenceCounterFieldName() { return getUnaryTableSequence().getCounterFieldName(); }
@Override public int hashCode() { int result = super.hashCode(); String counterFieldName = getCounterFieldName(); result = 31 * result + (counterFieldName != null ? counterFieldName.hashCode() : 0); return result; }
/** * PUBLIC: * Return the name of the only field of this table */ public String getSequenceCounterFieldName() { return getUnaryTableSequence().getCounterFieldName(); }
protected String setDefaultOrAddSequenceString(Sequence sequence, boolean isSetDefault) { String prefix; if (isSetDefault) { prefix = "login.setDefaultSequence(new "; } else { prefix = "login.addSequence(new "; } String str; if (sequence instanceof TableSequence) { TableSequence ts = (TableSequence)sequence; str = "TableSequence(\"" + ts.getName() + "\", " + ts.getPreallocationSize() + ", \"" + ts.getTableName() + "\", \"" + ts.getNameFieldName() + "\", \"" + ts.getCounterFieldName() + "\"));"; } else if (sequence instanceof UnaryTableSequence) { UnaryTableSequence uts = (UnaryTableSequence)sequence; str = "UnaryTableSequence(\"" + uts.getName() + "\", " + uts.getPreallocationSize() + ", \"" + uts.getCounterFieldName() + "\"));"; } else { String typeName = Helper.getShortClassName(sequence); str = typeName + "(\"" + sequence.getName() + "\", " + sequence.getPreallocationSize() + "));"; } return prefix + str; }
protected String setDefaultOrAddSequenceString(Sequence sequence, boolean isSetDefault) { String prefix; if (isSetDefault) { prefix = "login.setDefaultSequence(new "; } else { prefix = "login.addSequence(new "; } String str; if (sequence instanceof TableSequence) { TableSequence ts = (TableSequence)sequence; str = "TableSequence(\"" + ts.getName() + "\", " + ts.getPreallocationSize() + ", \"" + ts.getTableName() + "\", \"" + ts.getNameFieldName() + "\", \"" + ts.getCounterFieldName() + "\"));"; } else if (sequence instanceof UnaryTableSequence) { UnaryTableSequence uts = (UnaryTableSequence)sequence; str = "UnaryTableSequence(\"" + uts.getName() + "\", " + uts.getPreallocationSize() + ", \"" + uts.getCounterFieldName() + "\"));"; } else { String typeName = Helper.getShortClassName(sequence); str = typeName + "(\"" + sequence.getName() + "\", " + sequence.getPreallocationSize() + "));"; } return prefix + str; }
protected String setDefaultOrAddSequenceString(Sequence sequence, boolean isSetDefault) { String prefix; if (isSetDefault) { prefix = "login.setDefaultSequence(new "; } else { prefix = "login.addSequence(new "; } String str; if (sequence instanceof TableSequence) { TableSequence ts = (TableSequence)sequence; str = "TableSequence(\"" + ts.getName() + "\", " + ts.getPreallocationSize() + ", \"" + ts.getTableName() + "\", \"" + ts.getNameFieldName() + "\", \"" + ts.getCounterFieldName() + "\"));"; } else if (sequence instanceof UnaryTableSequence) { UnaryTableSequence uts = (UnaryTableSequence)sequence; str = "UnaryTableSequence(\"" + uts.getName() + "\", " + uts.getPreallocationSize() + ", \"" + uts.getCounterFieldName() + "\"));"; } else { String typeName = Helper.getShortClassName(sequence); str = typeName + "(\"" + sequence.getName() + "\", " + sequence.getPreallocationSize() + "));"; } return prefix + str; }