01: /*
02: * SequenceReader.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db;
13:
14: import java.sql.SQLException;
15: import java.util.List;
16: import workbench.storage.DataStore;
17:
18: /**
19: * Read the definition of sequences from the database
20: * @author support@sql-workbench.net
21: */
22: public interface SequenceReader {
23: /**
24: * Return a SQL String to recreate the given sequence
25: */
26: CharSequence getSequenceSource(String owner, String sequence);
27:
28: void readSequenceSource(SequenceDefinition def);
29:
30: /**
31: * Get a list of sequences for the given owner. The
32: * contains objects of type String.
33: */
34: List<String> getSequenceList(String owner);
35:
36: List<SequenceDefinition> getSequences(String owner)
37: throws SQLException;
38:
39: SequenceDefinition getSequenceDefinition(String owner,
40: String sequence);
41:
42: DataStore getRawSequenceDefinition(String owner, String sequence);
43: }
|