| java.lang.Object org.netbeans.modules.visualweb.dataconnectivity.sql.DesignTimeDataSource
All known Subclasses: org.netbeans.modules.visualweb.dataconnectivity.sql.DesignTimeDataSourceAlias,
DesignTimeDataSource | public class DesignTimeDataSource implements DataSource,ContextPersistance,Runnable(Code) | | DataSource adapter for java.sql.Driver classes. Used at designtime for all datasources.
Implements necesary interfaces to persist in Creator's naming context.
author: John Kline |
Constructor Summary | |
public | DesignTimeDataSource() | public | DesignTimeDataSource(Boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password) | public | DesignTimeDataSource(String schemas, Boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password) | public | DesignTimeDataSource(Boolean schemasInitialized, String schemas, Boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password) | public | DesignTimeDataSource(String schemas, boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password) | public | DesignTimeDataSource(boolean schemasInitialized, String schemas, boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password) |
SQL_NOT_RUN | final public static int SQL_NOT_RUN(Code) | | |
DesignTimeDataSource | public DesignTimeDataSource()(Code) | | |
DesignTimeDataSource | public DesignTimeDataSource(boolean schemasInitialized, String schemas, boolean isEncrypted, String driverClassName, String url, String validationQuery, String username, String password)(Code) | | |
clearConnectFailFlag | public void clearConnectFailFlag()(Code) | | |
clearSchemas | public void clearSchemas()(Code) | | |
ensureConnection | public void ensureConnection()(Code) | | |
escapeXML | protected static String escapeXML(String orig)(Code) | | escape to XML legal. The chars -
quote("), apostrophe('), ampersand, less than, greater than
need to be escaped.
|
getSchemas | public String[] getSchemas()(Code) | | gets schemas selected for this datasource, an empty set means all schemas
|
getSchemasInitialized | public boolean getSchemasInitialized()(Code) | | |
getSpaces | protected String getSpaces(int level, int tabWidth)(Code) | | |
getTestConnectionSucceeded | public boolean getTestConnectionSucceeded()(Code) | | |
getTestRowsReturned | public int getTestRowsReturned()(Code) | | |
initSchemas | public synchronized void initSchemas() throws SQLException, NamingException(Code) | | attempt to set the initial setting for schemas
do this by attempting to get a schema with the same name as the username
if this is found, set this datasource to only show that one schema
else don't do anything (all schemas will show or the database doesn't support
schemas)
throws SQLException if we can't connect or can't get DatabaseMetaData
throws NamingException if this DesignTimeDataSource is already bound to
a context and something goes wrong in the save
|
parseForValidationTable | protected static String parseForValidationTable(String valQuery)(Code) | | |
run | public synchronized void run()(Code) | | |
setDriverClassName | public void setDriverClassName(String driverClassName)(Code) | | |
setSchemasInitialized | public void setSchemasInitialized(boolean schemasInitialized)(Code) | | |
setValidationQuery | public void setValidationQuery(String validationQuery)(Code) | | |
setValidationTable | public void setValidationTable(String table)(Code) | | |
test | public boolean test()(Code) | | |
|
|