|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.servoy.j2db.util.DataSourceUtils
public class DataSourceUtils
Normal Use: static methods
| Field Summary | |
|---|---|
static String |
DB_DATASOURCE_SCHEME
|
static String |
DB_DATASOURCE_SCHEME_COLON_SLASH
|
static int |
DB_DATASOURCE_SCHEME_COLON_SLASH_LENGTH
|
static String |
INMEM_DATASOURCE_SCHEME
|
| Method Summary | |
|---|---|
static String |
createDBTableDataSource(String serverName,
String tableName)
Create the a database data source string from server and table |
static String |
createInmemDataSource(String name)
Create the a data source string for an inmemory table |
static String[] |
getDBServernameTablename(String dataSource)
Get the server and table name from the datasource (when is is a db datasource) |
static SortedSet<String> |
getServerNames(Set<String> dataSources)
Get the sorted set of server names used server names in the data sources list |
static List<String> |
getServerTablenames(Set<String> dataSources,
String serverName)
Get the table names with the given server name in the data sources list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DB_DATASOURCE_SCHEME
public static final String DB_DATASOURCE_SCHEME_COLON_SLASH
public static final int DB_DATASOURCE_SCHEME_COLON_SLASH_LENGTH
public static final String INMEM_DATASOURCE_SCHEME
| Method Detail |
|---|
public static String createDBTableDataSource(String serverName,
String tableName)
serverName - the serverNametableName - the tableName
public static String createInmemDataSource(String name)
name -
public static String[] getDBServernameTablename(String dataSource)
dataSource - the dataSource
public static SortedSet<String> getServerNames(Set<String> dataSources)
server - names
public static List<String> getServerTablenames(Set<String> dataSources,
String serverName)
table - names
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||