📄 persistenceclass.java
字号:
package cn.edu.nju.software.sd.torm.cfg;
import java.util.LinkedList;
/**
* The class PersistenceClass is a structure used to store the persistance
* information of a class. It defines the class name and corresponding table
* name. It also contains the properties which will be persisted.
*
* @author Yinfei XU
*
*/
public final class PersistenceClass {
private String className;
private String tableName;
private String generatorName;
private PersistenceProperty ID;
private LinkedList<PersistenceProperty> properties;
/**
* Get the class name.
*
* @return The class name.
*/
public String getClassName() {
return className;
}
/**
* Set the class name.
*
* @param className
* The class name to be set.
*/
public void setClassName(String className) {
this.className = className;
}
/**
* Get the ID.
* @return The ID to be set.
*/
public PersistenceProperty getID() {
return ID;
}
/**
* Set the ID.
*
* @param id
* The ID to be set.
*/
public void setID(PersistenceProperty id) {
ID = id;
}
/**
* Get the properties of this class.
*
* @return The properties of this class.
*/
public LinkedList<PersistenceProperty> getProperties() {
return properties;
}
/**
* Set the properties.
*
* @param properties
* The properties to be set.
*/
public void setProperties(LinkedList<PersistenceProperty> properties) {
this.properties = properties;
}
/**
* Get the table name corresponds to this class.
*
* @return The table name.
*/
public String getTableName() {
return tableName;
}
/**
* Set the table name.
*
* @param tableName
* The tableName to be set.
*/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* Get the name of the <tt>IDGenerator<tt>. The IDGenerator
* is used to generate the id of a object.
* @return The name of the IDGenerator.
*/
public String getGeneratorName() {
return generatorName;
}
/**
* Set the name of the <tt>IDGenerator<tt>.
*
* @param generatorName The name to be set.
*/
public void setGeneratorName(String generatorName) {
this.generatorName = generatorName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -