01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: package org.netbeans.modules.etl.codegen.impl;
21:
22: /**
23: * Holds Flat file Database metadata for codegen.
24: *
25: * @author Sudhi Seshachala
26: */
27: public class InternalDBMetadata {
28: private boolean isDynamicFilePath;
29: private String poolName;
30: private String staticDirectory;
31:
32: public InternalDBMetadata(String theStaticDir,
33: boolean isDynamicFilePath, String thePoolName) {
34: setStaticDirectory(theStaticDir);
35: setDynamicFilePath(isDynamicFilePath);
36: poolName = thePoolName;
37: }
38:
39: /**
40: * @return current pool name.
41: */
42: public String getPoolName() {
43: return this .poolName;
44: }
45:
46: /**
47: * @return Returns the staticDirectory.
48: */
49: public String getStaticDirectory() {
50: return staticDirectory;
51: }
52:
53: /**
54: * @return Returns the isDynamicFilePath.
55: */
56: public boolean isDynamicFilePath() {
57: return isDynamicFilePath;
58: }
59:
60: /**
61: * @param isDynamicFilePath The isDynamicFilePath to set.
62: */
63: public void setDynamicFilePath(boolean isDynamicFilePath) {
64: this .isDynamicFilePath = isDynamicFilePath;
65: }
66:
67: /**
68: * @param staticDirectory The staticDirectory to set.
69: */
70: public void setStaticDirectory(String staticDirectory) {
71: this.staticDirectory = staticDirectory;
72: }
73: }
|