INTEGRATION: CWS toolkit01 (1.5.18); FILE MERGED
2005/02/25 11:57:06 bc 1.5.18.2: RESYNC: (1.5-1.7); FILE MERGED 2005/02/23 17:38:36 bc 1.5.18.1: ##several changes in Webwizard
This commit is contained in:
parent
7d12bb505d
commit
18ce58e97b
1 changed files with 7 additions and 8 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: DBMetaData.java,v $
|
||||
*
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2005-02-21 14:20:03 $
|
||||
* last change: $Author: vg $ $Date: 2005-03-08 15:35:05 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -114,7 +114,6 @@ import com.sun.star.sdbcx.XTablesSupplier;
|
|||
public class DBMetaData {
|
||||
|
||||
public XNameAccess xTableNames;
|
||||
|
||||
public XNameAccess xQueryNames;
|
||||
private XInteractionHandler oInteractionHandler;
|
||||
private XNameAccess xNameAccess;
|
||||
|
@ -159,6 +158,7 @@ public class DBMetaData {
|
|||
private long lDateCorrection = INVALID;
|
||||
private boolean bdisposeConnection = false;
|
||||
|
||||
|
||||
public DBMetaData(XMultiServiceFactory xMSF) {
|
||||
getInterfaces(xMSF);
|
||||
InitializeWidthList();
|
||||
|
@ -172,6 +172,8 @@ public class DBMetaData {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public NumberFormatter getNumberFormatter(){
|
||||
if (oNumberFormatter == null){
|
||||
try {
|
||||
|
@ -198,6 +200,7 @@ public class DBMetaData {
|
|||
}
|
||||
|
||||
|
||||
|
||||
void getInterfaces(XMultiServiceFactory xMSF) {
|
||||
try {
|
||||
this.xMSF = xMSF;
|
||||
|
@ -212,6 +215,7 @@ public class DBMetaData {
|
|||
}
|
||||
|
||||
|
||||
|
||||
public void setCommandTypes() {
|
||||
int TableCount;
|
||||
int QueryCount;
|
||||
|
@ -234,7 +238,6 @@ public class DBMetaData {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public boolean hasTableByName(String _stablename){
|
||||
getTableNames();
|
||||
return xTableNames.hasByName(_stablename);
|
||||
|
@ -273,7 +276,6 @@ public class DBMetaData {
|
|||
this.CommandObjects.addElement(oQueryObject);
|
||||
}
|
||||
|
||||
|
||||
public class CommandObject {
|
||||
public XNameAccess xColumns;
|
||||
public XPropertySet xPropertySet;
|
||||
|
@ -336,7 +338,6 @@ public class DBMetaData {
|
|||
WidthList[13][0] = DataType.DATE; // == 91;
|
||||
WidthList[14][0] = DataType.TIME; // == 92;
|
||||
WidthList[15][0] = DataType.TIMESTAMP; // == 93;
|
||||
WidthList[16][0] = DataType.BOOLEAN; // == 16;
|
||||
// NumericTypes are all types where aggregate functions can be performed on.
|
||||
// Similarly to a major competitor date/time/timmestamp fields are not included
|
||||
NumericTypes = new int[9];
|
||||
|
@ -485,7 +486,6 @@ public class DBMetaData {
|
|||
{
|
||||
bdisposeConnection = true;
|
||||
com.sun.star.container.XChild child = (com.sun.star.container.XChild)UnoRuntime.queryInterface(com.sun.star.container.XChild.class, xConnection);
|
||||
|
||||
xDataSource = (XDataSource) UnoRuntime.queryInterface(XDataSource.class, child.getParent());
|
||||
XPropertySet xPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xDataSource);
|
||||
if ( xPSet != null )
|
||||
|
@ -818,7 +818,6 @@ public class DBMetaData {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public boolean storeDatabaseDocumentToTempPath(XComponent _xcomponent, String _storename){
|
||||
try {
|
||||
XInterface xInterface = (XInterface) xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
|
||||
|
|
Loading…
Reference in a new issue