IDEMPIERE-1132 Improve AD_Index; AD_View; foreign keys management - include copyright text and regenerate serialVersionUID for org.compiere.model.PO class

This commit is contained in:
Elaine Tan 2013-07-29 15:08:35 +08:00
parent 4c6c12ea58
commit a918a6a85d
8 changed files with 134 additions and 1 deletions

View File

@ -1,5 +1,24 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.compiere.model;
/**
*
* @author Elaine
*
*/
public class DatabaseKey
{
private String keyName;

View File

@ -105,7 +105,7 @@ public abstract class PO
/**
*
*/
private static final long serialVersionUID = 8742545079591136114L;
private static final long serialVersionUID = -6478927681032558734L;
public static final String LOCAL_TRX_PREFIX = "POSave";

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.compiere.process;
import java.math.BigDecimal;
@ -16,6 +30,11 @@ import org.compiere.util.DisplayType;
import org.compiere.util.Msg;
import org.compiere.util.Trx;
/**
* Create foreign key process
* @author Elaine
*
*/
public class CreateForeignKey extends SvrProcess {
/** Table */

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.compiere.process;
import java.sql.DatabaseMetaData;
@ -15,6 +29,11 @@ import org.compiere.util.DB;
import org.compiere.util.Msg;
import org.compiere.util.Trx;
/**
* Create table index (AD_TableIndex) process
* @author Elaine
*
*/
public class CreateTableIndex extends SvrProcess {
/** Table */

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.pipo2.handler;
import java.util.List;
@ -19,6 +33,11 @@ import org.compiere.util.Env;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* Index column (AD_IndexColumn) element handler
* @author Elaine
*
*/
public class IndexColumnElementHandler extends AbstractElementHandler {
@Override

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.pipo2.handler;
import java.util.ArrayList;
@ -24,6 +38,11 @@ import org.compiere.util.Trx;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* Table index (AD_TableIndex) element handler
* @author Elaine
*
*/
public class TableIndexElementHandler extends AbstractElementHandler {
private List<Integer> tableIndexes = new ArrayList<Integer>();

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.pipo2.handler;
import java.util.List;
@ -19,6 +33,11 @@ import org.compiere.util.Env;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* View column (AD_ViewColumn) element handler
* @author Elaine
*
*/
public class ViewColumnElementHandler extends AbstractElementHandler {
@Override

View File

@ -1,3 +1,17 @@
/******************************************************************************
* Copyright (C) 2013 Elaine Tan *
* Copyright (C) 2013 Trek Global
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.pipo2.handler;
import java.util.ArrayList;
@ -19,6 +33,11 @@ import org.compiere.util.Env;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* View component (AD_ViewComponent) element handler
* @author Elaine
*
*/
public class ViewComponentElementHandler extends AbstractElementHandler {
private List<Integer> viewComponents = new ArrayList<Integer>();