001: /*
002: * Copyright (C) 2006 Rob Manning
003: * manningr@users.sourceforge.net
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2.1 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: */
019: package net.sourceforge.squirrel_sql.fw.sql;
020:
021: import net.sourceforge.squirrel_sql.fw.sql.ITableInfo;
022:
023: public class MockTableInfo extends MockDatabaseObjectInfo implements
024: ITableInfo {
025:
026: private static final long serialVersionUID = 1L;
027: private String type = null;
028: private String remarks = null;
029: private ITableInfo[] childTables = null;
030:
031: public MockTableInfo(String aSimpleName, String aSchemaName,
032: String aCatalog) {
033: super (aSimpleName, aSchemaName, aCatalog);
034: }
035:
036: /**
037: * @param type the type to set
038: */
039: public void setType(String type) {
040: this .type = type;
041: }
042:
043: /**
044: * @return the type
045: */
046: public String getType() {
047: return type;
048: }
049:
050: /**
051: * @param remarks the remarks to set
052: */
053: public void setRemarks(String remarks) {
054: this .remarks = remarks;
055: }
056:
057: /**
058: * @return the remarks
059: */
060: public String getRemarks() {
061: return remarks;
062: }
063:
064: /**
065: * @param childTables the childTables to set
066: */
067: public void setChildTables(ITableInfo[] childTables) {
068: this .childTables = childTables;
069: }
070:
071: /**
072: * @return the childTables
073: */
074: public ITableInfo[] getChildTables() {
075: return childTables;
076: }
077:
078: /* (non-Javadoc)
079: * @see net.sourceforge.squirrel_sql.fw.sql.ITableInfo#getExportedKeys()
080: */
081: public ForeignKeyInfo[] getExportedKeys() {
082: // TODO Auto-generated method stub
083: return null;
084: }
085:
086: /* (non-Javadoc)
087: * @see net.sourceforge.squirrel_sql.fw.sql.ITableInfo#getImportedKeys()
088: */
089: public ForeignKeyInfo[] getImportedKeys() {
090: // TODO Auto-generated method stub
091: return null;
092: }
093:
094: /* (non-Javadoc)
095: * @see net.sourceforge.squirrel_sql.fw.sql.ITableInfo#setExportedKeys(net.sourceforge.squirrel_sql.fw.sql.ForeignKeyInfo[])
096: */
097: public void setExportedKeys(ForeignKeyInfo[] foreignKeys) {
098: // TODO Auto-generated method stub
099:
100: }
101:
102: /* (non-Javadoc)
103: * @see net.sourceforge.squirrel_sql.fw.sql.ITableInfo#setImportedKeys(net.sourceforge.squirrel_sql.fw.sql.ForeignKeyInfo[])
104: */
105: public void setImportedKeys(ForeignKeyInfo[] foreignKeys) {
106: // TODO Auto-generated method stub
107:
108: }
109:
110: }
|