blob: 63ab2bac09e2a524b274e6528799fa78a3f1f300 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Mike Norman - June 10 2011, created DDL parser package
******************************************************************************/
package org.eclipse.persistence.tools.oracleddl.metadata;
public abstract class DatabaseTypeBase extends DatabaseTypeTestableBase implements Cloneable {
protected String typeName;
public DatabaseTypeBase(String typeName) {
this.typeName = typeName;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public boolean isResolved() {
return true;
}
public String shortName() {
return toString();
}
@Override
public Object clone() {
try {
return super.clone();
}
catch (CloneNotSupportedException e) {
//shouldn't ever happen
return null;
}
}
@Override
public String toString() {
return typeName;
}
}