📄 abstractsequence.java
字号:
/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Fri Oct 19 13:56:08 CST 2007 by MyEclipse Hibernate Tool.
*/
package com.pegasus.framework.pojo.vo;
import java.io.Serializable;
/**
* A class that represents a row in the sequence table.
* You can customize the behavior of this class by editing the class, {@link Sequence()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractSequence
extends com.pegasus.framework.pojo.AbstractBusinessObject
implements Serializable
{
/** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.String tablename;
/** The value of the simple startId property. */
private java.lang.Long startId;
/** The value of the simple lastId property. */
private java.lang.Long lastId;
/** The value of the simple increaseId property. */
private java.lang.Long increaseId;
/**
* Simple constructor of AbstractSequence instances.
*/
public AbstractSequence()
{
}
/**
* Constructor of AbstractSequence instances given a simple primary key.
* @param tablename
*/
public AbstractSequence(java.lang.String tablename)
{
this.setTablename(tablename);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.String
*/
public java.lang.String getTablename()
{
return tablename;
}
/**
* Set the simple primary key value that identifies this object.
* @param tablename
*/
public void setTablename(java.lang.String tablename)
{
this.hashValue = 0;
this.tablename = tablename;
}
/**
* Return the value of the start_id column.
* @return java.lang.Long
*/
public java.lang.Long getStartId()
{
return this.startId;
}
/**
* Set the value of the start_id column.
* @param startId
*/
public void setStartId(java.lang.Long startId)
{
this.startId = startId;
}
/**
* Return the value of the last_id column.
* @return java.lang.Long
*/
public java.lang.Long getLastId()
{
return this.lastId;
}
/**
* Set the value of the last_id column.
* @param lastId
*/
public void setLastId(java.lang.Long lastId)
{
this.lastId = lastId;
}
/**
* Return the value of the increase_id column.
* @return java.lang.Long
*/
public java.lang.Long getIncreaseId()
{
return this.increaseId;
}
/**
* Set the value of the increase_id column.
* @param increaseId
*/
public void setIncreaseId(java.lang.Long increaseId)
{
this.increaseId = increaseId;
}
/**
* Implementation of the equals comparison on the basis of equality of the primary key values.
* @param rhs
* @return boolean
*/
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof Sequence))
return false;
Sequence that = (Sequence) rhs;
if (this.getTablename() == null || that.getTablename() == null)
return false;
return (this.getTablename().equals(that.getTablename()));
}
/**
* Implementation of the hashCode method conforming to the Bloch pattern with
* the exception of array properties (these are very unlikely primary key types).
* @return int
*/
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int tablenameValue = this.getTablename() == null ? 0 : this.getTablename().hashCode();
result = result * 37 + tablenameValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -