db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r433446 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog: IndexInfoImpl.java TabInfoImpl.java
Date Tue, 22 Aug 2006 00:47:33 GMT
Author: djd
Date: Mon Aug 21 17:47:33 2006
New Revision: 433446

URL: http://svn.apache.org/viewvc?rev=433446&view=rev
Log:
DERBY-1739 (partial) Clean up implementation classes IndexInfoImpl and TabInfoImpl to not
have public scope.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/IndexInfoImpl.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/IndexInfoImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/IndexInfoImpl.java?rev=433446&r1=433445&r2=433446&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/IndexInfoImpl.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/IndexInfoImpl.java Mon
Aug 21 17:47:33 2006
@@ -35,15 +35,15 @@
 *
 * @author jerry
 */
-public class IndexInfoImpl
+class IndexInfoImpl
 {
-	boolean				isUnique;
-	String[]			columnNames;
-	int[]				columnPositions;
-	IndexRowGenerator	irg;
-	int					columnCount;
-	long				conglomerateNumber;
-	String				name;
+	private boolean				isUnique;
+	private String[]			columnNames;
+	private int[]				columnPositions;
+	private IndexRowGenerator	irg;
+	private int					columnCount;
+	private long				conglomerateNumber;
+	private String				name;
 
 	/**
 	 * Constructor
@@ -72,7 +72,7 @@
 	 *
 	 * @return long	The conglomerate number for the index.
 	 */
-	public long getConglomerateNumber()
+	long getConglomerateNumber()
 	{
 		return conglomerateNumber;
 	}
@@ -82,7 +82,7 @@
 	 *
 	 * @param conglomerateNumber	The conglomerateNumber for the index.
 	 */
-	public void setConglomerateNumber(long conglomerateNumber)
+	void setConglomerateNumber(long conglomerateNumber)
 	{
 		this.conglomerateNumber = conglomerateNumber;
 	}
@@ -92,7 +92,7 @@
 	 *
 	 * @return String	The index name for the index.
 	 */
-	public String getIndexName()
+	String getIndexName()
 	{
 		return name;
 	}
@@ -102,7 +102,7 @@
 	 *
 	 * @param indexName		The name for the index.
 	 */
-	public void setIndexName(String indexName)
+	void setIndexName(String indexName)
 	{
 		name = indexName;
 	}
@@ -112,7 +112,7 @@
 	 *
 	 * @return int	The column count for the index.
 	 */
-	public int getColumnCount()
+	int getColumnCount()
 	{
 		return columnCount;
 	}
@@ -122,7 +122,7 @@
 	 *
 	 * @return IndexRowGenerator	The IRG for this index.
 	 */
-	public IndexRowGenerator getIndexRowGenerator()
+	IndexRowGenerator getIndexRowGenerator()
 	{
 		return irg;
 	}
@@ -132,7 +132,7 @@
 	 *
 	 * @param irg			The IndexRowGenerator for this index.
 	 */
-	public void setIndexRowGenerator(IndexRowGenerator irg)
+	void setIndexRowGenerator(IndexRowGenerator irg)
 	{
 		this.irg = irg;
 	}
@@ -145,7 +145,7 @@
 	 *
 	 * @return int		The base column position for the column.
 	 */
-	public int getBaseColumnPosition(int colNumber)
+	int getBaseColumnPosition(int colNumber)
 	{
 		return columnPositions[colNumber];
 	}
@@ -157,7 +157,7 @@
 	 * @param colNumber		The column number within the index
 	 * @param baseColumnPosition	The base column position for the column.
 	 */
-	public void setBaseColumnPosition(int colNumber,
+	void setBaseColumnPosition(int colNumber,
 									 int baseColumnPosition)
 	{
 		columnPositions[colNumber] = baseColumnPosition;
@@ -168,7 +168,7 @@
 	 *
 	 * @return boolean		Whether or not this index is declared unique
 	 */
-	public boolean isIndexUnique()
+	boolean isIndexUnique()
 	{
 		return isUnique;
 	}

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java?rev=433446&r1=433445&r2=433446&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/TabInfoImpl.java Mon
Aug 21 17:47:33 2006
@@ -60,7 +60,7 @@
 *
 * @author jamie
 */
-public class TabInfoImpl implements TabInfo
+class TabInfoImpl implements TabInfo
 {
 	private IndexInfoImpl[]				indexes;
 	private String						name;
@@ -77,7 +77,7 @@
 	 *
 	 * @param crf				the associated CatalogRowFactory
 	 */
-	public TabInfoImpl(CatalogRowFactory crf)
+	TabInfoImpl(CatalogRowFactory crf)
 	{
 		this.name = crf.getCatalogName();
 		this.heapConglomerate = -1;



Mime
View raw message