Revision: 3494
Author: [email protected]
Date: Wed May 5 11:55:18 2010
Log: Created an inline subclass of PlDotIni to return user defined data
types when in a client session.
http://code.google.com/p/power-architect/source/detail?r=3494
Modified:
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
Thu Apr 29 10:25:04 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
Wed May 5 11:55:18 2010
@@ -240,9 +240,14 @@
PlDotIni plIni;
try {
- plIni = new PlDotIni(
-
getServerURI(projectLocation.getServiceInfo(), "/jdbc/"),
- getServerURI(projectLocation.getServiceInfo(),
MONDRIAN_SCHEMA_REL_PATH));
+ plIni = new
PlDotIni(getServerURI(projectLocation.getServiceInfo(), "/jdbc/"),
+ getServerURI(projectLocation.getServiceInfo(),
MONDRIAN_SCHEMA_REL_PATH)) {
+
+ @Override
+ public List<UserDefinedSQLType>
getSQLTypes() {
+ return
ArchitectClientSideSession.this.getSQLTypes();
+ }
+ };
plIni.read(response.getEntity().getContent());
logger.debug("Data source collection has URI " +
plIni.getServerBaseURI());
} catch (URISyntaxException e) {
@@ -924,6 +929,10 @@
return updater.getRevision();
}
+ /*
+ * Do not remove this method without first changing the custom
PlDotini in getDataSources().
+ * Doing so will cause infinite recursion when accessing the SQLTypes.
+ */
@Override
public List<UserDefinedSQLType> getSQLTypes() {
return getSystemWorkspace().getSqlTypes();